@seafile/comment-editor 0.0.4-alpha.1 → 0.0.4-alpha.2

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.
@@ -9,6 +9,7 @@ var _reactI18next = require("react-i18next");
9
9
  var _i18next = _interopRequireDefault(require("i18next"));
10
10
  var _i18nextBrowserLanguagedetector = _interopRequireDefault(require("i18next-browser-languagedetector"));
11
11
  var _i18nextHttpBackend = _interopRequireDefault(require("i18next-http-backend"));
12
+ var _pathBrowserify = _interopRequireDefault(require("path-browserify"));
12
13
  let {
13
14
  lang
14
15
  } = window.seafileConfig;
@@ -20,7 +21,7 @@ _i18next.default.use(_i18nextHttpBackend.default).use(_i18nextBrowserLanguagedet
20
21
  defaultNS: 'sdoc-editor',
21
22
  whitelist: ['en', 'zh_CN', 'fr', 'de', 'cs', 'es', 'es-AR', 'es-MX', 'ru'],
22
23
  backend: {
23
- loadPath: '/public/locales/{{ lng }}/{{ ns }}.json'
24
+ loadPath: _pathBrowserify.default.join(__dirname, '../public/locales/{{lng}}/{{ns}}.json')
24
25
  },
25
26
  debug: false,
26
27
  // console log if debug: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.4-alpha.1",
3
+ "version": "0.0.4-alpha.2",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",
@@ -18,6 +18,7 @@
18
18
  "dtable-ui-component": "^6.0.15",
19
19
  "is-hotkey": "0.2.0",
20
20
  "is-url": "^1.2.4",
21
+ "path-browserify": "^1.0.1",
21
22
  "react-transition-group": "4.4.5",
22
23
  "reactstrap": "9.2.3",
23
24
  "rehype-format": "5.0.0",
@@ -174,4 +175,4 @@
174
175
  "publishConfig": {
175
176
  "access": "public"
176
177
  }
177
- }
178
+ }