Commit Graph

283 Commits

Author SHA1 Message Date
Christian Kaisermann 0516bb417c
Update README.md 2022-08-11 10:42:49 +02:00
Christian Kaisermann 96a5adab75 chore: replace npm with yarn 2022-04-05 17:27:52 +02:00
Christian Kaisermann fcf51f3565 3.4.0 2022-04-05 17:23:52 +02:00
Christian Kaisermann e91e822df1 chore: use rollup-plugin-dts 2022-04-05 17:23:38 +02:00
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 9467cfb78b chore(release): 3.3.13 2021-10-11 08:57:56 -03:00
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 2dd2b54ff7 chore: update CI node version 2021-09-30 11:12:48 -03:00
Christian Kaisermann b9a9f46170 chore(release): 3.3.12 2021-09-30 11:07:43 -03:00
Christian Kaisermann 7cda01ef1c chore: update lint dependencies 2021-09-30 11:07:33 -03:00
Christian Kaisermann 60f7413cf8 chore(release): 3.3.11 2021-09-30 11:02:58 -03:00
Denis Richard 721e991d90 check module scripts for message definitions - CLI 2021-09-30 11:02:48 -03:00
Christian Kaisermann 64e8ae2bd3 fix: fallback delve to undefined for an undefined key 2021-09-30 10:54:24 -03:00
Christian Kaisermann 20986aa506 chore(release): 3.3.10 2021-08-24 09:09:47 -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
Christian Kaisermann 2537314af5 chore: update svelte and rollup deps 2021-08-24 08:25:52 -03: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
Christian Kaisermann 62cc867f0a 3.3.9 2021-03-27 17:18:25 -03:00
Christian Kaisermann 1c516c9cda fix: 🐛 only set lang attr if lang is not nullish
 Closes: #133
2021-03-27 17:18:17 -03:00
Christian Kaisermann cb443f81f5 chore: fix action 2021-03-27 17:14:12 -03:00
Christian Kaisermann 769a4e2620 3.3.8 2021-03-27 17:01:26 -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
Pig Fang d082d0e25d docs: fix markdown 2021-03-22 09:46:42 -03:00
Christian Kaisermann 5776e01b8c chore: add @types/nodes 2021-03-18 22:10:40 -03:00
Christian Kaisermann f7d509348c 3.3.7 2021-03-17 15:43:33 -03:00
Benjamin Buhler 88ad5b2180
fix: clear locale lookup cache when new messages are added (#130)
* Added test to prove that addMessage is not updating returned messages

* Clear lookupCache for locale when addMessages is called

* Update test/runtime/includes/lookup.test.ts

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
2021-03-17 15:43:23 -03:00
Christian Kaisermann d4b98817d5 3.3.6 2021-02-25 08:14:01 -03:00
Christian Kaisermann 396e181e00 fix: 🐛 generated types directory 2021-02-25 08:13:48 -03:00
Christian Kaisermann 3e679d1e98 chore: 🤖 update linter preset 2021-02-21 13:23:24 -03:00
Christian Kaisermann 8021942f96 3.3.5 2021-02-21 13:18:50 -03:00
Christian Kaisermann 980bc18f29 fix: 🐛 support deep properties keyed with dots
 Closes: #129
2021-02-21 13:18:50 -03:00
Christian Kaisermann 256b5cd37c chore: fix lint issues 2021-02-21 13:18:48 -03:00
dependabot[bot] cd0ebb3169
chore(deps): bump ini from 1.3.5 to 1.3.8 (#113)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 13:40:45 -03:00
dependabot[bot] 41300ada41
chore(deps): bump node-notifier from 8.0.0 to 8.0.1 (#116)
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 13:40:35 -03:00
Christian Kaisermann 5771c7cd6b 3.3.4 2021-02-15 13:39:27 -03:00
Christian Kaisermann b0e92f8228 3.3.3 2021-02-15 13:39:15 -03:00
Christian Kaisermann 9b5023edbf test: 💍 add tests for invalid ICU syntax 2021-02-15 13:39:11 -03:00
Ivan Chalyk 0d623f9884
fix: crash if message has syntax error (#128)
* fix crash if message has syntax error

* fix custom number format test & lint require error

Co-authored-by: Ivan Chalyk <boomfly@boomfly-pro.local>
2021-02-15 13:36:28 -03:00
Christian Kaisermann 8ad5250f71 3.3.2 2021-02-10 21:42:57 -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 de865fb45a docs: fix changelog 2021-02-10 21:23:58 -03:00
Christian Kaisermann 067587f2d6 3.3.1 2021-02-10 21:23:30 -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 739d784c16 Refactor type imports to use type modifier 2020-12-03 15:08:34 -03:00
Christian Kaisermann abbd396128 chore(release): v3.3.0 2020-11-24 10:50:25 -03:00
Christian Kaisermann 3add4e66b7 refactor: 💡 warn on deprecated usage instead of error-ing 2020-11-24 10:50:25 -03:00