- About me
- Not so frequently asked questions and stuff
- Articles en français
gettext style method.
Meet jsgettext. It is basically a boiled down version of the usual gettext tool that is used everywhere in nearly every programming language. It supports the standard gettext functions, including the one using contexts or plural forms.
Unfortunately, I found that the documentation of its usage was quite limited. This is why I uploaded here a sample app that gets its text translated in 3 different parts:
Each part include examples of translations including placeholders and/or plural forms.
You can find the code attached to this post, but for convenience I've also uploaded it on GitHub: