Translation CDN
How to use the CDN to serve your translations
This feature is currently supported only for apps using gt-next or gt-react.
Overview
When you translate your gt-next or gt-react app, we automatically serve your translations from our CDN.
In production, gt-next and gt-react will lazy-load these translations from the CDN if your users request your app in a different language. This means you can internationalise your app without having to worry about latency or bundle size for your users.
With 300+ edge nodes worldwide, our CDN ensures your users will always experience the lowest possible latency when viewing your app in a different language.
How to use
By default, translations are automatically published to the CDN whenever you run gtx-cli translate.
However, you can disable this if needed.
- Go to the project settings page.
- Toggle the "Publish to CDN" switch.
- Re-run the
gtx-cli translatecommand.
How is this guide?