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?

Why is there such a high download amount?

You may notice on your invoice or in your project statistics (i.e. on your Health / Metrics page) an elevated amount of high downloads.

Usually, this means one of the following reasons:

You've integrated i18next-locize-backend or using the download API in a serverless environment

Due to how serverless functions work, you cannot guarantee that a cached version of your data is available. Serverless functions are short-lived, and can shut down at any time, purging any in-memory or filesystem cache. This will probably generate downloads for each serverless function invocation.
Solution: We suggest to download the translations in your CI/CD pipeline (via cli or via api) and package them with your serverless function.

You're creating a new i18next instance or initializing i18next on each request

This will trigger i18next to fetch the translations again and generates new downloads on each request.
Solution: Try to redesign how the i18next initialization, to only have one i18next instance or alternatively clone the i18next instance.

You're using next-i18next with the i18next-locize-backend

Depending on your Remix deployment environment the root cause of this will be either because it's some kind of serverless environment or because a new i18next instance is created under the hood.
Solution: Follow this guide and this example and bundle the translations with your Remix app.

You're using remix-i18next with the i18next-locize-backend

Depending on your Remix deployment environment the root cause of this will be either because it's some kind of serverless environment or because a new i18next instance is created under the hood.
Solution: Follow this guide and this example and bundle the translations with your Remix app.

You've integrated the locize CDN directly in to your mobile app

Due to how mobile apps work, when fetching remote data (like your translations), they will not be cached, event if you define some caching in locize. Such a setup will probably generate downloads on each app start.
Solution: We suggest to download the translations when packaging your  app (via cli or via api) and bundle them with your mobile app.Alternatively, if you still want to have some sort of "live" fallback and you're using i18next with react-native, you may want to try the alternative caching with AsyncStorage.

Beside these reasons, you may want to make use of the caching possibility for general browser usage or other alternative caching approaches.