mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
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:
1 parent
5c6538b340
commit
a6e8c769c0
6 files changed
+82
-9
No files matched your search
+5
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user