We use POEditor to streamline our translation process.
- Login to POEditor
- Update and review the language
- Please toggle the
Proofread
flag for all translations that you finished - Drop us a note that we can integrate your work in our project
- Drop us a note that you translate and we will enable the features in the App for you.
- Goto
Menu | Settings | Erase all Content
- When the App refreshes, you will have an additional menu
Developer
. This gives you access to the live translations features. You can choose another language viaOverride Language
. You see all available languages, even if they are not yet released. - You can refresh the translations any time via
Refresh Current Translations
. Translations are live downloaded from the POEditor service and applied to the App. Such, you can validate what you translated. - If you want to get back to the defaults, press
Reset Translations to Default
.
- We use a babel plugin
module-resolver
to provide moment with all languages pre-loaded (moment/min/moment-with-locales
) - Languages can be provided on the fly for an App release via
CDN:/translations/#channel#/#lang#.json
If you added terms to the App, other languages need to translate that new terms.
- Update the english locale only!
yarn translations
and commit- Login to POEditor
- Settings | GitHub
- Tick the language
- Click
Get terms
- Notify translators about new terms
- Login to POEditor
- Settings | GitHub
- Tick the language
- Export to GitHub
- Languages can be published on the fly for an App via CDN
- Know you iso2 code (
XX
) - Add
XX_strings.json
with{}
- Add
XX.ts
import XX from './XX_strings.json';
XX.id = 'XX';
export default XX;
- Add language to
translations.ts
,loadLanguage
- Add language to
.env
,APP_LANGUAGES
- Add the language to POEditor
- Add a mapping for the file in POEditor
- Find someone who can translate it :)
- Make a new release build and publish it to the stores
When the language is approved, the add language to azure-pipelines.yaml
, APP_LANGUAGES
. This will publish the language together with the App.