mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
745 B
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:
-
Copy the default src/translations/en.json English translation messages file into some other file like
es.json. -
Change the messages in the new messages file to your language.
-
In src/config.js, change the
localevariable value -
In src/app.js, change the translation imports to come from the correct
react-intllocale and the new messages file you created.