Skip to content
This repository has been archived by the owner on Dec 23, 2019. It is now read-only.

Commit

Permalink
fix(webpack): relative translations path
Browse files Browse the repository at this point in the history
  • Loading branch information
frenautvh committed Sep 26, 2018
1 parent 13f8a9c commit 8ff5f25
Show file tree
Hide file tree
Showing 223 changed files with 263 additions and 660 deletions.
2 changes: 1 addition & 1 deletion client/app/telecom/dashboard/telecom-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ angular.module('managerApp').config(($stateProvider) => {
noTranslations: true,
},
},
translations: ['common', 'telecom/dashboard'],
translations: ['.'],
resolve: {
$title(translations, $translate) {
return $translate('telecom_dashboard_page_title');
Expand Down
2 changes: 1 addition & 1 deletion client/app/telecom/freeFax/freeFax.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'FreeFax',
},
},
translations: ['common', 'telecom/freeFax'],
translations: ['.'],
resolve: {
$title(translations, $translate, $stateParams) {
return $translate.instant('freefax_page_title', { name: $stateParams.serviceName }, null, null, 'escape');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ angular.module('managerApp').config(($stateProvider) => {
noTranslations: true,
},
},
translations: ['common', 'telecom/freeFax'],
translations: ['../../freeFax'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'VoicemailConf',
},
},
translations: [
'telecom/freeFax/voicemailConfiguration',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'AccessoriesOrderCtrl',
},
},
translations: [
'telecom/orders/accessories',
],
translations: ['.'],
});
});
4 changes: 1 addition & 3 deletions client/app/telecom/orders/alias/telecom-orders-alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OrdersAliasCtrl',
},
},
translations: [
'telecom/orders/alias',
],
translations: ['.'],
});
});
2 changes: 1 addition & 1 deletion client/app/telecom/orders/show/telecom-orders-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OrderFollowUpCtrl',
},
},
translations: ['common', 'telecom/pack/xdsl/orderFollowUp'],
translations: ['../../pack/xdsl/orderFollowUp'],
});
});
5 changes: 2 additions & 3 deletions client/app/telecom/orders/sms/telecom-orders-sms.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ angular.module('managerApp').config(($stateProvider) => {
},
},
translations: [
'common',
'telecom/orders/sms',
'telecom/sms/order',
'.',
'../../sms/order',
],
});
});
2 changes: 1 addition & 1 deletion client/app/telecom/orders/telecom-orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OrdersCtrl',
},
},
translations: ['common', 'telecom/orders', 'telecom/pack/common'],
translations: ['.', '../pack/common'],
resolve: {
$title(translations, $translate) {
return $translate('telecom_order_page_title');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ angular.module('managerApp').config(($stateProvider, $urlRouterProvider) => {
controllerAs: 'OverTheBoxConfigure',
},
},
translations: [
'telecom/overTheBox/configure',
],
translations: ['.'],
});

