Skip to content

Managing Translations

Philip London edited this page Mar 31, 2020 · 4 revisions

About

Translations are mostly managed automatically through the release process and https://lokalise.com/.

Our release process will extract defaultMessages from our jsx and tsx files and add them to locales/en.json

https://lokalise.com/ watches locales/en.json for changes and automatically pulls when a change occurs. A product manager is then in charge of ordering translations for the rest of our supported languages. You should not worry about changing locales/en.json yourself, the release process will do it for you.

When the translations have been finished by https://lokalise.com/:

  1. Go to download

  2. Fill out the form:

Format             => Select "JSON (.json)"
File structure     => Select "All keys to single file per language" and set example field to be `packages/blockchain-wallet-v4-frontend/src/assets/locales/%LANG_ISO%.%FORMAT%`
Empty translations => Select "Export as empty strings"
Order keys by      => Select "First added"
Plural format      => Select "Array"
Placeholder format => Select "Printf"
Indentation        => Select "2 spaces"
Options            => Unescape forward slashes
Data to export     => All
Trigger            => GitHub
  1. Click build only

A PR will be created for you by lokalise.

Clone this wiki locally