@ihk-gfi/lux-components-update 18.5.1 → 18.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihk-gfi/lux-components-update",
3
- "version": "18.5.1",
3
+ "version": "18.5.2",
4
4
  "description": "Schematics für die Aktualisierung von LUX-Applikationen",
5
5
  "scripts": {
6
6
  "build": "npm run clean && tsc -p tsconfig.json",
@@ -1,2 +1,5 @@
1
1
  import { Rule } from '@angular-devkit/schematics';
2
2
  export declare function update180500(_options: any, runNpmInstall?: boolean): Rule;
3
+ export declare function updateI18NFiles(): Rule;
4
+ export declare const i18nDeChip = "<trans-unit id=\"luxc.chips.remove\" datatype=\"html\">\n <source>entfernen</source>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>\n <context context-type=\"linenumber\">37</context>\n </context-group>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>\n <context context-type=\"linenumber\">73</context>\n </context-group>\n </trans-unit>";
5
+ export declare const i18nEnChip = "<trans-unit id=\"luxc.chips.remove\" datatype=\"html\">\n <source>entfernen</source>\n <target>remove</target>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>\n <context context-type=\"linenumber\">37</context>\n </context-group>\n <context-group purpose=\"location\">\n <context context-type=\"sourcefile\">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>\n <context context-type=\"linenumber\">73</context>\n </context-group>\n </trans-unit>";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.i18nEnChip = exports.i18nDeChip = void 0;
3
4
  exports.update180500 = update180500;
5
+ exports.updateI18NFiles = updateI18NFiles;
4
6
  const schematics_1 = require("@angular-devkit/schematics");
5
7
  const chalk = require("chalk");
6
8
  const index_1 = require("../../update-dependencies/index");
@@ -13,8 +15,39 @@ function update180500(_options, runNpmInstall = true) {
13
15
  (0, index_1.updateDep)('@ihk-gfi/lux-components', '18.5.0', false),
14
16
  (0, index_1.updateDep)('@ihk-gfi/lux-components-theme', '18.5.0', false),
15
17
  (0, index_1.updateDep)('dompurify', '~3.2.4', true),
18
+ updateI18NFiles(),
16
19
  (0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 18.5.0 aktualisiert.`),
17
20
  (0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
18
21
  ]);
19
22
  };
20
23
  }
24
+ function updateI18NFiles() {
25
+ return (tree, _context) => {
26
+ (0, util_1.messageInfoRule)(`I18n-Dateien werden angepasst...`), (0, util_1.updateI18nFile)(tree, 'de', 'luxc.chips.input.placeholder.lbl', exports.i18nDeChip);
27
+ (0, util_1.updateI18nFile)(tree, 'en', 'luxc.chips.input.placeholder.lbl', exports.i18nEnChip);
28
+ (0, util_1.messageInfoRule)(`I18n-Dateien wurden angepasst.`);
29
+ };
30
+ }
31
+ exports.i18nDeChip = `<trans-unit id="luxc.chips.remove" datatype="html">
32
+ <source>entfernen</source>
33
+ <context-group purpose="location">
34
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>
35
+ <context context-type="linenumber">37</context>
36
+ </context-group>
37
+ <context-group purpose="location">
38
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>
39
+ <context context-type="linenumber">73</context>
40
+ </context-group>
41
+ </trans-unit>`;
42
+ exports.i18nEnChip = `<trans-unit id="luxc.chips.remove" datatype="html">
43
+ <source>entfernen</source>
44
+ <target>remove</target>
45
+ <context-group purpose="location">
46
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>
47
+ <context context-type="linenumber">37</context>
48
+ </context-group>
49
+ <context-group purpose="location">
50
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-chips-ac/lux-chips-ac.component.html</context>
51
+ <context context-type="linenumber">73</context>
52
+ </context-group>
53
+ </trans-unit>`;