Commit Graph

22 Commits

Author SHA1 Message Date
odeniso
ec939ab6c6
fix: check modules for defineMessages imports (#163)
Co-authored-by: Denis Richard <richard@satelligence.com>
2021-10-11 08:57:46 -03:00
Christian Kaisermann
a7ce70fc0f refactor: some minor changes 2021-08-24 09:09:31 -03:00
Luma
8235f1e078 chore: fixes for 1st review 2021-08-24 09:09:31 -03:00
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
980bc18f29 fix: 🐛 support deep properties keyed with dots
 Closes: #129
2021-02-21 13:18:50 -03:00
Christian Kaisermann
9b5023edbf test: 💍 add tests for invalid ICU syntax 2021-02-15 13:39:11 -03:00
Christian Kaisermann
739d784c16 Refactor type imports to use type modifier 2020-12-03 15:08:34 -03:00
Christian Kaisermann
3add4e66b7 refactor: 💡 warn on deprecated usage instead of error-ing 2020-11-24 10:50:25 -03:00
Christian Kaisermann
8db3ad6b4f refactor: 💡 easier to understand browser entrypoint 2020-11-24 10:50:25 -03:00
Christian Kaisermann
9dd1a19aef feat: 🎸 add $json method to get raw dictionary values
 Closes: #109, #83
2020-11-24 10:50:25 -03:00
Christian Kaisermann
d87caef060 fix: 🐛 regression of flat keys separated by dot 2020-11-08 19:09:45 -03:00
Christian Kaisermann
330f20b7bd fix: 🐛 interpolate values for default values and missing keys
 Closes: #101
2020-11-05 17:52:22 -03:00
Christian Kaisermann
940aa65f8c style: 💄 format tests 2020-11-05 15:55:42 -03:00
Christian Kaisermann
ff541367f8 feat: 🎸 Support getting deep localized objects/arrays
 Closes: Closes #83
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
552a6105d9 chore: 🤖 bump package json version 2020-02-03 11:24:50 -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
6526245bf9 feat: 🎸 make date,time and number formatters tree-shakeable
BREAKING CHANGE: Changes completely the API. Now, to format a number, date or time, the
developer must explicitly import the formatter store:

`import { time, date, number } from 'svelte-i18n'`
2020-02-03 11:24:50 -03:00
Christian Kaisermann
bb6dd01558 chore: 🤖 oops, fix actual build-time types being git ignored 2020-01-23 10:32:56 -03:00
Christian Kaisermann
dadeaa2e7f feat: 🎸 add runtime typings
 Closes: Closes #43
2020-01-23 10:11:04 -03:00