diff --git a/frontend/package-lock.json b/frontend/package-lock.json index a31390fc2d..99921486c8 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -954,9 +954,9 @@ } }, "@seafile/seafile-editor": { - "version": "0.2.68", - "resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-0.2.68.tgz", - "integrity": "sha512-X5mOG0TAL42fEAssL85pIlx5D/5Sfv2RZPt9epzL0HUdHnJ+agRuJZCA5zbFPLD5kzNzVxvBuh5oYy0lL05d5A==", + "version": "0.2.69", + "resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-0.2.69.tgz", + "integrity": "sha512-RQOaoQIKo8CMLSa/V8vbjrIf+yyNf3lnHl4D4H+BmJtDjwCrgypa8n1wZI3wqa4PoK15RmCkfKIrcVh2JuejyQ==", "requires": { "@seafile/seafile-calendar": "^0.0.6", "@seafile/slate-react": "^0.1.8", diff --git a/frontend/package.json b/frontend/package.json index e824199186..f769a56263 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,7 @@ "@reach/router": "^1.2.0", "@seafile/dtable": "0.0.140", "@seafile/resumablejs": "^1.1.13", - "@seafile/seafile-editor": "^0.2.68", + "@seafile/seafile-editor": "^0.2.69", "MD5": "^1.3.0", "autoprefixer": "7.1.6", "classnames": "^2.2.6", diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js index cfe041ff9c..3da1a93c0e 100644 --- a/frontend/src/i18n.js +++ b/frontend/src/i18n.js @@ -2,7 +2,9 @@ import i18n from 'i18next'; import Backend from 'i18next-xhr-backend'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; -import { mediaUrl, lang } from './utils/constants'; +import { mediaUrl } from './utils/constants'; + +const lang = window.app.pageOptions.lang; i18n .use(Backend)