1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

push sdoc-editor translate to transifex (#5613)

* push sdoc-editor translate to transifex

* update translate
This commit is contained in:
杨顺强
2023-08-28 14:49:26 +08:00
committed by GitHub
parent 861f320158
commit e7290dca81
10 changed files with 1845 additions and 691 deletions

View File

@@ -4,7 +4,8 @@ import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import { mediaUrl } from '../utils/constants';
const { lang = 'en' } = window.app.config;
let { lang = 'en' } = window.app.config;
lang = lang === 'zh-cn' ? 'zh_cn' : lang; // Compatible with transifex platform
i18n
.use(Backend)
@@ -16,7 +17,7 @@ i18n
ns: ['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: {
loadPath: mediaUrl + 'sdoc-editor/locales/{{ lng }}/{{ ns }}.json',