• Documentation
  • Django SDK
  • Fetching Translations from Transifex

Fetching Translations from Transifex


Transifex Native is currently in BETA. To learn more about the solution as well as to have a hands on experience please get in touch with us.

With Transifex Native translations are fetched continuously over the air (OTA) to your application. There is no need to restart your server or deploy code to see newest translations.

What actually happens is:

  • The first time the application starts, the integration populates its internal memory with the state of translations in Transifex.
  • A daemon (thread) runs in the background to periodically re-fetch translations and update the internal memory accordingly.

The translations are available while your application is running, on a developer's local environment working on a new code or on your production where your users interact with the application.

However, it does not start by default when running a Django shell or any of the ./ <command> commands. which means that in those cases, by default, translations will not be available on your application.

Force translation sync

Translations are available over the air (OTA) for your application when the Django server is running and listening for HTTP requests.

However if you need to run Django shell or Django commands and have Transifex Native provide localized content, you can achieve it by using the FORCE_TRANSLATIONS_SYNC environment variable. Having this variable enabled, will start the daemon and fetch translations periodically.

For example, if you want to run a Django shell with translations available and receive OTA translation updates, you can do so by running: