Closed gerukin closed 1 year ago
Thanks! I think the compiler didn't account for the posibility of a "translation path" being empty. I didn't cross my mind that it was a possibility. I'll improve the build time compiler to account for that.
I think I've fixed it. Run npm update babel-plugin-precompile-intl
and it should work.
Awesome library, thank you for the hard work! š As a matter of fact, I switched to it because of some issues in the pre-rendering pipeline with
svelte-i18n
(in addition to the other benefits) and it was an exceptionally smooth transition.... with one exception. šConsider the following, which works:
And the following, which doesn't:
The only difference is the space between the 2 main blocks.
Now I can add the space back in the middle, and instead remove the space in the first
{}
:No error but the output (with
0
and11
for the values) is:No issue with values other than
0
. Also, FYI it worked fine insvelte-i18n
.Thanks again!