// special redirection for /configure/overTheBox which is inside internal OTB UX
Expand Down
7 changes: 1 addition & 6 deletions client/app/telecom/overTheBox/details/overTheBox-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OverTheBoxDetails',
},
},
translations: [
'common',
'telecom/overTheBox/details',
'telecom/overTheBox/warning',
'telecom/overTheBox/remote',
],
translations: ['.', '../warning', '../remote'],
});
});
4 changes: 1 addition & 3 deletions client/app/telecom/overTheBox/docs/overTheBox-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OverTheBoxDocs',
},
},
translations: [
'telecom/overTheBox/docs',
],
translations: ['.'],
});
});
4 changes: 1 addition & 3 deletions client/app/telecom/overTheBox/logs/overTheBox-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OTBLogs',
},
},
translations: [
'telecom/overTheBox/logs',
],
translations: ['.'],
});
});
6 changes: 3 additions & 3 deletions client/app/telecom/overTheBox/order/order-overTheBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ angular.module('managerApp').config(($stateProvider) => {
},
},
translations: [
'telecom/overTheBox',
'telecom/overTheBox/order',
'telecom/overTheBox/warning',
'.',
'..',
'../warning',
],
});
});
9 changes: 4 additions & 5 deletions client/app/telecom/overTheBox/overTheBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ angular.module('managerApp').config(($stateProvider) => {
},
},
translations: [
'common',
'telecom/overTheBox',
'telecom/overTheBox/details',
'telecom/overTheBox/warning',
'telecom/overTheBox/remote',
'.',
'./details',
'./warning',
'./remote',
],
resolve: {
$title(translations, $translate, $stateParams, OvhApiOverTheBox) {
Expand Down
4 changes: 1 addition & 3 deletions client/app/telecom/overTheBox/remote/overTheBox-remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OverTheBoxRemote',
},
},
translations: [
'telecom/overTheBox/remote',
],
translations: ['.'],
});
});
4 changes: 1 addition & 3 deletions client/app/telecom/overTheBox/tasks/overTheBox-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'OverTheBoxTasks',
},
},
translations: [
'telecom/overTheBox/tasks',
],
translations: ['.'],
});
});
4 changes: 1 addition & 3 deletions client/app/telecom/pack/migration/telecom-pack-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ angular.module('managerApp').config(($stateProvider) => {
noTranslations: true,
},
},
translations: [
'telecom/pack/migration',
],
translations: ['.'],
});
});
5 changes: 1 addition & 4 deletions client/app/telecom/pack/move/pack-move.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackMove',
},
},
translations: [
'telecom/pack/move',
'telecom/pack/move/contract',
],
translations: ['.', './contract'],
});
});
9 changes: 4 additions & 5 deletions client/app/telecom/pack/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ angular.module('managerApp').config(($stateProvider) => {
},
},
translations: [
'common',
'telecom/pack',
'telecom/pack/common',
'telecom/task',
'telecom/pack/slots/emailPro',
'.',
'./common',
'../task',
'../pack/slots/emailPro',
],
});
});
4 changes: 1 addition & 3 deletions client/app/telecom/pack/resiliation/pack-resiliation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackResiliation',
},
},
translations: [
'telecom/pack/resiliation',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackDomainActivation',
},
},
translations: [
'telecom/pack/slots/domain/activation',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: '$ctrl',
},
},
translations: ['common', 'telecom/pack/slots/emailPro/add'],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: '$ctrl',
},
},
translations: ['common', 'telecom/pack/slots/emailPro/detail'],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'ctrl',
},
},
translations: [
'telecom/pack/slots/exchangeIndividual/add',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'ctrl',
},
},
translations: ['common', 'telecom/pack/slots/hostedEmail/add'],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'DetailCtrl',
},
},
translations: [
'telecom/pack/slots/hostedEmail/detail',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackHubicActivation',
},
},
translations: [
'telecom/pack/slots/hubic/activation',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackFaxActivationCtrl',
},
},
translations: ['common', 'telecom/pack/slots/voipEcoFax/activation'],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackVoipLineActivationCtrl',
},
},
translations: ['common', 'telecom/pack', 'telecom/pack/slots/voipLine/activation'],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
templateUrl: 'app/telecom/pack/xdsl/access/deconsolidation/pack-xdsl-access-deconsolidation.html',
},
},
translations: ['common', 'telecom/pack/xdsl/access/deconsolidation', 'telecom/pack/xdsl/access/deconsolidation/contract'],
translations: ['.', './contract'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
templateUrl: 'app/telecom/pack/xdsl/access/diagnostic/pack-xdsl-access-diagnostic.html',
},
},
translations: ['common', 'telecom/pack/xdsl/access/diagnostic'],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
templateUrl: 'app/telecom/pack/xdsl/access/ip/pack-xdsl-access-ip.html',
},
},
translations: [
'common',
'telecom/pack/xdsl',
'telecom/pack/xdsl/access',
'telecom/pack/xdsl/access/ip',
'telecom/pack/xdsl/access/ip/order',
],
translations: ['.', './order'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackxdslaccesslinediagnosticCtrl',
},
},
translations: ['common'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ angular.module('managerApp')
templateUrl: 'app/telecom/pack/xdsl/access/notifications/pack-xdsl-access-notifications.html',
},
},
translations: ['common', 'telecom/pack/xdsl/access', 'telecom/pack/xdsl/access/notifications'],
translations: ['..', '.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'PackXdslMissingRio',
},
},
translations: [
'telecom/pack/xdsl/missingRio',
],
translations: ['.'],
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ angular.module('managerApp').config(($stateProvider) => {
controllerAs: 'DmzCtrl',
},
},
translations: ['common', 'telecom/pack/xdsl/modem/dmz'],
translations: ['.'],
});
});
Loading

0 comments on commit 8ff5f25

Please sign in to comment.