flex-template-web/docs/i18n.md
2017-12-11 11:03:08 +02:00

745 B

i18n

The application supports having a single language for the UI. By default the language is English.

We are using the react-intl package to translate UI texts and to format dates, numbers, money values, etc.

To change the language, do the following:

  1. Copy the default src/translations/en.json English translation messages file into some other file like es.json.

  2. Change the messages in the new messages file to your language.

  3. In src/config.js, change the locale variable value

  4. In src/app.js, change the translation imports to come from the correct react-intl locale and the new messages file you created.