diff --git a/avUi/change-lang-directive/change-lang-directive.js b/avUi/change-lang-directive/change-lang-directive.js index 0275d594..728f2750 100644 --- a/avUi/change-lang-directive/change-lang-directive.js +++ b/avUi/change-lang-directive/change-lang-directive.js @@ -36,7 +36,7 @@ angular.module('avUi') { scope.deflang = $window.i18next.resolvedLanguage; angular.element('#ng-app').attr('lang', scope.deflang); - scope.langs = $i18next.options.lngWhitelist; + scope.langs = $window.i18next.options.lngWhitelist; var isAdmin = Authmethod.isAdmin(); function triggerDropdown() { diff --git a/avUi/custom-i18n-filter/custom-i18n-filter.js b/avUi/custom-i18n-filter/custom-i18n-filter.js index 13a166b7..7cfe3f88 100644 --- a/avUi/custom-i18n-filter/custom-i18n-filter.js +++ b/avUi/custom-i18n-filter/custom-i18n-filter.js @@ -28,7 +28,7 @@ angular return function(data, key) { var suffix = "_i18n"; - var lang = window.i18n.lng(); + var lang = window.i18next.resolvedLanguage; var value = ''; if (_.isString(key) && _.isObject(data) && _.isString(lang)) { value = data[key + suffix] && data[key + suffix][lang] || data[key] || value; diff --git a/dist/appCommon-v10.1.0.js b/dist/appCommon-v10.1.0.js index c6408cc3..34b1d0b0 100644 --- a/dist/appCommon-v10.1.0.js +++ b/dist/appCommon-v10.1.0.js @@ -1157,7 +1157,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist scope: {}, link: function(scope, element, attrs) { scope.deflang = $window.i18next.resolvedLanguage, angular.element("#ng-app").attr("lang", scope.deflang), - scope.langs = $i18next.options.lngWhitelist; + scope.langs = $window.i18next.options.lngWhitelist; var isAdmin = Authmethod.isAdmin(); element.on("click", function() { setTimeout(function() { @@ -1736,7 +1736,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist }; } ]), angular.module("avUi").filter("customI18n", function() { return function(data, key) { - var lang = window.i18n.lng(), value = ""; + var lang = window.i18next.resolvedLanguage, value = ""; return value = _.isString(key) && _.isObject(data) && _.isString(lang) ? data[key + "_i18n"] && data[key + "_i18n"][lang] || data[key] || value : value; }; }), angular.module("common-ui", [ "ui.bootstrap", "ui.utils", "ui.router", "ngAnimate", "ngResource", "ngCookies", "ipCookie", "ngSanitize", "infinite-scroll", "angularMoment", "SequentConfig", "jm.i18next", "avRegistration", "avUi", "avTest", "angularFileUpload", "dndLists", "angularLoad", "ng-autofocus" ]), diff --git a/dist/index.html b/dist/index.html index 4cd3b32f..94f5fa61 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,4 +1,2 @@ -Sequent Tech
Page is taking some time to load, wait a moment please. If it takes too long, please check that you have javascript activated, try with another browser or contact us.
For security reasons, your browser is unsupported. Please use a newer web browser (if you are using Internet Explorer, use version 9 or newer).
\ No newline at end of file diff --git a/index.html b/index.html index a0b14457..496df086 100755 --- a/index.html +++ b/index.html @@ -32,9 +32,6 @@ -