diff --git a/src/js/angular/core/directives/yasgui-component/yasgui-component.directive.js b/src/js/angular/core/directives/yasgui-component/yasgui-component.directive.js index 571449fe9..1640dacfc 100644 --- a/src/js/angular/core/directives/yasgui-component/yasgui-component.directive.js +++ b/src/js/angular/core/directives/yasgui-component/yasgui-component.directive.js @@ -79,7 +79,6 @@ function yasguiComponentDirective( }, link: ($scope, element, attrs) => { $scope.classToApply = attrs.class || ''; - $scope.language = $languageService.getLanguage(); const downloadAsPluginNameToEventHandler = new Map(); const outputHandlers = new Map(); @@ -353,6 +352,7 @@ function yasguiComponentDirective( } addDirtyCheckHandlers(); + $scope.language = $languageService.getLanguage(); } }; diff --git a/src/js/angular/explore/controllers.js b/src/js/angular/explore/controllers.js index d2bc0eadd..4c9245de3 100644 --- a/src/js/angular/explore/controllers.js +++ b/src/js/angular/explore/controllers.js @@ -39,7 +39,6 @@ ExploreCtrl.$inject = [ 'FileTypes', '$jwtAuth', '$translate', - '$languageService', '$q', 'ExploreRestService']; @@ -55,7 +54,6 @@ function ExploreCtrl( FileTypes, $jwtAuth, $translate, - $languageService, $q, ExploreRestService) {