ember-cli-i18next
Advanced tools
Comparing version
@@ -5,2 +5,3 @@ 'use strict'; | ||
import helper from '../helpers/i18next'; | ||
import config from '../config/environment'; | ||
@@ -13,3 +14,4 @@ export default { | ||
var locale = localStorage.locale || 'en'; | ||
var locale = localStorage.locale || 'en' | ||
, baseUrl = config.baseURL || '/'; | ||
@@ -26,3 +28,3 @@ i18n.init({ | ||
, getAsync: true | ||
, resGetPath: '/locales/__lng__/__ns__.json' | ||
, resGetPath: baseUrl + 'locales/__lng__/__ns__.json' | ||
} | ||
@@ -29,0 +31,0 @@ |
{ | ||
"name": "ember-cli-i18next", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Wrap i18next for ember-cli apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4302
2.21%85
2.41%