Commit Graph

248 Commits

Author SHA1 Message Date
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
Christian Kaisermann
702dd1aea1 docs: ✏️ move example to template repo 2020-05-31 13:26:35 -03:00
Christian Kaisermann
2c829fca7c chore(release): v3.0.4 🎉 2020-05-31 12:51:16 -03:00
Christian Kaisermann
e560514b1d fix: 🐛 also wait for loaders added while loading 2020-05-31 12:50:57 -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
a0409bf909 chore(release): v3.0.3 🎉 2020-03-29 16:55:02 -03:00
Christian Kaisermann
07ef1da6d5 fix: 🐛 prevent server from breaking on locale.set
Closes #55
2020-03-29 16:54:08 -03:00
Thatcher
2a1bea5559
docs: add RTL to example (#61)
* Added RTL (arabic) language

* changed home, about, contact words (update from native speaker)
2020-03-29 16:40:55 -03:00
dependabot[bot]
141cac9586 chore(deps): bump minimist from 1.2.0 to 1.2.5 in /example
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-19 22:28:11 -03:00
dependabot[bot]
916d21364f chore(deps): bump acorn from 7.1.0 to 7.1.1 in /example
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/7.1.0...7.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-15 16:27:40 -03:00
dependabot[bot]
eb395a9e73 chore(deps): bump acorn from 5.7.3 to 5.7.4
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-15 16:27:29 -03:00
Christian Kaisermann
6682c03243 chore(release): v3.0.2 🎉 2020-03-06 14:12:20 -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
9930c1a7c3 chore: 🤖 remove unused file 2020-02-28 17:57:56 -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
bf22d1f0c3 Update example init 2020-02-06 14:37:17 -03:00
Christian Kaisermann
bb406c1f79 Update package-lock 2020-02-06 14:15:54 -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
fd97e89782 chore: 🤖 link readme to the getting started 2020-02-03 13:35:42 -03:00
Christian Kaisermann
14e37a9324 chore(release): v3.0.1 🎉 2020-02-03 13:33:33 -03:00
Christian Kaisermann
6b0ba2b902 refactor: 💡 split getClientLocale into multiple utilities 2020-02-03 13:33:03 -03:00
Christian Kaisermann
a574444f60 chore(release): v3.0.0 🎉 2020-02-03 11:24:50 -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
ff088f50e2 chore: 🤖 remove unused file 2020-02-03 11:24:50 -03:00
Christian Kaisermann
25f85c556f chore: 🤖 fix crazy types conflict 2020-02-03 11:24:50 -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
0822841140 refactor: 💡 split single utils file into multiple files 2020-02-03 11:24:50 -03:00
Christian Kaisermann
0e0a31fc9e chore: 🤖 remove unused methods 2020-02-03 11:24:50 -03:00
Christian Kaisermann
bd3057ba2d docs: ✏️ update docs 2020-02-03 11:24:50 -03:00
Christian Kaisermann
9f352845e1 refactor: 💡 rename getIn to deepGet 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
858c25cc80 chore: 🤖 add lint-staged and husky 2020-01-29 11:49:28 -03:00
Christian Kaisermann
c26658d470 chore(release): v2.3.1 🎉 2020-01-29 11:47:19 -03:00
Christian Kaisermann
e400e62a62 refactor: 💡 add correct typings for formatter getters 2020-01-29 11:46:34 -03:00
Ramiro Rikkert
27871f9775
fix: memoizing of formatters when no locale is given. (#47) 2020-01-29 11:29:32 -03:00
Christian Kaisermann
88f7762e96 fix: 🐛 types from v3 branch leaking to master branch 🤷 2020-01-23 10:41:14 -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
73c80e9bea chore(release): v2.3.0 🎉 2020-01-23 10:12:06 -03:00
Christian Kaisermann
dadeaa2e7f feat: 🎸 add runtime typings
 Closes: Closes #43
2020-01-23 10:11:04 -03:00