@ihk-gfi/lux-components-update 18.5.2 → 19.0.0
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/README.md +3 -3
- package/collection.json +22 -57
- package/package.json +15 -34
- package/src/update-dependencies/index.js +89 -0
- package/{update-en-messages → src/update-en-messages}/index.js +4 -4
- package/src/update-standalone-imports/index.js +677 -0
- package/src/update-standalone-imports/schema.json +20 -0
- package/src/updates/19.0.0/index.js +345 -0
- package/{utility → src/utility}/dependencies.js +5 -7
- package/{utility → src/utility}/files.js +9 -1
- package/{utility → src/utility}/html/hit.js +5 -0
- package/{utility → src/utility}/html/html-manipulator.js +6 -4
- package/{utility → src/utility}/json.js +21 -4
- package/{utility → src/utility}/replace-item.js +17 -2
- package/{utility → src/utility}/typescript.js +125 -46
- package/{utility → src/utility}/util.js +0 -22
- package/{utility → src/utility}/validation.js +1 -2
- package/add-lux-components/files/app/app-routing.module.ts +0 -21
- package/add-lux-components/files/app/app.component.html +0 -34
- package/add-lux-components/files/app/app.component.scss +0 -4
- package/add-lux-components/files/app/app.component.spec.ts +0 -21
- package/add-lux-components/files/app/app.component.ts +0 -24
- package/add-lux-components/files/app/app.module.ts +0 -63
- package/add-lux-components/files/app/base/license-hint/license-hint.component.html +0 -11
- package/add-lux-components/files/app/base/license-hint/license-hint.component.ts +0 -24
- package/add-lux-components/files/app/error/error.component.html +0 -10
- package/add-lux-components/files/app/error/error.component.scss +0 -3
- package/add-lux-components/files/app/error/error.component.spec.ts +0 -51
- package/add-lux-components/files/app/error/error.component.ts +0 -17
- package/add-lux-components/files/app/home/home.component.html +0 -10
- package/add-lux-components/files/app/home/home.component.scss +0 -3
- package/add-lux-components/files/app/home/home.component.ts +0 -13
- package/add-lux-components/files/app/profil/profil.component.html +0 -1
- package/add-lux-components/files/app/profil/profil.component.scss +0 -0
- package/add-lux-components/files/app/profil/profil.component.spec.ts +0 -24
- package/add-lux-components/files/app/profil/profil.component.ts +0 -11
- package/add-lux-components/files/assets/svg/Example.svg +0 -6
- package/add-lux-components/files/assets/svg/android.svg +0 -2
- package/add-lux-components/files/assets/svg/box.svg +0 -690
- package/add-lux-components/files/assets/svg/demoAppLogo.svg +0 -1
- package/add-lux-components/files/assets/svg/red_power_button.svg +0 -67
- package/add-lux-components/files/assets/svg/svg2009.svg +0 -57457
- package/add-lux-components/files/environments/environment.prod.ts +0 -4
- package/add-lux-components/files/environments/environment.ts +0 -17
- package/add-lux-components/files/locale/messages.en.xlf +0 -1373
- package/add-lux-components/files/locale/messages.xlf +0 -1220
- package/add-lux-components/files/root/move-de-files.js +0 -15
- package/add-lux-components/files/src/index.html +0 -29
- package/add-lux-components/files/src/main.ts +0 -12
- package/add-lux-components/index.d.ts +0 -10
- package/add-lux-components/index.js +0 -232
- package/add-lux-components/schema.json +0 -23
- package/update-dependencies/index.d.ts +0 -6
- package/update-dependencies/index.js +0 -89
- package/update-en-messages/index.d.ts +0 -2
- package/updates/18.0.0/index.d.ts +0 -13
- package/updates/18.0.0/index.js +0 -125
- package/updates/18.1.0/index.d.ts +0 -2
- package/updates/18.1.0/index.js +0 -19
- package/updates/18.1.0/schema.json +0 -23
- package/updates/18.2.0/index.d.ts +0 -5
- package/updates/18.2.0/index.js +0 -44
- package/updates/18.2.0/schema.json +0 -23
- package/updates/18.3.0/index.d.ts +0 -5
- package/updates/18.3.0/index.js +0 -59
- package/updates/18.3.0/schema.json +0 -23
- package/updates/18.4.0/index.d.ts +0 -7
- package/updates/18.4.0/index.js +0 -76
- package/updates/18.4.0/schema.json +0 -23
- package/updates/18.5.0/index.d.ts +0 -5
- package/updates/18.5.0/index.js +0 -53
- package/updates/18.5.0/schema.json +0 -23
- package/utility/dependencies.d.ts +0 -45
- package/utility/files.d.ts +0 -66
- package/utility/html/hit.d.ts +0 -21
- package/utility/html/html-manipulator.d.ts +0 -71
- package/utility/html/manipulator-functions.d.ts +0 -99
- package/utility/json.d.ts +0 -82
- package/utility/logging.d.ts +0 -32
- package/utility/replace-item.d.ts +0 -18
- package/utility/test.d.ts +0 -10
- package/utility/typescript.d.ts +0 -22
- package/utility/util.d.ts +0 -37
- package/utility/validation.d.ts +0 -10
- /package/{update-dependencies → src/update-dependencies}/schema.json +0 -0
- /package/{update-en-messages → src/update-en-messages}/schema.json +0 -0
- /package/{updates/18.0.0 → src/updates/19.0.0}/schema.json +0 -0
- /package/{utility → src/utility}/html/manipulator-functions.js +0 -0
- /package/{utility → src/utility}/logging.js +0 -0
- /package/{utility → src/utility}/test.js +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Dieses Projekt enthält alle Updateskripte (umgesetzt mit Angular Schematics) f
|
|
|
4
4
|
|
|
5
5
|
Updateskripte:
|
|
6
6
|
|
|
7
|
-
- `update-
|
|
7
|
+
- `update-19.x.x` (aktualisiert das Projekt auf die Version 19.x.x)
|
|
8
8
|
- `add-lux-components` (fügt die LUX-Components zu einem Angular-Projekt hinzu)
|
|
9
9
|
|
|
10
10
|
## Voraussetzungen
|
|
@@ -20,14 +20,14 @@ npm install -g @angular-devkit/schematics-cli
|
|
|
20
20
|
Um ein Updateskript zu starten, kann der folgende Befehl verwendet werden:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
ng generate @ihk-gfi/lux-components-update:update-
|
|
23
|
+
ng generate @ihk-gfi/lux-components-update:update-19.x.x
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Falls erst einmal ein Testdurchlauf ohne persistente Änderungen gewünscht ist,
|
|
27
27
|
ist es möglich den Aufruf mit dem Flag "--dry-run" zu versehen:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
ng generate @ihk-gfi/lux-components-update:update-
|
|
30
|
+
ng generate @ihk-gfi/lux-components-update:update-19.x.x --dry-run
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## LUX-Components im Projekt einrichten
|
package/collection.json
CHANGED
|
@@ -1,60 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
"update-18.1.0": {
|
|
25
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 18.1.0",
|
|
26
|
-
"factory": "./updates/18.1.0/index#update180100",
|
|
27
|
-
"schema": "./updates/18.1.0/schema.json"
|
|
28
|
-
},
|
|
29
|
-
"update-18.0.0": {
|
|
30
|
-
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 18.0.0",
|
|
31
|
-
"factory": "./updates/18.0.0/index#update180000",
|
|
32
|
-
"schema": "./updates/18.0.0/schema.json"
|
|
33
|
-
},
|
|
34
|
-
"update-dependencies": {
|
|
35
|
-
"description": "Aktualisiert die Abhängigkeiten im LUX-Componentsprojekt",
|
|
36
|
-
"factory": "./update-dependencies/index#updateDependencies",
|
|
37
|
-
"schema": "./update-dependencies/schema.json"
|
|
38
|
-
},
|
|
39
|
-
"update-en-messages": {
|
|
40
|
-
"description": "Aktualisiert die englischen Übersetzungen im Projekt",
|
|
41
|
-
"factory": "./update-en-messages/index#updateEnMessages",
|
|
42
|
-
"schema": "./update-en-messages/schema.json"
|
|
43
|
-
},
|
|
44
|
-
"add-lux-components": {
|
|
45
|
-
"description": "Fügt die LUX-Components zum Projekt hinzu",
|
|
46
|
-
"factory": "./add-lux-components/index#addLuxComponents",
|
|
47
|
-
"schema": "./add-lux-components/schema.json"
|
|
48
|
-
},
|
|
49
|
-
"change-theme-to-authentic": {
|
|
50
|
-
"description": "Wechselt zum Authentic-Theme",
|
|
51
|
-
"factory": "./theme/change-theme-to-authentic/index#changeToThemeAuthentic",
|
|
52
|
-
"schema": "./theme/change-theme-to-authentic/schema.json"
|
|
53
|
-
},
|
|
54
|
-
"change-to-lux-icons": {
|
|
55
|
-
"description": "Die neuen LUX-Icons werden im Projekt eingerichtet",
|
|
56
|
-
"factory": "./theme/change-to-lux-icons/index#changeToLuxIcons",
|
|
57
|
-
"schema": "./theme/change-to-lux-icons/schema.json"
|
|
58
|
-
}
|
|
2
|
+
"$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"update-standalone-imports": {
|
|
5
|
+
"description": "Entfernt die Modul-Importe und fügt die Standalone-Importe hinzu",
|
|
6
|
+
"factory": "./src/update-standalone-imports/index#updateStandAloneImports",
|
|
7
|
+
"schema": "./src/update-standalone-imports/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"update-19.0.0": {
|
|
10
|
+
"description": "Aktualisiert das LUX-Componentsprojekt auf die Version 19.0.0",
|
|
11
|
+
"factory": "./src/updates/19.0.0/index#update190000",
|
|
12
|
+
"schema": "./src/updates/19.0.0/schema.json"
|
|
13
|
+
},
|
|
14
|
+
"update-dependencies": {
|
|
15
|
+
"description": "Aktualisiert die Abhängigkeiten im LUX-Componentsprojekt",
|
|
16
|
+
"factory": "./src/update-dependencies/index#updateDependencies",
|
|
17
|
+
"schema": "./src/update-dependencies/schema.json"
|
|
18
|
+
},
|
|
19
|
+
"update-en-messages": {
|
|
20
|
+
"description": "Aktualisiert die englischen Übersetzungen im Projekt",
|
|
21
|
+
"factory": "./src/update-en-messages/index#updateEnMessages",
|
|
22
|
+
"schema": "./src/update-en-messages/schema.json"
|
|
59
23
|
}
|
|
24
|
+
}
|
|
60
25
|
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
{
|
|
2
2
|
"name": "@ihk-gfi/lux-components-update",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"description": "Schematics für die Aktualisierung von LUX-Applikationen",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run clean && tsc -p tsconfig.json",
|
|
7
|
-
"clean": "del-cli --force dist/",
|
|
8
|
-
"
|
|
9
|
-
"pack-copy-
|
|
10
|
-
"pack
|
|
11
|
-
"pack-update-colletion-path": "replace --silent './collection.json' './collection.json' dist/package.json",
|
|
12
|
-
"pack": "npm run build && npm run pack-copy-base-files && npm run pack-copy-template-dirs && npm run pack-update-colletion-path",
|
|
7
|
+
"clean": "del-cli --force ../../dist/updater/",
|
|
8
|
+
"pack-copy-base-files": "copyfiles -f collection.json package.json README.md ../../LICENSE ./../../dist/updater",
|
|
9
|
+
"pack-copy-template-dirs": "copyfiles \"./src/**/files/**\" ./../../dist/updater",
|
|
10
|
+
"pack": "npm run build && npm run pack-copy-base-files && npm run pack-copy-template-dirs",
|
|
13
11
|
"security": "npm audit --registry=https://registry.npmjs.org --audit-level high",
|
|
14
12
|
"smoketest": "npm run test && npm run pack",
|
|
15
|
-
"test": "npm run
|
|
13
|
+
"test": "npm run pack && tsc -p tsconfig.spec.json && jasmine ../../dist/updater/**/*.spec.js"
|
|
16
14
|
},
|
|
17
15
|
"keywords": [
|
|
18
16
|
"schematics",
|
|
19
17
|
"lux-components",
|
|
20
18
|
"jast"
|
|
21
19
|
],
|
|
20
|
+
"workspaces": [
|
|
21
|
+
"./projects/*",
|
|
22
|
+
"./dist/*"
|
|
23
|
+
],
|
|
22
24
|
"license": "IHK-GfI Open-Source-Lizenz",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "https://github.com/IHK-GfI/lux-components-update.git"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/IHK-GfI/lux-components-update",
|
|
28
|
-
"bugs": {
|
|
29
|
-
"url": "https://github.com/IHK-GfI/lux-components-update/issues"
|
|
30
|
-
},
|
|
31
25
|
"schematics": "./collection.json",
|
|
32
26
|
"dependencies": {
|
|
33
|
-
"@angular-devkit/core": "^18.2.4",
|
|
34
|
-
"@angular-devkit/schematics": "^18.2.4",
|
|
35
|
-
"@angular-devkit/schematics-cli": "^18.2.4",
|
|
36
|
-
"@angular/cli": "^18.2.4",
|
|
37
|
-
"@types/node": "^18.11.9",
|
|
38
|
-
"@types/semver": "^7.5.8",
|
|
39
|
-
"@types/jsdom": "^21.1.7",
|
|
40
27
|
"chalk": "^4.1.2",
|
|
41
28
|
"cheerio": "1.0.0-rc.12",
|
|
42
29
|
"htmlparser2": "^9.1.0",
|
|
43
30
|
"jsdom": "^25.0.0",
|
|
44
31
|
"jsonc-parser": "^3.2.1",
|
|
45
|
-
"semver": "^7.6.0"
|
|
46
|
-
"typescript": "^5.6.2"
|
|
32
|
+
"semver": "^7.6.0"
|
|
47
33
|
},
|
|
48
34
|
"devDependencies": {
|
|
49
|
-
"@types/
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"del-cli": "^5.1.0",
|
|
53
|
-
"prettier": "^3.3.3",
|
|
54
|
-
"husky": "^9.1.6",
|
|
55
|
-
"pretty-quick": "^4.0.0",
|
|
56
|
-
"replace": "^1.2.2"
|
|
35
|
+
"@types/jsdom": "^21.1.7",
|
|
36
|
+
"@types/node": "^18.11.9",
|
|
37
|
+
"@types/semver": "^7.5.8"
|
|
57
38
|
}
|
|
58
39
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateDependencies = updateDependencies;
|
|
4
|
+
exports.updateDep = updateDep;
|
|
5
|
+
exports.deleteDep = deleteDep;
|
|
6
|
+
exports.updateDevDep = updateDevDep;
|
|
7
|
+
exports.deleteDevDep = deleteDevDep;
|
|
8
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
9
|
+
const dependencies_1 = require("../utility/dependencies");
|
|
10
|
+
const json_1 = require("../utility/json");
|
|
11
|
+
const util_1 = require("../utility/util");
|
|
12
|
+
const addOrUpdate = false;
|
|
13
|
+
const updateIfExists = true;
|
|
14
|
+
function updateDependencies() {
|
|
15
|
+
return (0, schematics_1.chain)([
|
|
16
|
+
(0, util_1.messageInfoRule)(`Abhängigkeiten in der Datei "package.json" werden aktualisiert...`),
|
|
17
|
+
updateDep('@ihk-gfi/lux-components', '19.0.0', addOrUpdate),
|
|
18
|
+
updateDep('@ihk-gfi/lux-components-theme', '19.0.0', addOrUpdate),
|
|
19
|
+
updateDep('@ihk-gfi/lux-components-icons-and-fonts', '1.10.0', addOrUpdate),
|
|
20
|
+
deleteDep('ng2-pdf-viewer'),
|
|
21
|
+
deleteDep('pdfjs-dist'),
|
|
22
|
+
deleteDevDep('@types/marked'),
|
|
23
|
+
deleteDevDep('@angular-eslint/builder'),
|
|
24
|
+
deleteDevDep('@angular-eslint/eslint-plugin'),
|
|
25
|
+
deleteDevDep('@angular-eslint/eslint-plugin-template'),
|
|
26
|
+
deleteDevDep('@angular-eslint/schematics'),
|
|
27
|
+
deleteDevDep('@angular-eslint/template-parser'),
|
|
28
|
+
deleteDevDep('@types/marked'),
|
|
29
|
+
deleteDevDep('@typescript-eslint/eslint-plugin'),
|
|
30
|
+
deleteDevDep('@typescript-eslint/parser'),
|
|
31
|
+
deleteDevDep('del'),
|
|
32
|
+
deleteDevDep('eslint-plugin-import'),
|
|
33
|
+
deleteDevDep('eslint-plugin-jsdoc'),
|
|
34
|
+
deleteDevDep('eslint-plugin-prefer-arrow'),
|
|
35
|
+
updateDep('@angular/animations', '^19.2.4', addOrUpdate),
|
|
36
|
+
updateDep('@angular/cdk', '^19.2.7', addOrUpdate),
|
|
37
|
+
updateDep('@angular/common', '^19.2.4', addOrUpdate),
|
|
38
|
+
updateDep('@angular/compiler', '^19.2.4', addOrUpdate),
|
|
39
|
+
updateDep('@angular/core', '^19.2.4', addOrUpdate),
|
|
40
|
+
updateDep('@angular/forms', '^19.2.4', addOrUpdate),
|
|
41
|
+
updateDep('@angular/localize', '^19.2.4', addOrUpdate),
|
|
42
|
+
updateDep('@angular/material', '^19.2.7', addOrUpdate),
|
|
43
|
+
updateDep('@angular/platform-browser', '^19.2.4', addOrUpdate),
|
|
44
|
+
updateDep('@angular/platform-browser-dynamic', '^19.2.4', addOrUpdate),
|
|
45
|
+
updateDep('@angular/router', '^19.2.4', addOrUpdate),
|
|
46
|
+
updateDep('dompurify', '^3.0.0', updateIfExists),
|
|
47
|
+
updateDep('hammerjs', '2.0.8', addOrUpdate),
|
|
48
|
+
updateDep('marked', '^15.0.0', updateIfExists),
|
|
49
|
+
updateDep('ngx-build-plus', '^19.0.0', addOrUpdate),
|
|
50
|
+
updateDep('ngx-cookie-service', '^19.0.0', addOrUpdate),
|
|
51
|
+
updateDep('rxjs', '~7.8.1', addOrUpdate),
|
|
52
|
+
updateDep('tslib', '^2.8.1', updateIfExists),
|
|
53
|
+
updateDep('zone.js', '~0.15.0', addOrUpdate),
|
|
54
|
+
updateDevDep('@angular-devkit/build-angular', '^19.2.5', addOrUpdate),
|
|
55
|
+
updateDevDep('angular-eslint', '^19.2.0', addOrUpdate),
|
|
56
|
+
updateDevDep('@angular/cli', '^19.2.5', addOrUpdate),
|
|
57
|
+
updateDevDep('@angular/compiler-cli', '^19.2.4', addOrUpdate),
|
|
58
|
+
updateDevDep('@angular/elements', '^19.2.4', addOrUpdate),
|
|
59
|
+
updateDevDep('@angular/language-service', '^19.2.4', addOrUpdate),
|
|
60
|
+
updateDevDep('@compodoc/compodoc', '^1.1.26', updateIfExists),
|
|
61
|
+
updateDevDep('@ihk-gfi/lux-components-update', '^19.0.0', addOrUpdate),
|
|
62
|
+
updateDevDep('@types/jasmine', '~5.1.5', addOrUpdate),
|
|
63
|
+
updateDevDep('typescript-eslint', '8.16.0', addOrUpdate),
|
|
64
|
+
updateDevDep('eslint', '^9.21.0', updateIfExists),
|
|
65
|
+
updateDevDep('fs-extra', '11.2.0', updateIfExists),
|
|
66
|
+
updateDevDep('jasmine-core', '~5.2.0', addOrUpdate),
|
|
67
|
+
updateDevDep('karma', '~6.4.4', addOrUpdate),
|
|
68
|
+
updateDevDep('karma-chrome-launcher', '~3.2.0', addOrUpdate),
|
|
69
|
+
updateDevDep('karma-coverage', '~2.2.1', addOrUpdate),
|
|
70
|
+
updateDevDep('karma-firefox-launcher', '2.1.3', updateIfExists),
|
|
71
|
+
updateDevDep('karma-jasmine', '~5.1.0', addOrUpdate),
|
|
72
|
+
updateDevDep('karma-jasmine-html-reporter', '~2.1.0', addOrUpdate),
|
|
73
|
+
updateDevDep('karma-safari-launcher', '1.0.0', updateIfExists),
|
|
74
|
+
updateDevDep('typescript', '~5.5.2', addOrUpdate),
|
|
75
|
+
(0, util_1.messageSuccessRule)(`Abhängigkeiten in der Datei "package.json" wurden aktualisiert.`)
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
function updateDep(name, version, onlyUpdate) {
|
|
79
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Default, name], version, onlyUpdate);
|
|
80
|
+
}
|
|
81
|
+
function deleteDep(name) {
|
|
82
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Default, name], void 0, true);
|
|
83
|
+
}
|
|
84
|
+
function updateDevDep(name, version, onlyUpdate) {
|
|
85
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Dev, name], version, onlyUpdate);
|
|
86
|
+
}
|
|
87
|
+
function deleteDevDep(name) {
|
|
88
|
+
return (0, json_1.updateJsonValue)('/package.json', [dependencies_1.NodeDependencyType.Dev, name], void 0, true);
|
|
89
|
+
}
|
|
@@ -15,8 +15,8 @@ function updateEnMessages() {
|
|
|
15
15
|
}
|
|
16
16
|
function updateEnMessagesIntern() {
|
|
17
17
|
return (tree, _context) => {
|
|
18
|
-
const filePathLCEn = '/node_modules/@ihk-gfi/lux-components/
|
|
19
|
-
const filePathSDEn = '/node_modules/@ihk-gfi/lux-stammdaten/
|
|
18
|
+
const filePathLCEn = '/node_modules/@ihk-gfi/lux-components/locale/messages.en.xlf';
|
|
19
|
+
const filePathSDEn = '/node_modules/@ihk-gfi/lux-stammdaten/locale/messages.en.xlf';
|
|
20
20
|
const filePathAPPEn = '/src/locale/messages.en.xlf';
|
|
21
21
|
const filePathAPPDe = '/src/locale/messages.xlf';
|
|
22
22
|
const contentLCEn = readTransUnitFile(tree, filePathLCEn);
|
|
@@ -30,12 +30,12 @@ function updateEnMessagesIntern() {
|
|
|
30
30
|
let newContent = headerContent;
|
|
31
31
|
fnAPPDe(TRANS_UNIT_SELECTOR).each((_i, element) => {
|
|
32
32
|
const id = fnAPPDe(element).attr('id');
|
|
33
|
-
if (id
|
|
33
|
+
if (id?.startsWith('luxc.')) {
|
|
34
34
|
const transUnit = fnLCEEn(`trans-unit[id="${id}"]`).first();
|
|
35
35
|
fnAPPDe('\n ' + fnLCEEn(transUnit).find('target').toString()).insertAfter(fnAPPDe(`trans-unit[id="${id}"]`).find('source'));
|
|
36
36
|
newContent += '\n ' + fnAPPDe(element).toString();
|
|
37
37
|
}
|
|
38
|
-
else if (id
|
|
38
|
+
else if (id?.startsWith('luxsd.')) {
|
|
39
39
|
const transUnit = fnSDEn(`trans-unit[id="${id}"]`).first();
|
|
40
40
|
fnAPPDe('\n ' + fnSDEn(transUnit).find('target').toString()).insertAfter(fnAPPDe(`trans-unit[id="${id}"]`).find('source'));
|
|
41
41
|
newContent += '\n ' + fnAPPDe(element).toString();
|