Miguel Camba
Miguel Camba
I also did a proof of concept for a babel plugin that takes the translations and converts them into functions: https://github.com/cibernox/babel-plugin-precompile-icu Check the tests, but the tl;dr; is that it...
Now I managed to write a rollup plugin that compiles the json files and imports the helpers from https://github.com/cibernox/icu-helpers Now that the translations are functions that take arguments, the only...
@hmaesta I recently released a library implementing some of this ideas: https://github.com/cibernox/svelte-intl-precompile It has an API that I think it's almost 100% compatible with svelte-i18n. The docs say it's for...
Ok, I have it working. Now the size of an very simple app without `svelte-i18n` and with no messages is 2.1kb, and the same app including `svelte-i18n` (this crippled version)...
I have the demo app working 🎉 Translations are very compact. This is how the compiled and uglified output looks in the app if you pretty-print it: ```js { plain:...
I *believe* this could be ready. I moved to babel the flattening of the translations, so we don't ship any code for it, and also I'm using `svelte/store` to avoid...
@albertms10 I don't think i will be merged into this project anytime soon, but I have independent repositories for all the pieces with some instructions to make it work. https://github.com/cibernox/precompile-intl-runtime...
Hi! Is there anything I can do to help with this?
This change is indeed surprising. The name `willDestroy` totally makes one think that whatever you run there will happen before DOM nodes are destroyed.
Same problem here. I'm not sure what command I should be sending (or rather, what value)