From 9667b332ca87b25c9fb6d9c93e0762beb6c39d63 Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Wed, 15 Nov 2023 11:37:11 +0100 Subject: [PATCH] WIP --- avUi/i18n-override-service.js | 2 +- dist/appCommon-v10.0.2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/avUi/i18n-override-service.js b/avUi/i18n-override-service.js index 83f9a98f..2c204504 100644 --- a/avUi/i18n-override-service.js +++ b/avUi/i18n-override-service.js @@ -103,7 +103,7 @@ angular // for reference. $rootScope.$emit( 'i18nextLanguageChange', - $window.i18n.lng() + $i18next.options.lng ); }; } diff --git a/dist/appCommon-v10.0.2.js b/dist/appCommon-v10.0.2.js index f6652484..aeb0f004 100644 --- a/dist/appCommon-v10.0.2.js +++ b/dist/appCommon-v10.0.2.js @@ -1132,7 +1132,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist $i18next(i18nString, {}); }); }), languagesConf && languagesConf.force_default_language && ($i18next.options.lng = languagesConf.default_language), - $rootScope.$emit("i18nextLanguageChange", $window.i18n.lng()); + $rootScope.$emit("i18nextLanguageChange", $i18next.options.lng); }; } ]), angular.module("avUi").directive("avChangeLang", [ "$i18next", "ipCookie", "angularLoad", "amMoment", "$rootScope", "ConfigService", "$window", "I18nOverride", "Authmethod", function($i18next, ipCookie, angularLoad, amMoment, $rootScope, ConfigService, $window, I18nOverride, Authmethod) { return {