Using locize with formatJS / messageformat
You can use locize in combination with formatJS. FormatJS is a internationalization framework provided by yahoo using the ICU messageformat.
To integrate locize into your messageformat codebase you will need to load the translations from our CDN via our API and needs a little more coding as using the locizify or i18next scripts.
Eg. Browser using the our API client locizer:
The script enables easy translation loading and provides on top functions to detect users language and to load the available languages on your project.
Eg. Browser using the window.fetch:
(You can find your projectId and API Key in your projects settings under the API Tab.)
For more details you might read our post "the freedom of choice".
Have questions? Contact us!