Transifex Content Delivery Service
The Transifex Native SDK retrieves translated content via an intermediate service, called the Content Delivery Service (CDS). It works similarly to a CDN and serves all translations from a cache, so that the retrieval is fast.
We offer a cloud-based CDS instance at Transifex that you can optionally host yourself (CDS repository), so that translations are served directly from your servers. In order to do that, you need to provide its host in the settings file of your project.
Below is an example for a Django project:
TRANSIFEX_CDS_HOST = 'https://cds.example.com'
The Content Delivery Service (CDS), makes sure that your translations are decoupled from Transifex servers and can be used even if your application is not directly connected with Transifex.
The CDS is responsible for:
- Management of the content you want to push to Transifex through Transifex Native SDK, regardless of the framework you are using.
- Fetching, storing and updating the latest translations from Transifex so that they are available to your applications
The Transifex hosted CDS is installed on AWS servers. There is a caching mechanism in place set for 1 hour. This means that the CDS is updated with new localized content from Transifex every one hour.
If cached content (source or translated phrases) needs to be refreshed sooner than the 1 hour window, developers can manually invalidate CDS using the CLI tool of the various Native SDKs, for example:
CDS can be self-hosted and configured to work with the following storage backends:
- AWS S3 / Cloudfront
- Google Cloud Storage