Fix nb-NO translation

This commit is contained in:
Ayaka Mikazuki 2023-03-22 16:15:11 +09:30
parent a6ebfc527f
commit a0995c6f80
5 changed files with 4 additions and 2 deletions

View file

@ -4,14 +4,16 @@ import { initReactI18next } from 'react-i18next';
import Backend from 'i18next-http-backend';
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
.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
.init({
fallbackLng: 'en',
fallbackLng: {
default: ['en'],
},
ns: ['main', 'api', 'about', 'model'],
defaultNS: 'main',
});