Browse Source

Fixes loading jquery-i18next.

j8
damencho 8 years ago
parent
commit
2e4b39c19c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/translation/translation.js

+ 2
- 2
modules/translation/translation.js View File

36
     }
36
     }
37
 
37
 
38
     init() {
38
     init() {
39
+        jqueryI18next.init(i18next, $, { useOptionsAttr: true });
40
+
39
         if (i18next.isInitialized)
41
         if (i18next.isInitialized)
40
             _onI18nInitialized();
42
             _onI18nInitialized();
41
         else
43
         else
42
             i18next.on('initialized', _onI18nInitialized);
44
             i18next.on('initialized', _onI18nInitialized);
43
-
44
-        jqueryI18next.init(i18next, $, { useOptionsAttr: true });
45
     }
45
     }
46
 
46
 
47
     setLanguage(language: string = DEFAULT_LANGUAGE) {
47
     setLanguage(language: string = DEFAULT_LANGUAGE) {

Loading…
Cancel
Save