Commit Graph

3 Commits

Author SHA1 Message Date
Christian Kaisermann
6d557a98fc feat: 🎸 make getClientLocale tree-shakeable
BREAKING CHANGE: It's now needed to explicitly import the `getClientLocale` method to use
its heuristics when setting the initial locale. This makes the method
and its helpers to be tree-shakeable.

```js
import { init, getClientLocale } from 'svelte-i18n'

init({
  initialLocale: getClientLocale({ ... })
})
```
2020-01-23 10:42:52 -03:00
Christian Kaisermann
1f95984b7b docs: ✏️ update docs 2020-01-23 10:42:52 -03:00
Christian Kaisermann
69ec477ffd docs: ✏️ move docs out of wiki 2020-01-21 10:00:45 -03:00