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

Fix i18n route for subfolder. Thanks to nztqa ! Related: #973
This commit is contained in:
Lauri Ojansivu 2017-06-26 12:40:24 +03:00
commit 2356ad8fec
3 changed files with 3 additions and 1 deletions

View file

@ -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,

View file

@ -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.

View file

@ -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;