Fixes loading jquery-i18next.

This commit is contained in:
damencho 2017-03-07 16:46:37 -06:00 committed by hristoterezov
parent 3ee65748bb
commit 2e4b39c19c
1 changed files with 2 additions and 2 deletions

View File

@ -36,12 +36,12 @@ class Translation {
}
init() {
jqueryI18next.init(i18next, $, { useOptionsAttr: true });
if (i18next.isInitialized)
_onI18nInitialized();
else
i18next.on('initialized', _onI18nInitialized);
jqueryI18next.init(i18next, $, { useOptionsAttr: true });
}
setLanguage(language: string = DEFAULT_LANGUAGE) {