diff options
author | Duda Dornelles <dudassdornelles@gmail.com> | 2015-01-22 17:55:08 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-22 18:09:54 -0200 |
commit | 2e412eba91eac490c859bc6f31052d601f861b33 (patch) | |
tree | ee56d2df3034876e6806179bcca9cb5dafb2201d /web-ui | |
parent | e1f491f7ba55d17406cb2ceb6894e0adf9638226 (diff) |
#224 fixing js tests and locales path
Diffstat (limited to 'web-ui')
-rw-r--r-- | web-ui/app/js/page/default.js | 2 | ||||
-rw-r--r-- | web-ui/app/js/views/i18n.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/js/page/default.js b/web-ui/app/js/page/default.js index 3e260f5d..8ad8f1ff 100644 --- a/web-ui/app/js/page/default.js +++ b/web-ui/app/js/page/default.js @@ -74,7 +74,7 @@ define( 'use strict'; function initialize(path) { - viewI18n.init(path); + viewI18n.init(path + '/assets/'); paneContractExpand.attachTo(document); userAlerts.attachTo('#user-alerts'); diff --git a/web-ui/app/js/views/i18n.js b/web-ui/app/js/views/i18n.js index 19327c27..b09490f5 100644 --- a/web-ui/app/js/views/i18n.js +++ b/web-ui/app/js/views/i18n.js @@ -24,7 +24,7 @@ define(['i18next'], function(i18n) { self.get = self; self.init = function(path) { - i18n.init({detectLngQS: 'lang', fallbackLng: 'en', lowerCaseLng: true, getAsync: false, resGetPath: path + 'assets/locales/__lng__/__ns__.json'}); + i18n.init({detectLngQS: 'lang', fallbackLng: 'en', lowerCaseLng: true, getAsync: false, resGetPath: path + 'locales/__lng__/__ns__.json'}); Handlebars.registerHelper('t', self.get.bind(self)); }; |