@eui/tools 6.12.27 → 6.12.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/scripts/csdr/init/remotes/10.x/full/options/all-locales/config/global.ts +119 -0
- package/scripts/csdr/init/remotes/15.x/full/options/all-locales/config/global.ts +122 -0
- package/scripts/csdr/init/remotes/16.x/full/options/all-locales/config/global.ts +122 -0
- package/scripts/csdr/init/remotes.js +6 -0
- package/scripts/utils/clean/clean-utils.js +4 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.12.
|
|
1
|
+
6.12.28
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.12.28 (2023-07-19)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* fix cleanup of test folder before pkg build - added allLocales options for virtual remotes injection - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([9ddec723](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/9ddec723c4232b831432b139929362eeb12b30cf))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.12.27 (2023-07-18)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { registerLocaleData } from '@angular/common';
|
|
2
|
+
import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
|
|
3
|
+
|
|
4
|
+
import localeBg from '@angular/common/locales/bg';
|
|
5
|
+
import localeBgExtra from '@angular/common/locales/extra/bg';
|
|
6
|
+
import localeEs from '@angular/common/locales/es';
|
|
7
|
+
import localeEsExtra from '@angular/common/locales/extra/es';
|
|
8
|
+
import localeCs from '@angular/common/locales/cs';
|
|
9
|
+
import localeCsExtra from '@angular/common/locales/extra/cs';
|
|
10
|
+
import localeDa from '@angular/common/locales/da';
|
|
11
|
+
import localeDaExtra from '@angular/common/locales/extra/da';
|
|
12
|
+
import localeDe from '@angular/common/locales/de';
|
|
13
|
+
import localeDeExtra from '@angular/common/locales/extra/de';
|
|
14
|
+
import localeEt from '@angular/common/locales/et';
|
|
15
|
+
import localeEtExtra from '@angular/common/locales/extra/et';
|
|
16
|
+
import localeEl from '@angular/common/locales/el';
|
|
17
|
+
import localeElExtra from '@angular/common/locales/extra/el';
|
|
18
|
+
import localeEn from '@angular/common/locales/en';
|
|
19
|
+
import localeEnExtra from '@angular/common/locales/extra/en';
|
|
20
|
+
import localeFr from '@angular/common/locales/fr';
|
|
21
|
+
import localeFrExtra from '@angular/common/locales/extra/fr';
|
|
22
|
+
import localeGa from '@angular/common/locales/ga';
|
|
23
|
+
import localeGaExtra from '@angular/common/locales/extra/ga';
|
|
24
|
+
import localeHr from '@angular/common/locales/hr';
|
|
25
|
+
import localeHrExtra from '@angular/common/locales/extra/hr';
|
|
26
|
+
import localeIt from '@angular/common/locales/it';
|
|
27
|
+
import localeItExtra from '@angular/common/locales/extra/it';
|
|
28
|
+
import localeLv from '@angular/common/locales/lv';
|
|
29
|
+
import localeLvExtra from '@angular/common/locales/extra/lv';
|
|
30
|
+
import localeLt from '@angular/common/locales/lt';
|
|
31
|
+
import localeLtExtra from '@angular/common/locales/extra/lt';
|
|
32
|
+
import localeHu from '@angular/common/locales/hu';
|
|
33
|
+
import localeHuExtra from '@angular/common/locales/extra/hu';
|
|
34
|
+
import localeMt from '@angular/common/locales/mt';
|
|
35
|
+
import localeMtExtra from '@angular/common/locales/extra/mt';
|
|
36
|
+
import localeNl from '@angular/common/locales/nl';
|
|
37
|
+
import localeNlExtra from '@angular/common/locales/extra/nl';
|
|
38
|
+
import localePl from '@angular/common/locales/pl';
|
|
39
|
+
import localePlExtra from '@angular/common/locales/extra/pl';
|
|
40
|
+
import localePt from '@angular/common/locales/pt';
|
|
41
|
+
import localePtExtra from '@angular/common/locales/extra/pt';
|
|
42
|
+
import localeRo from '@angular/common/locales/ro';
|
|
43
|
+
import localeRoExtra from '@angular/common/locales/extra/ro';
|
|
44
|
+
import localeSk from '@angular/common/locales/sk';
|
|
45
|
+
import localeSkExtra from '@angular/common/locales/extra/sk';
|
|
46
|
+
import localeSl from '@angular/common/locales/sl';
|
|
47
|
+
import localeSlExtra from '@angular/common/locales/extra/sl';
|
|
48
|
+
import localeFi from '@angular/common/locales/fi';
|
|
49
|
+
import localeFiExtra from '@angular/common/locales/extra/fi';
|
|
50
|
+
import localeSv from '@angular/common/locales/sv';
|
|
51
|
+
import localeSvExtra from '@angular/common/locales/extra/sv';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* import and register locales (currently MWP uses only French and English)
|
|
55
|
+
*/
|
|
56
|
+
registerLocaleData(localeBg, 'bg', localeBgExtra);
|
|
57
|
+
registerLocaleData(localeEs, 'es', localeEsExtra);
|
|
58
|
+
registerLocaleData(localeCs, 'cs', localeCsExtra);
|
|
59
|
+
registerLocaleData(localeDa, 'da', localeDaExtra);
|
|
60
|
+
registerLocaleData(localeDe, 'de', localeDeExtra);
|
|
61
|
+
registerLocaleData(localeEt, 'et', localeEtExtra);
|
|
62
|
+
registerLocaleData(localeEl, 'el', localeElExtra);
|
|
63
|
+
registerLocaleData(localeEn, 'en', localeEnExtra);
|
|
64
|
+
registerLocaleData(localeFr, 'fr', localeFrExtra);
|
|
65
|
+
registerLocaleData(localeGa, 'ga', localeGaExtra);
|
|
66
|
+
registerLocaleData(localeHr, 'hr', localeHrExtra);
|
|
67
|
+
registerLocaleData(localeIt, 'it', localeItExtra);
|
|
68
|
+
registerLocaleData(localeLv, 'lv', localeLvExtra);
|
|
69
|
+
registerLocaleData(localeLt, 'lt', localeLtExtra);
|
|
70
|
+
registerLocaleData(localeHu, 'hu', localeHuExtra);
|
|
71
|
+
registerLocaleData(localeMt, 'mt', localeMtExtra);
|
|
72
|
+
registerLocaleData(localeNl, 'nl', localeNlExtra);
|
|
73
|
+
registerLocaleData(localePl, 'pl', localePlExtra);
|
|
74
|
+
registerLocaleData(localePt, 'pt', localePtExtra);
|
|
75
|
+
registerLocaleData(localeRo, 'ro', localeRoExtra);
|
|
76
|
+
registerLocaleData(localeSk, 'sk', localeSkExtra);
|
|
77
|
+
registerLocaleData(localeSl, 'sl', localeSlExtra);
|
|
78
|
+
registerLocaleData(localeFi, 'fi', localeFiExtra);
|
|
79
|
+
registerLocaleData(localeSv, 'sv', localeSvExtra);
|
|
80
|
+
|
|
81
|
+
const languages = ['bg', 'es', 'cs', 'da', 'de', 'et', 'el', 'en', 'fr', 'ga', 'hr', 'it', 'lv', 'lt', 'hu', 'mt', 'nl', 'pl',
|
|
82
|
+
'pt', 'ro', 'sk', 'sl', 'fi', 'sv'];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Internationalization Configuration
|
|
86
|
+
*/
|
|
87
|
+
const i18nConfig: I18nConfig = {
|
|
88
|
+
i18nLoader: {
|
|
89
|
+
i18nFolders: ['elements/@remote.name@/bundles/assets/i18n-compiled'],
|
|
90
|
+
},
|
|
91
|
+
i18nService: {
|
|
92
|
+
languages: languages,
|
|
93
|
+
defaultLanguage: 'en',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Locale Configuration
|
|
99
|
+
*/
|
|
100
|
+
const localeConfig: LocaleServiceConfig = {
|
|
101
|
+
id: 'en',
|
|
102
|
+
available: languages,
|
|
103
|
+
bindWithTranslate: true,
|
|
104
|
+
affectGlobalLocale: true,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Global Configuration
|
|
109
|
+
*/
|
|
110
|
+
export const GLOBAL: GlobalConfig = {
|
|
111
|
+
/* URL that needs to be used in the appRouting of the MWP */
|
|
112
|
+
baseUrl: '@base.url@',
|
|
113
|
+
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
114
|
+
elementName: '@element.name@',
|
|
115
|
+
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
116
|
+
storeName: '@store.name@',
|
|
117
|
+
i18n: i18nConfig,
|
|
118
|
+
locale: localeConfig,
|
|
119
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { registerLocaleData } from '@angular/common';
|
|
2
|
+
import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
|
|
3
|
+
|
|
4
|
+
import localeBg from '@angular/common/locales/bg';
|
|
5
|
+
import localeBgExtra from '@angular/common/locales/extra/bg';
|
|
6
|
+
import localeEs from '@angular/common/locales/es';
|
|
7
|
+
import localeEsExtra from '@angular/common/locales/extra/es';
|
|
8
|
+
import localeCs from '@angular/common/locales/cs';
|
|
9
|
+
import localeCsExtra from '@angular/common/locales/extra/cs';
|
|
10
|
+
import localeDa from '@angular/common/locales/da';
|
|
11
|
+
import localeDaExtra from '@angular/common/locales/extra/da';
|
|
12
|
+
import localeDe from '@angular/common/locales/de';
|
|
13
|
+
import localeDeExtra from '@angular/common/locales/extra/de';
|
|
14
|
+
import localeEt from '@angular/common/locales/et';
|
|
15
|
+
import localeEtExtra from '@angular/common/locales/extra/et';
|
|
16
|
+
import localeEl from '@angular/common/locales/el';
|
|
17
|
+
import localeElExtra from '@angular/common/locales/extra/el';
|
|
18
|
+
import localeEn from '@angular/common/locales/en';
|
|
19
|
+
import localeEnExtra from '@angular/common/locales/extra/en';
|
|
20
|
+
import localeFr from '@angular/common/locales/fr';
|
|
21
|
+
import localeFrExtra from '@angular/common/locales/extra/fr';
|
|
22
|
+
import localeGa from '@angular/common/locales/ga';
|
|
23
|
+
import localeGaExtra from '@angular/common/locales/extra/ga';
|
|
24
|
+
import localeHr from '@angular/common/locales/hr';
|
|
25
|
+
import localeHrExtra from '@angular/common/locales/extra/hr';
|
|
26
|
+
import localeIt from '@angular/common/locales/it';
|
|
27
|
+
import localeItExtra from '@angular/common/locales/extra/it';
|
|
28
|
+
import localeLv from '@angular/common/locales/lv';
|
|
29
|
+
import localeLvExtra from '@angular/common/locales/extra/lv';
|
|
30
|
+
import localeLt from '@angular/common/locales/lt';
|
|
31
|
+
import localeLtExtra from '@angular/common/locales/extra/lt';
|
|
32
|
+
import localeHu from '@angular/common/locales/hu';
|
|
33
|
+
import localeHuExtra from '@angular/common/locales/extra/hu';
|
|
34
|
+
import localeMt from '@angular/common/locales/mt';
|
|
35
|
+
import localeMtExtra from '@angular/common/locales/extra/mt';
|
|
36
|
+
import localeNl from '@angular/common/locales/nl';
|
|
37
|
+
import localeNlExtra from '@angular/common/locales/extra/nl';
|
|
38
|
+
import localePl from '@angular/common/locales/pl';
|
|
39
|
+
import localePlExtra from '@angular/common/locales/extra/pl';
|
|
40
|
+
import localePt from '@angular/common/locales/pt';
|
|
41
|
+
import localePtExtra from '@angular/common/locales/extra/pt';
|
|
42
|
+
import localeRo from '@angular/common/locales/ro';
|
|
43
|
+
import localeRoExtra from '@angular/common/locales/extra/ro';
|
|
44
|
+
import localeSk from '@angular/common/locales/sk';
|
|
45
|
+
import localeSkExtra from '@angular/common/locales/extra/sk';
|
|
46
|
+
import localeSl from '@angular/common/locales/sl';
|
|
47
|
+
import localeSlExtra from '@angular/common/locales/extra/sl';
|
|
48
|
+
import localeFi from '@angular/common/locales/fi';
|
|
49
|
+
import localeFiExtra from '@angular/common/locales/extra/fi';
|
|
50
|
+
import localeSv from '@angular/common/locales/sv';
|
|
51
|
+
import localeSvExtra from '@angular/common/locales/extra/sv';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* import and register locales (currently MWP uses only French and English)
|
|
55
|
+
*/
|
|
56
|
+
registerLocaleData(localeBg, 'bg', localeBgExtra);
|
|
57
|
+
registerLocaleData(localeEs, 'es', localeEsExtra);
|
|
58
|
+
registerLocaleData(localeCs, 'cs', localeCsExtra);
|
|
59
|
+
registerLocaleData(localeDa, 'da', localeDaExtra);
|
|
60
|
+
registerLocaleData(localeDe, 'de', localeDeExtra);
|
|
61
|
+
registerLocaleData(localeEt, 'et', localeEtExtra);
|
|
62
|
+
registerLocaleData(localeEl, 'el', localeElExtra);
|
|
63
|
+
registerLocaleData(localeEn, 'en', localeEnExtra);
|
|
64
|
+
registerLocaleData(localeFr, 'fr', localeFrExtra);
|
|
65
|
+
registerLocaleData(localeGa, 'ga', localeGaExtra);
|
|
66
|
+
registerLocaleData(localeHr, 'hr', localeHrExtra);
|
|
67
|
+
registerLocaleData(localeIt, 'it', localeItExtra);
|
|
68
|
+
registerLocaleData(localeLv, 'lv', localeLvExtra);
|
|
69
|
+
registerLocaleData(localeLt, 'lt', localeLtExtra);
|
|
70
|
+
registerLocaleData(localeHu, 'hu', localeHuExtra);
|
|
71
|
+
registerLocaleData(localeMt, 'mt', localeMtExtra);
|
|
72
|
+
registerLocaleData(localeNl, 'nl', localeNlExtra);
|
|
73
|
+
registerLocaleData(localePl, 'pl', localePlExtra);
|
|
74
|
+
registerLocaleData(localePt, 'pt', localePtExtra);
|
|
75
|
+
registerLocaleData(localeRo, 'ro', localeRoExtra);
|
|
76
|
+
registerLocaleData(localeSk, 'sk', localeSkExtra);
|
|
77
|
+
registerLocaleData(localeSl, 'sl', localeSlExtra);
|
|
78
|
+
registerLocaleData(localeFi, 'fi', localeFiExtra);
|
|
79
|
+
registerLocaleData(localeSv, 'sv', localeSvExtra);
|
|
80
|
+
|
|
81
|
+
const languages = ['bg', 'es', 'cs', 'da', 'de', 'et', 'el', 'en', 'fr', 'ga', 'hr', 'it', 'lv', 'lt', 'hu', 'mt', 'nl', 'pl',
|
|
82
|
+
'pt', 'ro', 'sk', 'sl', 'fi', 'sv'];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Internationalization Configuration
|
|
86
|
+
*/
|
|
87
|
+
const i18nConfig: I18nConfig = {
|
|
88
|
+
i18nLoader: {
|
|
89
|
+
i18nFolders: ['elements/@remote.name@/bundles/assets/i18n-compiled'],
|
|
90
|
+
},
|
|
91
|
+
i18nService: {
|
|
92
|
+
languages: languages,
|
|
93
|
+
defaultLanguage: 'en',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Locale Configuration
|
|
99
|
+
*/
|
|
100
|
+
const localeConfig: LocaleServiceConfig = {
|
|
101
|
+
id: 'en',
|
|
102
|
+
available: languages,
|
|
103
|
+
bindWithTranslate: true,
|
|
104
|
+
affectGlobalLocale: true,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Global Configuration
|
|
109
|
+
*/
|
|
110
|
+
export const GLOBAL: GlobalConfig = {
|
|
111
|
+
/* URL that needs to be used in the appRouting of the MWP */
|
|
112
|
+
baseUrl: '@base.url@',
|
|
113
|
+
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
114
|
+
elementName: '@element.name@',
|
|
115
|
+
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
116
|
+
storeName: '@store.name@',
|
|
117
|
+
i18n: i18nConfig,
|
|
118
|
+
locale: localeConfig,
|
|
119
|
+
eui: {
|
|
120
|
+
assetsBaseUrl: 'assets/elements/@remote.name@/bundles/assets',
|
|
121
|
+
},
|
|
122
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { registerLocaleData } from '@angular/common';
|
|
2
|
+
import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
|
|
3
|
+
|
|
4
|
+
import localeBg from '@angular/common/locales/bg';
|
|
5
|
+
import localeBgExtra from '@angular/common/locales/extra/bg';
|
|
6
|
+
import localeEs from '@angular/common/locales/es';
|
|
7
|
+
import localeEsExtra from '@angular/common/locales/extra/es';
|
|
8
|
+
import localeCs from '@angular/common/locales/cs';
|
|
9
|
+
import localeCsExtra from '@angular/common/locales/extra/cs';
|
|
10
|
+
import localeDa from '@angular/common/locales/da';
|
|
11
|
+
import localeDaExtra from '@angular/common/locales/extra/da';
|
|
12
|
+
import localeDe from '@angular/common/locales/de';
|
|
13
|
+
import localeDeExtra from '@angular/common/locales/extra/de';
|
|
14
|
+
import localeEt from '@angular/common/locales/et';
|
|
15
|
+
import localeEtExtra from '@angular/common/locales/extra/et';
|
|
16
|
+
import localeEl from '@angular/common/locales/el';
|
|
17
|
+
import localeElExtra from '@angular/common/locales/extra/el';
|
|
18
|
+
import localeEn from '@angular/common/locales/en';
|
|
19
|
+
import localeEnExtra from '@angular/common/locales/extra/en';
|
|
20
|
+
import localeFr from '@angular/common/locales/fr';
|
|
21
|
+
import localeFrExtra from '@angular/common/locales/extra/fr';
|
|
22
|
+
import localeGa from '@angular/common/locales/ga';
|
|
23
|
+
import localeGaExtra from '@angular/common/locales/extra/ga';
|
|
24
|
+
import localeHr from '@angular/common/locales/hr';
|
|
25
|
+
import localeHrExtra from '@angular/common/locales/extra/hr';
|
|
26
|
+
import localeIt from '@angular/common/locales/it';
|
|
27
|
+
import localeItExtra from '@angular/common/locales/extra/it';
|
|
28
|
+
import localeLv from '@angular/common/locales/lv';
|
|
29
|
+
import localeLvExtra from '@angular/common/locales/extra/lv';
|
|
30
|
+
import localeLt from '@angular/common/locales/lt';
|
|
31
|
+
import localeLtExtra from '@angular/common/locales/extra/lt';
|
|
32
|
+
import localeHu from '@angular/common/locales/hu';
|
|
33
|
+
import localeHuExtra from '@angular/common/locales/extra/hu';
|
|
34
|
+
import localeMt from '@angular/common/locales/mt';
|
|
35
|
+
import localeMtExtra from '@angular/common/locales/extra/mt';
|
|
36
|
+
import localeNl from '@angular/common/locales/nl';
|
|
37
|
+
import localeNlExtra from '@angular/common/locales/extra/nl';
|
|
38
|
+
import localePl from '@angular/common/locales/pl';
|
|
39
|
+
import localePlExtra from '@angular/common/locales/extra/pl';
|
|
40
|
+
import localePt from '@angular/common/locales/pt';
|
|
41
|
+
import localePtExtra from '@angular/common/locales/extra/pt';
|
|
42
|
+
import localeRo from '@angular/common/locales/ro';
|
|
43
|
+
import localeRoExtra from '@angular/common/locales/extra/ro';
|
|
44
|
+
import localeSk from '@angular/common/locales/sk';
|
|
45
|
+
import localeSkExtra from '@angular/common/locales/extra/sk';
|
|
46
|
+
import localeSl from '@angular/common/locales/sl';
|
|
47
|
+
import localeSlExtra from '@angular/common/locales/extra/sl';
|
|
48
|
+
import localeFi from '@angular/common/locales/fi';
|
|
49
|
+
import localeFiExtra from '@angular/common/locales/extra/fi';
|
|
50
|
+
import localeSv from '@angular/common/locales/sv';
|
|
51
|
+
import localeSvExtra from '@angular/common/locales/extra/sv';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* import and register locales (currently MWP uses only French and English)
|
|
55
|
+
*/
|
|
56
|
+
registerLocaleData(localeBg, 'bg', localeBgExtra);
|
|
57
|
+
registerLocaleData(localeEs, 'es', localeEsExtra);
|
|
58
|
+
registerLocaleData(localeCs, 'cs', localeCsExtra);
|
|
59
|
+
registerLocaleData(localeDa, 'da', localeDaExtra);
|
|
60
|
+
registerLocaleData(localeDe, 'de', localeDeExtra);
|
|
61
|
+
registerLocaleData(localeEt, 'et', localeEtExtra);
|
|
62
|
+
registerLocaleData(localeEl, 'el', localeElExtra);
|
|
63
|
+
registerLocaleData(localeEn, 'en', localeEnExtra);
|
|
64
|
+
registerLocaleData(localeFr, 'fr', localeFrExtra);
|
|
65
|
+
registerLocaleData(localeGa, 'ga', localeGaExtra);
|
|
66
|
+
registerLocaleData(localeHr, 'hr', localeHrExtra);
|
|
67
|
+
registerLocaleData(localeIt, 'it', localeItExtra);
|
|
68
|
+
registerLocaleData(localeLv, 'lv', localeLvExtra);
|
|
69
|
+
registerLocaleData(localeLt, 'lt', localeLtExtra);
|
|
70
|
+
registerLocaleData(localeHu, 'hu', localeHuExtra);
|
|
71
|
+
registerLocaleData(localeMt, 'mt', localeMtExtra);
|
|
72
|
+
registerLocaleData(localeNl, 'nl', localeNlExtra);
|
|
73
|
+
registerLocaleData(localePl, 'pl', localePlExtra);
|
|
74
|
+
registerLocaleData(localePt, 'pt', localePtExtra);
|
|
75
|
+
registerLocaleData(localeRo, 'ro', localeRoExtra);
|
|
76
|
+
registerLocaleData(localeSk, 'sk', localeSkExtra);
|
|
77
|
+
registerLocaleData(localeSl, 'sl', localeSlExtra);
|
|
78
|
+
registerLocaleData(localeFi, 'fi', localeFiExtra);
|
|
79
|
+
registerLocaleData(localeSv, 'sv', localeSvExtra);
|
|
80
|
+
|
|
81
|
+
const languages = ['bg', 'es', 'cs', 'da', 'de', 'et', 'el', 'en', 'fr', 'ga', 'hr', 'it', 'lv', 'lt', 'hu', 'mt', 'nl', 'pl',
|
|
82
|
+
'pt', 'ro', 'sk', 'sl', 'fi', 'sv'];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Internationalization Configuration
|
|
86
|
+
*/
|
|
87
|
+
const i18nConfig: I18nConfig = {
|
|
88
|
+
i18nLoader: {
|
|
89
|
+
i18nFolders: ['elements/@remote.name@/bundles/assets/i18n-compiled'],
|
|
90
|
+
},
|
|
91
|
+
i18nService: {
|
|
92
|
+
languages: languages,
|
|
93
|
+
defaultLanguage: 'en',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Locale Configuration
|
|
99
|
+
*/
|
|
100
|
+
const localeConfig: LocaleServiceConfig = {
|
|
101
|
+
id: 'en',
|
|
102
|
+
available: languages,
|
|
103
|
+
bindWithTranslate: true,
|
|
104
|
+
affectGlobalLocale: true,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Global Configuration
|
|
109
|
+
*/
|
|
110
|
+
export const GLOBAL: GlobalConfig = {
|
|
111
|
+
/* URL that needs to be used in the appRouting of the MWP */
|
|
112
|
+
baseUrl: '@base.url@',
|
|
113
|
+
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
114
|
+
elementName: '@element.name@',
|
|
115
|
+
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
116
|
+
storeName: '@store.name@',
|
|
117
|
+
i18n: i18nConfig,
|
|
118
|
+
locale: localeConfig,
|
|
119
|
+
eui: {
|
|
120
|
+
assetsBaseUrl: 'assets/elements/@remote.name@/bundles/assets',
|
|
121
|
+
},
|
|
122
|
+
};
|
|
@@ -168,6 +168,7 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
|
168
168
|
const fullOptionsPath = path.join(remoteSkeletonRootPath, 'full', 'options');
|
|
169
169
|
|
|
170
170
|
const optionUserReducersPath = path.join(fullOptionsPath, 'user-reducers');
|
|
171
|
+
const optionAllLocalesPath = path.join(fullOptionsPath, 'all-locales');
|
|
171
172
|
const optionParticipantPath = path.join(fullOptionsPath, 'participant');
|
|
172
173
|
const optionAgGridPath = path.join(fullOptionsPath, 'ag-grid');
|
|
173
174
|
const optionUserReducersDef = tools.getJsonFileContent(path.join(fullOptionsPath, 'definitions', 'user-reducers.json'));
|
|
@@ -239,6 +240,11 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
|
|
|
239
240
|
definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers })');
|
|
240
241
|
}
|
|
241
242
|
|
|
243
|
+
// all-locales specific sources
|
|
244
|
+
if (remote.skeletonConfig.options.allLocales) {
|
|
245
|
+
tools.copy(optionAllLocalesPath, remoteSrcPath);
|
|
246
|
+
}
|
|
247
|
+
|
|
242
248
|
// zipkin
|
|
243
249
|
if (remote.skeletonConfig.options.zipkin) {
|
|
244
250
|
pushContent(optionZipkinDef);
|
|
@@ -21,6 +21,10 @@ module.exports.cleanPackage = (pkg) => {
|
|
|
21
21
|
tools.logInfo('Cleaning temp js map files')
|
|
22
22
|
return tools.rimraf(pkg.paths.root + '**/src/lib/**/*.js.map');
|
|
23
23
|
})
|
|
24
|
+
.then(() => {
|
|
25
|
+
tools.logInfo('Cleaning test files')
|
|
26
|
+
return tools.rimraf(pkg.paths.root + '/**/test');
|
|
27
|
+
})
|
|
24
28
|
.then(() => {
|
|
25
29
|
tools.logSuccess();
|
|
26
30
|
})
|