mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-28 22:07:52 +00:00
Use language detected from browser
This commit is contained in:
parent
aace10c853
commit
07ed170fd7
9
i18n.js
9
i18n.js
@ -25,10 +25,6 @@ i18n
|
||||
.use(initReactI18next)
|
||||
.use(capitalize)
|
||||
.init({
|
||||
debug: isDev,
|
||||
fallbackLng: 'en',
|
||||
ns: ['auth', 'core', 'tutorial'],
|
||||
supportedLngs: ['en', 'it'],
|
||||
backend: {
|
||||
backends: [LocalStorageBackend, HttpBackend],
|
||||
backendOptions: [
|
||||
@ -40,9 +36,14 @@ i18n
|
||||
},
|
||||
],
|
||||
},
|
||||
debug: isDev,
|
||||
fallbackLng: 'en',
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
lng: navigator.language,
|
||||
ns: ['auth', 'core', 'tutorial'],
|
||||
supportedLngs: ['en', 'it'],
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
|
Loading…
x
Reference in New Issue
Block a user