Managing translations / i18n / localisation
Go to the translations document on Google Drive. There is a tab “Pixwel Platform” which exports it in JSON format to a bucket on S3.UI Templates
in /ui/app/partials are the templates. Here’s an example of using the translations:| t pipes the string ‘common.loading’ into the translate function, which uses the JSON stored on S3 and looks up the correct translation string.
Emails etc
Emails and API-side content is NOT translated at the time of writing and is in English only.Testing for untranslated strings
See /utils/i18n-checks/check.php for a utility that can go through the JSON and check for:- Missing translations (including the case where it’s simply been copy-pasted from English).
- Cases where in the template the developer has referred to a translation string that is not in the spreadsheet
Back to docs index | Next page in recommended reading order >>