Commit Graph

12 Commits

Author SHA1 Message Date
Adriano Raiano
a8b5df0442 feat: introduce handleMissingMessage (#175)
* feat: introduce onMissingMessageHandler

* Update src/runtime/types/index.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>

* Update src/runtime/configs.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>

* Update src/runtime/types/index.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>

* Update src/runtime/stores/formatters.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>

* Update test/runtime/stores/formatters.test.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>

* Update test/runtime/stores/formatters.test.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>

* rename to handleMissingKey and optionally use return as default value

* rename also in the defaultOptions

* test for optional default result from handleMissingKey

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
2022-04-05 17:14:22 +02:00
Christian Kaisermann
7cda01ef1c chore: update lint dependencies 2021-09-30 11:07:33 -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
Luma
bf4189a862 fix: enable typescript strictNullChecks 2021-08-24 09:09:31 -03:00
Max Stewart
341ed7f363
fix: expose intl-messageformat option ignoreTag and default to true for backwards compatibility. (#121) 2021-02-10 21:42:23 -03:00
Christian Kaisermann
739d784c16 Refactor type imports to use type modifier 2020-12-03 15:08:34 -03:00
Christian Kaisermann
e659889f43 chore: 🤖 update linter deps and format project 2020-09-20 10:14:26 -03:00
Christian Kaisermann
68e8c51a63 fix: export correct configuration type 2020-09-20 10:12:18 -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
0822841140 refactor: 💡 split single utils file into multiple files 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