@eui/tools 6.9.6 → 6.9.7

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.
@@ -1 +1 @@
1
- 6.9.6
1
+ 6.9.7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 6.9.7 (2023-03-22)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * handle all translation languages for remote compiled translation pre-build step - MWP-9204 [MWP-9204](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-9204) ([b8e19ea5](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/b8e19ea54e7053113a0ad8e0f9c0938eab73bd3b))
7
+
8
+ * * *
9
+ * * *
1
10
  ## 6.9.6 (2023-03-21)
2
11
 
3
12
  ##### Chores
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.9.6",
3
+ "version": "6.9.7",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -27,12 +27,19 @@ module.exports.generate = (inputScopes = '', inputPkg) => {
27
27
  const destFolder = path.join(rootSrcFolder, 'assets/i18n-compiled');
28
28
  const globalTranslationsFolder = path.join(rootSrcFolder, 'assets/i18n-global');
29
29
 
30
- var nmPath = pkg.paths.repoNodeModules;
31
-
32
- var langs = ['en', 'fr'];
33
- var packages = [];
30
+ let nmPath = pkg.paths.repoNodeModules;
31
+
32
+ let langs = ['en', 'fr'];
33
+ if (pkg.build && pkg.build.translationLanguages) {
34
+ if (pkg.build.translationLanguages === 'ALL') {
35
+ langs = ['bg', 'es', 'cs', 'da', 'de', 'et', 'el', 'en', 'fr', 'ga', 'hr', 'it', 'lv', 'lt', 'hu', 'mt', 'nl', 'pl', 'pt', 'ro', 'sk', 'sl', 'fi', 'sv'];
36
+ } else {
37
+ langs = pkg.build.translationLanguages;
38
+ }
39
+ }
40
+ let packages = [];
34
41
 
35
- var genScopes;
42
+ let genScopes;
36
43
  if (scopes) {
37
44
  genScopes = scopes;
38
45
  } else {