This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 321
Localization
chrisgarrity edited this page Sep 1, 2016
·
2 revisions
ScratchJr uses Transifex for translation. To update the strings you need to have the Transifex Client installed. Further documentation of the client commands is available at http://docs.transifex.com/client/. You will need to register with Transifex (free). Then follow the directions to initialize and configure the client.
All localizable strings should be in editions/free/en.json.
New strings to translate:
- Run tx push -s to push updates to transifex
Update Translations:
- Run tx pull -r scratchjr.enjson --mode=developer to pull all new translations
- Run tx pull -r scratchjr.enjson --mode=reviewed to pull only reviewed translations
Update ...src/utils/Localization.js to require the libraries corresponding to the new language code.
Edit src/settings.json to include the new language name and language code in the supportedLocales setting.
- Run tx pull -f -l {language-code} to pull the new translation files into the source tree from Transifex.