Instrumenting your code

locizify

Zero effort - drop one line of code.

Using our locizify script is the simplest way to get your website or webapplication translated. We highly recommend using it on your static site generators like wordpress, shopify, ...

Drop one line of code:

You can find your projectId and API Key in your projects settings. (You should not expose your write API key into production - only use it during development)

Reload your page and see the phrases ready to translate in your locize project.

Find more details and configuration options on the github pagearrow-up-right.

https://youtu.be/f0ukRI0LMfo?t=180arrow-up-right

i18next

Best translation management for i18nextarrow-up-right.

You can use locize in combination with i18next. I18next is a well known internationalization framework and offers a wide range of framework integrations and plugins for almost every need.

Learn more about i18nextarrow-up-right

circle-check

To connect i18next with the locize service integrate the i18next-locize-backendarrow-up-right:

(You should not expose your write API key into production - only use it during development)

Here you can find a step by step react tutorial.arrow-up-right

code integrationarrow-up-right part of showcase/demoarrow-up-right

Other i18next tutorials:

circle-check
circle-check
circle-check
circle-check
circle-check
circle-check

other options

client side: polyglot, formatjs, react-intl, vue-i18n, js-lingui, messageformat, ...

circle-info

For server side rendering (SSR) or serverless usage, we do not suggest to use our locizer script. Because of this we suggest to download the translations in your CI/CD pipeline (via cliarrow-up-right or via apiarrow-up-right) and package them with your application. Like described herearrow-up-right.

On client side, you can use our locizerarrow-up-right script to load translations from locize and add them to your i18n framework in the browser:

Sample for polyglot:

Sample for vue-i18n (Vue v3):

The full example can be found herearrow-up-right.

circle-check

For more details checkout locizer docsarrow-up-right.

Our samples:

3rd party modules

  • react-intl-namespacesarrow-up-right Integrations of react-intl internationalization library with locize.com online translation service. Comes with support for namespaces, incontext editor, ...

serverside

circle-check

For JavaScript environments please watch out for the i18next integration optionsarrow-up-right and pluginsarrow-up-right.

On other environments you could use:

other formats xliff, gettext, ...

You can use following modules to convert between formats:

Simplest is to use those in combination with our cliarrow-up-right to build an automated production pipeline powered by grunt, gulp, npm script, ...

Last updated