mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 19:43:59 +01:00
Fix nb-NO translation
This commit is contained in:
parent
a6ebfc527f
commit
a0995c6f80
|
@ -4,14 +4,16 @@ import { initReactI18next } from 'react-i18next';
|
||||||
import Backend from 'i18next-http-backend';
|
import Backend from 'i18next-http-backend';
|
||||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||||
|
|
||||||
export const i18nLanguages = ['da', 'en', 'nb-NO', 'zh-CN', 'zh-HK', 'zh-TW'];
|
export const i18nLanguages = ['da', 'en', 'nb', 'zh-CN', 'zh-HK', 'zh-TW'];
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(Backend)
|
.use(Backend)
|
||||||
.use(LanguageDetector)
|
.use(LanguageDetector)
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
.init({
|
.init({
|
||||||
fallbackLng: 'en',
|
fallbackLng: {
|
||||||
|
default: ['en'],
|
||||||
|
},
|
||||||
ns: ['main', 'api', 'about', 'model'],
|
ns: ['main', 'api', 'about', 'model'],
|
||||||
defaultNS: 'main',
|
defaultNS: 'main',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue