Commit Graph

109 Commits

Author SHA1 Message Date
Christian Kaisermann
e08fa29099 test: 💍 add missing test for component without script 2019-11-28 23:16:15 -03:00
Christian Kaisermann
15ed03185a test: 💍 add some tests for the cli 2019-11-28 22:57:05 -03:00
Christian Kaisermann
60ba73682f test: 💍 add more tests for loaderQueue 2019-11-28 16:17:22 -03:00
Christian Kaisermann
efbe793a0f feat: 🎸 add warnOnMissingMessages 2019-11-28 14:59:52 -03:00
Christian Kaisermann
9d636694b1 refactor: 💡 formatter format/manual options logic 2019-11-27 16:20:21 -03:00
Christian Kaisermann
850fd09f32 test: 💍 add tests for formatters 2019-11-27 13:26:18 -03:00
Christian Kaisermann
300f965a87 refactor: 💡 configure to init 2019-11-27 00:58:53 -03:00
Christian Kaisermann
cf8d32f0a6 test: 💍 add some misisng tests 2019-11-26 22:29:40 -03:00
Christian Kaisermann
b3098ba67b test: 💍 add test for lookup and loader queue 2019-11-26 22:00:23 -03:00
Christian Kaisermann
21afa3d6b1 test: 💍 add tests for getClientLocale precedence 2019-11-26 13:18:07 -03:00
Christian Kaisermann
e56bfbd333 test: 💍 add tests for config and utils 2019-11-26 13:06:26 -03:00
Christian Kaisermann
36bf7f5038 refactor: 💡 shrink configs API contact points 2019-11-25 23:05:17 -03:00
Christian Kaisermann
965c18acc1 test: 💍 add tests for dictionary store and utilities 2019-11-25 21:41:09 -03:00
Christian Kaisermann
07fb37e325 test: 💍 add some tests for locale related methods 2019-11-25 17:16:38 -03:00
Christian Kaisermann
9260b83756 fix: 🐛 fallback locale being looked twice 2019-11-24 20:22:41 -03:00
Christian Kaisermann
1ea650860c chore(release): v2.0.1 🎉 2019-11-24 00:21:17 -03:00
Christian Kaisermann
6e0df2fb25 fix: 🐛 fallback behaviour and simplify API contact points 2019-11-24 00:21:17 -03:00
Christian Kaisermann
233842baa2 refactor: 💡 remove removeFromLookupCache method 2019-11-22 13:51:18 -03:00
Christian Kaisermann
66972d4b15 fix: 🐛 flush use the same promise if it wasn't resolved yet 2019-11-22 13:51:18 -03:00
Christian Kaisermann
5f3595013e chore: 🤖 add warning of existing queue when id is not found 2019-11-22 13:51:18 -03:00
Christian Kaisermann
49e9562890 refactor: 💡 rename fallback locale methods 2019-11-22 13:51:18 -03:00
Christian Kaisermann
64c8e55f80 feat: 🎸 locale change automatically updates the document lang 2019-11-22 13:51:18 -03:00
Christian Kaisermann
06946ee3d1 refactor: 💡 rename addMessagesTo to addMessages 2019-11-22 13:51:18 -03:00
Christian Kaisermann
6ee28e7d27 feat: 🎸 add waitInitialLocale helper 2019-11-22 13:51:18 -03:00
Christian Kaisermann
c9eb746797 style: 💄 fix eslint errors 2019-11-22 13:51:18 -03:00
Christian Kaisermann
3423207c02 refactor: 💡 add dictionary type 2019-11-22 13:51:18 -03:00
Christian Kaisermann
d6b8664009 feat: 🎸 addMessagesTo method 2019-11-22 13:51:18 -03:00
Christian Kaisermann
a1dc268654 refactor: 💡 prevent null lookups from being cached 2019-11-22 13:51:18 -03:00
Christian Kaisermann
6573f51e9b perf: ️ delay the $loading state change for quick loadings 2019-11-22 13:51:18 -03:00
Christian Kaisermann
1b0138c3f3 fix: 🐛 consider generic locales when registering loaders 2019-11-22 13:51:18 -03:00
Christian Kaisermann
b19b69050e feat: 🎸 add pathname and hostname pattern matching 2019-11-22 13:51:18 -03:00
Christian Kaisermann
bf5ad6e387 refactor: 💡 separation of a lot of concerns 2019-11-22 13:51:18 -03:00
Christian Kaisermann
bd2b3501e9 feat: 🎸 add $loading indicator store 2019-11-22 13:51:18 -03:00
Christian Kaisermann
31faccec3b refactor: 💡 replace memoization with manual object cache 2019-11-22 13:51:18 -03:00
Christian Kaisermann
0a0e4b3bab feat: 🎸 add preloadLocale method 2019-11-22 13:51:18 -03:00
Christian Kaisermann
690822b6ac refactor: 💡 include generic locales on id not found message 2019-11-22 13:51:18 -03:00
Christian Kaisermann
e5d7b84241 feat: 🎸 also look for message in generic locale
Issues: #19
2019-11-22 13:51:18 -03:00
Christian Kaisermann
31d96f24ff WIP - add Lang.svelte component 2019-11-22 13:51:18 -03:00
Christian Kaisermann
f58a20b21e feat: 🎸 export a store listing all locales available 2019-11-22 13:51:18 -03:00
Christian Kaisermann
db21bb878a refactor: 💡 rewrite to typescript 2019-11-22 13:51:18 -03:00
Christian Kaisermann
d483244a9f feat: 🎸 add custom formats support
BREAKING CHANGE: This PR modifies the formatter method arguments.
2019-11-22 13:51:18 -03:00
Christian Kaisermann
5da9722377 Simplify linting config 2019-11-11 21:11:57 -03:00
Christian Kaisermann
8de3d27e09 Add method to get client locale 2019-06-18 18:02:02 -03:00
Christian Kaisermann
3f2f1079b2 Bump to v1.0.3 2019-06-06 18:06:35 -03:00
Christian Kaisermann
d8851a3387 Remove old unused dependency 2019-06-06 18:03:48 -03:00
Christian Kaisermann
0ae0cc8148
Support svelte v3 (#6) 2019-05-18 22:59:26 -03:00
Christian Kaisermann
7dd50b7cf3 Fix initialDictionary initialization 2018-08-14 15:23:41 -03:00
Christian Kaisermann
38dcecb724 Merge branch 'master' of github.com:kaisermann/svelte-i18n 2018-08-14 15:21:32 -03:00
Christian Kaisermann
be3f7b50fb Add simple pluralization 2018-08-14 15:21:06 -03:00
Christian Kaisermann
0bb40b9f34 Accept array of dictionaries 2018-08-12 00:10:40 -03:00
Christian Kaisermann
5662f0401c Handle nonexistent locale switch 2018-08-09 15:53:54 -03:00
Christian Kaisermann
a264c3a282 Export named utilities 2018-08-09 15:09:09 -03:00
Christian Kaisermann
07691f3a6d Namespace i18n store methods with "i18n" property 2018-08-08 20:17:08 -03:00
Christian Kaisermann
1e8597150c Make tests work again. New utility structure 2018-08-08 02:17:09 -03:00
Christian Kaisermann
255547914b I'm sorry Typescript, it's not you... 2018-08-07 18:53:07 -03:00
Christian Kaisermann
7e79fc4c66 Add package for deep access 2018-07-30 19:57:05 -03:00
Christian Kaisermann
a189f9e90b Add deep merge for extensible locale dictionaries 2018-07-26 23:33:02 -03:00
Christian Kaisermann
6584c1375b Add svelte, sveltify the code and add some tests 2018-07-26 01:40:30 -03:00
Christian Kaisermann
f362bea98f 👶 Initial commit 2018-07-25 22:50:55 -03:00