Closed icalvin102 closed 2 years ago
Agreed. I must have missed that one as it's one I haven't used myself. I'm going to check https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html and see if I can get an initial implementation by the end of the week. When I do I'll ping you so you can test if works as you expect
Work on the compiler is done in https://github.com/cibernox/babel-plugin-precompile-intl/pull/18
Tomorrow I'll implement the runtime part.
I released 0.10.0-beta.0 with some initial support. Try it out and let me know if anything is not working as you expect.
I released 0.10.0-beta.2 that has better support. Notably it supports scale
, which is transformed in build time to division like number / 100
. At this point i think the feature is pretty usable. I added documentation in https://svelte-intl-precompile.com/en/docs/icu-crash-course
If you don't find any problem I might release a non-beta version this week
Closing since this has been released in 0.10
I'm currently migrating one of my projects from
svelte-i18n
tosvelte-intl-precompile
and got the following error.After some digging I found out that the use of number skeletons (e.g
Account balance {balance, number, ::currency/EUR}
) is causing this error.IMO the number skeletons are a very important part of the ICU Message Format and it would be nice if they where supported by
svelte-intl-precompile