Prechádzať zdrojové kódy

Merge branch 'nztqa-fix-i18n-subfolder' into devel

Fix i18n route for subfolder. Thanks to nztqa ! Related: #973
Lauri Ojansivu 8 rokov pred
rodič
commit
2356ad8fec
3 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 1 1
      .eslintrc.json
  2. 1 0
      CHANGELOG.md
  3. 1 0
      client/lib/i18n.js

+ 1 - 1
.eslintrc.json

@@ -28,7 +28,7 @@
     "no-unneeded-ternary": 2,
     "radix": 2,
     "semi": [2, "always"],
-    "camelcase": 2,
+    "camelcase": [2, {"properties": "never"}],
     "comma-spacing": 2,
     "comma-style": 2,
     "eol-last": 2,

+ 1 - 0
CHANGELOG.md

@@ -3,6 +3,7 @@
 This release fixes the following bugs:
 
 * [Fix admin panel route for subfolder](https://github.com/wekan/wekan/pull/1084);
+* [Fix i18n route for subfolder](https://github.com/wekan/wekan/pull/1085).
 
 Thanks to GitHub user nztqa for contributions.
 

+ 1 - 0
client/lib/i18n.js

@@ -3,6 +3,7 @@
 // information provided by the browser, and default to english.
 
 Meteor.startup(() => {
+  TAPi18n.conf.i18n_files_route = Meteor._relativeToSiteRootUrl('/tap-i18n');
   Tracker.autorun(() => {
     const currentUser = Meteor.user();
     let language;