Skip to content

Commit

Permalink
🐞 default translation appears when switching language for the first …
Browse files Browse the repository at this point in the history
…time (#373)

Parent issue: sequentech/meta#315
  • Loading branch information
edulix committed Dec 13, 2023
1 parent 7fc61d5 commit 8de2f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions avUi/i18n-override-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ angular

// This will trigget a $i18next's init function to be called and all
// angularjs $i18next translations to be updated accordingly.
// `i18nextLanguageChange` signal is special for $i18next, see its code
// for reference.
$rootScope.$emit(
'i18nextLanguageChange',
$i18next.options.lng
);
$i18next.reInit();
};
}
);
2 changes: 1 addition & 1 deletion dist/appCommon-vmaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
$window.i18n.addResources(language, "translation", i18nOverride), _.each(_.keys(i18nOverride), function(i18nString) {
$i18next(i18nString, {});
});
}), $rootScope.$emit("i18nextLanguageChange", $i18next.options.lng);
}), $i18next.reInit();
};
} ]), 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 {
Expand Down

0 comments on commit 8de2f3c

Please sign in to comment.