Search result not found.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

On this page

Locize Docs

Introduction

Using locize

Integration

Guides / Tips & Tricks

More

Which integration option should I use?Do I have to use the locize CDN or can I host / bundle the translations directly?How is locize different from the alternatives?Why do I get “The passed json is nested too deeply.” when consuming the API?Is locize only for developers and translators or is project management within the process too?What is the regular way to update the translation memory?Is there any visibility on project’s level of completion that shows how translators are progressing?Why is my namespace suddenly a flat json?How to change the publish format?Why does my namespace contain an array with a lot of null items?Why is the pricing so complicated?How to change credit card or billing information or download the invoices?How to import translations from a file?How to manually publish a specific version?How to delete or rename a namespace?Why is there such a high download amount?Where do I find the namespace backups?How can a segment/key be copied/moved or renamed?Why a new namespace is created, when I upload a translation file?I want to use the locize CDN, but would like to have a fallback that uses local/bundled translationsIs it possible to integrate multiple projects in the same app/website?Why do I see strange new keys marked as ONE, FEW, MANY, OTHERS?How do I open and edit JSON files?i18n vs. i18nexti18next vs. locizeWord CounterHow to style text within locize?What do I have to consider if my translation texts may contain confidential information?How to translate a file and download the results?

Going to production

We already saw customers going from integrating locize to production in a few days. There should be a few things to take into consideration before pressing that button:

Your API key

Do not add your API key into your production build. Anyone can take your API key from the code and start using the API to change your translations or adding new content on your cost.
Fetching the translations from our CDN, via locizify, i18next-locize-backend, etc... does not require to use an API key. Only if fetching private translations you need an API key.And for sure you need also an API key, if using the saveMissing, add or update functionality.

If you already leaked your API key to production best will be to remove that key immediately going to your locize project's setting page. Remove it from your codebase with the next deployment or your code.

Using saveMissing, add, update function

Using the feature to add new keys during development is meant to be only used during development. Using it in production can lead to spamming our endpoint with unneeded requests.

Using this on production can force us to start charging you for those saveMissing calls (which currently are free) or in worst case we will be forced to suspend your account.
By enabling this feature, make sure the publish mode for the requested version is set to auto publish, to prevent 412 errors.

Using last used function

Using the locize-lastused module or the used api endpoint is meant to be only used during development. Using it in production can lead to spamming our endpoint with unneeded requests.

Use the locize CDN

Loading translations from the CDN has some significant advantages over loading them from your own server. If you're forced to load them from your own server we would at least consider loading them from the CDN during development to get that realtime feedback.

1) Realtime update

Your changes done using the locize UI or API are immediately published to the CDN which means a huge timesaving during development.

2) Update without deployment

Your translators can fix typos or other mistakes in the content independent from the development. There is no need to download the translations updating your codebase and having to deploy it.

Versions & Caching

If you decided to use the locize CDN in production there is one important tipp.

Create an additional version in the project settings. And enable caching on it. This will improve load times on first request because the translations get cached on available edge locations bringing your translations closer to the users resulting in better latency. Further subsequent requests will be cached by the browser improving the experience even more.