Fixes loading jquery-i18next.
This commit is contained in:
parent
3ee65748bb
commit
2e4b39c19c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue