mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
repair transalte bug
This commit is contained in:
@@ -4,8 +4,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
|
|||||||
import { initReactI18next } from 'react-i18next';
|
import { initReactI18next } from 'react-i18next';
|
||||||
import { mediaUrl } from '../utils/constants';
|
import { mediaUrl } from '../utils/constants';
|
||||||
|
|
||||||
let { lang = 'en' } = window.app.config;
|
const { lang = 'en' } = window.app.config;
|
||||||
lang = lang === 'zh-cn' ? 'zh_cn' : lang; // Compatible with transifex platform
|
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(Backend)
|
.use(Backend)
|
||||||
@@ -17,7 +16,7 @@ i18n
|
|||||||
ns: ['sdoc-editor'],
|
ns: ['sdoc-editor'],
|
||||||
defaultNS: 'sdoc-editor',
|
defaultNS: 'sdoc-editor',
|
||||||
|
|
||||||
whitelist: ['en', 'zh_CN', 'fr', 'de', 'cs', 'es', 'es-AR', 'es-MX', 'ru'],
|
whitelist: ['en', 'zh-CN', 'fr', 'de', 'cs', 'es', 'es-AR', 'es-MX', 'ru'],
|
||||||
|
|
||||||
backend: {
|
backend: {
|
||||||
loadPath: mediaUrl + 'sdoc-editor/locales/{{ lng }}/{{ ns }}.json',
|
loadPath: mediaUrl + 'sdoc-editor/locales/{{ lng }}/{{ ns }}.json',
|
||||||
|
Reference in New Issue
Block a user