1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

repair lang bug (#5611)

This commit is contained in:
杨顺强
2023-08-26 09:07:36 +08:00
committed by GitHub
parent 9ef5a5e15e
commit 86e6eaf8d5

View File

@@ -4,7 +4,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import { mediaUrl } from '../utils/constants';
const lang = window.app.pageOptions.lang;
const { lang = 'en' } = window.app.config;
i18n
.use(Backend)