Commit Graph

7 Commits

Author SHA1 Message Date
Christian Kaisermann
4cc2088bef chore: remove unused methods 2021-03-27 17:01:18 -03:00
Christian Kaisermann
5db1dbc3a4 fix: 🐛 support more specific fallback locale (i.e en-GB vs en)
 Closes: #137
2021-03-27 17:01:18 -03:00
Christian Kaisermann
940aa65f8c style: 💄 format tests 2020-11-05 15:55:42 -03:00
Christian Kaisermann
9d82a98e8d fix: 🐛 ignore loadingDelay for the initialLocale
Fixes #53

 Closes: Closes #53
2020-03-06 14:11:51 -03:00
Christian Kaisermann
7bf47d8790 feat: 🎸 add runtime typings
 Closes: Closes #43
2020-02-03 11:24:50 -03:00
Christian Kaisermann
31b556bc3f 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-02-03 11:24:50 -03:00
Christian Kaisermann
dadeaa2e7f feat: 🎸 add runtime typings
 Closes: Closes #43
2020-01-23 10:11:04 -03:00