@eui/tools 6.21.79 → 6.21.80
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.21.
|
|
1
|
+
6.21.80
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.80 (2025-05-22)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* debug translation generation for MWP host - EUI-101999 [EUI-101999](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-101999) ([ccbcd779](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/ccbcd779ff73ba6fa7f614d7a016d1d2df61ff61))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.79 (2025-05-22)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -121,15 +121,6 @@ module.exports.angular = (
|
|
|
121
121
|
return preBuildUtils.projects.preBuild(currentProject, envTarget, true, configEnvTarget);
|
|
122
122
|
})
|
|
123
123
|
|
|
124
|
-
.then(() => {
|
|
125
|
-
const desti18ncompiledPath = path.join(currentProject.paths.rootPath, 'src', 'assets', 'i18n-compiled');
|
|
126
|
-
if (tools.isDirExists(desti18ncompiledPath)) {
|
|
127
|
-
tools.logTitle('Pre-build assets i18n-compiled folder content:');
|
|
128
|
-
const i18nfiles = tools.getFiles(desti18ncompiledPath);
|
|
129
|
-
console.log(i18nfiles);
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
|
|
133
124
|
.then(() => {
|
|
134
125
|
if (!skipLint) {
|
|
135
126
|
tools.logInfo(`TS Linting application...`);
|
|
@@ -10,7 +10,7 @@ const tools = require('../../tools');
|
|
|
10
10
|
const configUtils = require('../../../csdr/config/config-utils');
|
|
11
11
|
|
|
12
12
|
// FETCH ARGS
|
|
13
|
-
const { dryRun, scopes } = tools.getArgs();
|
|
13
|
+
const { dryRun, scopes, ci } = tools.getArgs();
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
module.exports.generate = (inputScopes = 'opsys,cc,mywp,sygma,gem,cotg,eac', project) => {
|
|
@@ -58,16 +58,18 @@ module.exports.generate = (inputScopes = 'opsys,cc,mywp,sygma,gem,cotg,eac', pro
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
if (!ci) {
|
|
62
|
+
configUtils.packages.getPackages().forEach((pkg) => {
|
|
63
|
+
const localPath = configUtils.packages.getPackagePaths(pkg).root;
|
|
64
|
+
console.log(localPath);
|
|
65
|
+
packages.push(localPath);
|
|
66
|
+
})
|
|
67
|
+
}
|
|
66
68
|
|
|
67
69
|
tools.logInfo(`langs: ${langs}`);
|
|
68
70
|
tools.logInfo(`dest folder: ${destFolder}`);
|
|
69
71
|
tools.logInfo(`total packages: ${packages.length}`);
|
|
70
|
-
tools.logInfo(packages);
|
|
72
|
+
tools.logInfo(packages.join('\n'));
|
|
71
73
|
})
|
|
72
74
|
|
|
73
75
|
.then(() => {
|
|
@@ -99,6 +101,8 @@ module.exports.generate = (inputScopes = 'opsys,cc,mywp,sygma,gem,cotg,eac', pro
|
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
|
|
104
|
+
console.log(JSON.stringify(translations, null, 2));
|
|
105
|
+
|
|
102
106
|
tools.logSuccess('Translation for lang ' + lang + ' done.');
|
|
103
107
|
});
|
|
104
108
|
|
|
@@ -108,7 +112,7 @@ module.exports.generate = (inputScopes = 'opsys,cc,mywp,sygma,gem,cotg,eac', pro
|
|
|
108
112
|
const i18nfiles = tools.getFiles(destFolder);
|
|
109
113
|
console.log(i18nfiles);
|
|
110
114
|
|
|
111
|
-
|
|
115
|
+
|
|
112
116
|
function addTranslation(file, lang) {
|
|
113
117
|
if (fs.existsSync(file)) {
|
|
114
118
|
let data = fs.readFileSync(file, 'utf-8');
|