Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #700 from teamforus/release-v0.3.0-hotfix-i18n
Browse files Browse the repository at this point in the history
fix for translation bugs dashbaord and platform
  • Loading branch information
Max Visser authored Oct 28, 2019
2 parents 27e47ca + 42a5ddb commit 07b9759
Show file tree
Hide file tree
Showing 10 changed files with 1,200 additions and 1,122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ let BaseController = function(
$rootScope,
$scope,
$state,
$translate,
AuthService,
RecordService,
OrganizationService,
Expand Down Expand Up @@ -114,12 +115,15 @@ let BaseController = function(
$rootScope.appConfigs.features = res.data;
$rootScope.appConfigs.frontends = res.data.fronts;
});

$translate.use('nl');
};

module.exports = [
'$rootScope',
'$scope',
'$state',
'$translate',
'AuthService',
'RecordService',
'OrganizationService',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ let BaseController = function(
$rootScope,
$scope,
$state,
$translate,
appConfigs,
ConfigService,
CredentialsService,
Expand Down Expand Up @@ -111,14 +112,15 @@ let BaseController = function(
$rootScope.viewLayout = 'landing';
}
});

$translate.use('nl');
$rootScope.appConfigs = appConfigs;
};

module.exports = [
'$rootScope',
'$scope',
'$state',
'$translate',
'appConfigs',
'ConfigService',
'CredentialsService',
Expand Down
14 changes: 4 additions & 10 deletions src/sources/forus-platform/js/angular-1/i18n/i18n-en-values.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// No nested objects allowed
// No nested objects allowed
module.exports = {
general: {
name: "General"
},
nijmegen: {
name: "Nijmegen"
},
zuidhorn: {
name: "Zuidhorn"
}
general: {},
nijmegen: {},
zuidhorn: {}
};
Loading

0 comments on commit 07b9759

Please sign in to comment.