@eui/tools 6.2.27 → 6.2.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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.2.
|
|
1
|
+
6.2.28
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.2.28 (2022-11-15)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **v15-remote:**
|
|
6
|
+
* adds locale registration for v15 remote skeleton - EUI-8998 [EUI-8998](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-8998) ([e63397f3](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/e63397f38416ec82b4d3673049ac3e2db5fab1ba))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.2.27 (2022-11-15)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* import and register locales (currently MWP uses only French and english)
|
|
5
|
+
*/
|
|
6
|
+
import { registerLocaleData } from '@angular/common';
|
|
7
|
+
import localeEn from '@angular/common/locales/en';
|
|
8
|
+
import localeEnExtra from '@angular/common/locales/extra/en';
|
|
9
|
+
import localeFr from '@angular/common/locales/fr';
|
|
10
|
+
import localeFrExtra from '@angular/common/locales/extra/fr';
|
|
11
|
+
registerLocaleData(localeEn, 'en', localeEnExtra);
|
|
12
|
+
registerLocaleData(localeFr, 'fr', localeFrExtra);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Internationalization Configuration
|
|
16
|
+
*/
|
|
17
|
+
const i18nConfig: I18nConfig = {
|
|
18
|
+
i18nLoader: {
|
|
19
|
+
i18nFolders: ['elements/@module.full.name@/bundles/assets/i18n-compiled'],
|
|
20
|
+
i18nResources: [{
|
|
21
|
+
prefix: 'assets/i18n-eui/',
|
|
22
|
+
suffix: '.json',
|
|
23
|
+
}],
|
|
24
|
+
},
|
|
25
|
+
i18nService: {
|
|
26
|
+
languages: ['en', 'fr'],
|
|
27
|
+
defaultLanguage: 'en',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Locale Configuration
|
|
33
|
+
*/
|
|
34
|
+
const localeConfig: LocaleServiceConfig = {
|
|
35
|
+
id: 'en',
|
|
36
|
+
available: ['en', 'fr'],
|
|
37
|
+
bindWithTranslate: true,
|
|
38
|
+
affectGlobalLocale: true,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Global Configuration
|
|
43
|
+
*/
|
|
44
|
+
export const GLOBAL: GlobalConfig = {
|
|
45
|
+
/* URL that needs to be used in the appRouting of the MWP */
|
|
46
|
+
baseUrl: '@module.name@',
|
|
47
|
+
/* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
|
|
48
|
+
elementName: '@module.scope-name@',
|
|
49
|
+
/* in case you are using NgRx give it a unique name (mostly for debugging) */
|
|
50
|
+
storeName: '@module.scope-name@',
|
|
51
|
+
i18n: i18nConfig,
|
|
52
|
+
locale: localeConfig,
|
|
53
|
+
};
|