feat(locale): Added a locale setting in Settings app

This removes the need to rebuild the phone in order to change language
This commit is contained in:
Taso authored and Taso committed 2021-03-17 10:24:28 -04:00
1 parent 5c6538b340
commit a6e8c769c0
6 files changed
+82 -9

No files matched your search

+5 -3
View File
@@ -27,9 +27,11 @@ i18n
.use(initReactI18next) // passes i18n down to react-i18next
.init({
resources,
lng: config.language,
keySeparator: false, // we do not use keys in form messages.welcome
lng: config.defaultLanguage,
react: {
bindI18n: 'languageChanged',
},
keySeparator: '.', // we do not use keys in form messages.welcome
interpolation: {
escapeValue: false, // react already safes from xss