Skip to content
chrisgarrity edited this page Nov 1, 2017 · 14 revisions

Localizing Scratch

Notes: command to pull new translations from transifex:

> tx pull -a -s

Setting up a new repository

There are two parts to localizing a new repository, extracting the source strings to be translated and syncing them with transifex, and pulling translations from transifex to be incorporated into the component.

Extracting source strings in React source files

Strings in the source are localized by using the FormattedMessage jsx component or calling formatMessage, and they can also be defined with defineMessages