@seafile/comment-editor 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ const getI18n = settings => {
21
21
  loadPath = `${mediaUrl}locales/{{ lng }}/{{ ns }}.json`;
22
22
  }
23
23
  if (propsLang) {
24
- lang = propsLang;
24
+ lang = propsLang === 'zh-cn' ? 'zh-CN' : lang;
25
25
  }
26
26
  }
27
27
  _i18next.default.use(_i18nextHttpBackend.default).use(_i18nextBrowserLanguagedetector.default).use(_reactI18next.initReactI18next).init({
@@ -32,7 +32,7 @@ const getI18n = settings => {
32
32
  debug: false,
33
33
  // console log if debug: true
34
34
 
35
- whitelist: ['en', 'zh_CN', 'fr', 'de', 'cs', 'es', 'es-AR', 'es-MX', 'ru'],
35
+ whitelist: ['en', 'zh-CN', 'fr', 'de', 'cs', 'es', 'es-AR', 'es-MX', 'ru'],
36
36
  backend: {
37
37
  loadPath
38
38
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",