Commit Graph

28 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
Fabian Mossberg
70725828bd
docs: fix intl-messageformat doc url (#140)
The documentatino for intl-messageformat had moved, updated the documentation
2021-04-26 10:03:22 -03:00
Pig Fang
d082d0e25d docs: fix markdown 2021-03-22 09:46:42 -03:00
Christian Kaisermann
41d8e4d28b fix: 🐛 default $json type to any 2021-02-10 21:22:48 -03:00
Lev Chelyadinov
0dec146add
docs: fix a broken link in the Methods docs page (#127) 2021-02-04 20:00:38 -03:00
Christian Kaisermann
5a215b22ce docs: ✏️ small doc fix 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
6d768b9ae9 docs: ✏️ add mention to i18n-ally 2020-11-07 10:59:41 -03:00
Christian Kaisermann
072a7d2aed docs: fix small typo 2020-11-05 15:55:42 -03:00
Christian Kaisermann
5c3191d424 docs: ✏️ add note to import i18n.js
 Closes: #102
2020-11-05 09:51:23 -03:00
Jérôme Pogeant
e2fd7adde8
docs: fix typo (#84) 2020-09-16 16:15:11 -03:00
pal03377
6269ec75f8
docs: fix 404 links (#91)
3 links here were broken - probably the formatjs people changed their URL structure. This change request fixes that.
2020-09-15 09:41:17 -03:00
Outvi V
f1ba910110
docs: ✏️ fix link of $locale (#87) 2020-08-25 11:17:43 -03:00
Christian Kaisermann
71877a5f4b docs: ✏️ add installing step to getting started 2020-08-04 18:31:31 -03:00
pal03377
f7f5ed1e59
docs: add example for value interpolation (#79)
Added a short example about how to inject custom values into the translation
2020-06-26 20:23:10 -03:00
Christian Kaisermann
47ca8e679f
Update formatjs urls 2020-06-18 09:43:45 -03:00
Thomas Potaire
1148b72c7d
docs: fix a couple of typos in documentation (#69)
These typos jumped in my face so I figured rather than looking past them I'd contribute and fix them. 👍
2020-05-22 18:23:59 -03:00
Eric Lewis
58a179b599
docs: fix invalid JSON example (#64)
The JSON spec does not allow a trailing comma
2020-04-16 11:01:18 -03:00
Christian Kaisermann
af732ee2a3 docs: ✏️ rename $loading to $isLoading 2020-02-11 13:09:26 -03:00
Christian Kaisermann
12f0601215 Remove v2 docs and test 2020-02-06 14:37:27 -03:00
Christian Kaisermann
75227ba11b
Update Methods.md 2020-02-03 22:55:37 -03:00
Christian Kaisermann
08eb1554f3 docs: ✏️ add TOCs to some docs 2020-02-03 13:47:36 -03:00
Christian Kaisermann
6b0ba2b902 refactor: 💡 split getClientLocale into multiple utilities 2020-02-03 13:33:03 -03:00
Christian Kaisermann
21543a8b7f docs: ✏️ add migration guide from v2 to v3 2020-02-03 11:24:50 -03:00
Christian Kaisermann
2d147ef82d docs: ✏️ fix broken links 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
bd3057ba2d docs: ✏️ update docs 2020-02-03 11:24:50 -03:00
Christian Kaisermann
69ec477ffd docs: ✏️ move docs out of wiki 2020-01-21 10:00:45 -03:00