Open achur opened 12 years ago
I have a repo for this. Messageformat.js will have a plugin to this with precompilation soon. I wrote it but it needs tests and some bug fixes. Its super cool though.
Awesome, looking forward to it.
I'm working on a generic way to give this to people, but just as an update, I have a public project that is using the general idea of what I want to do with messageformat.js
being used as an additional compilation step.
https://github.com/jedtoolkit/messageform.at/blob/master/dev/js/hbs/i18nprecompile.js
js format works as follows:
outputs
It would be awesome if we could do something like
which would localize the string with the two parameters.