@progressive-development/pd-wizard 0.1.82 → 0.1.83

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/index.js CHANGED
@@ -1 +1,5 @@
1
1
  export { PdWizard } from './src/PdWizard.js';
2
+
3
+ export { templates as beTemplates } from './src/generated/locales/be.js';
4
+ export { templates as deTemplates } from './src/generated/locales/de.js';
5
+ export { templates as enTemplates } from './src/generated/locales/en.js';
package/lit-localize.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/config.schema.json",
3
- "sourceLocale": "de",
4
- "targetLocales": ["en", "be"],
3
+ "sourceLocale": "dev",
4
+ "targetLocales": ["de", "en", "be"],
5
5
  "inputFiles": [
6
6
  "src/**/*.js"
7
7
  ],
8
8
  "output": {
9
9
  "mode": "runtime",
10
10
  "localeCodesModule": "src/generated/locale-codes.js",
11
- "outputDir": "src/generated/locale"
11
+ "outputDir": "src/generated/locales"
12
12
 
13
13
  },
14
14
  "interchange": {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "order",
15
15
  "steps"
16
16
  ],
17
- "version": "0.1.82",
17
+ "version": "0.1.83",
18
18
  "main": "index.js",
19
19
  "module": "index.js",
20
20
  "scripts": {
package/src/PdWizard.js CHANGED
@@ -262,7 +262,7 @@ export class PdWizard extends LitElement {
262
262
  ? html`
263
263
  <pd-button
264
264
  @button-clicked="${this._previousStep}"
265
- text="${msg('Zurück', {desc: '#pd.wizard.back#'})}"
265
+ text="${msg('Zurück', {id: 'pd.wizard.button.back'})}"
266
266
  style="visibility: ${this.currentNumber === 1
267
267
  ? 'hidden'
268
268
  : 'visible'};"
@@ -271,7 +271,7 @@ export class PdWizard extends LitElement {
271
271
  this.wizardSteps[this.currentNumber - 1].next !== false
272
272
  ? html`<pd-button
273
273
  @button-clicked="${this._nextStep}"
274
- text="${msg('Weiter', {desc: '#pd.wizard.next#'})}"
274
+ text="${msg('Weiter', {id: 'pd.wizard.button.next'})}"
275
275
  ></pd-button>`
276
276
  : ''}
277
277
  ${this.currentNumber === this.wizardSteps.length
@@ -279,7 +279,7 @@ export class PdWizard extends LitElement {
279
279
  primary
280
280
  ?disabled="${this._submited}"
281
281
  @button-clicked="${this._submit}"
282
- text="${msg('Absenden', {desc: '#pd.wizard.submit#'})}"
282
+ text="${msg('Absenden', {id: 'pd.wizard.button.send'})}"
283
283
  ></pd-button>`
284
284
  : ''}
285
285
  `
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * The locale code that templates in this source code are written in.
6
6
  */
7
- export const sourceLocale = `de`;
7
+ export const sourceLocale = `dev`;
8
8
 
9
9
  /**
10
10
  * The other locale codes that this application is localized into. Sorted
@@ -12,6 +12,7 @@ export const sourceLocale = `de`;
12
12
  */
13
13
  export const targetLocales = [
14
14
  `be`,
15
+ `de`,
15
16
  `en`,
16
17
  ];
17
18
 
@@ -21,5 +22,6 @@ export const targetLocales = [
21
22
  export const allLocales = [
22
23
  `be`,
23
24
  `de`,
25
+ `dev`,
24
26
  `en`,
25
27
  ];
@@ -9,9 +9,8 @@
9
9
  /* eslint-disable @typescript-eslint/no-explicit-any */
10
10
 
11
11
  export const templates = {
12
- 'sc1f0eaf2390bc10b': `Volgende`,
13
- 'sc7dbfe3251f9a8db': `Order`,
14
- 'sd2792907114a0eac': `Terug`,
15
- 'sf28e356f66b07af9': `Eerdere inzendingen gaan verloren! Bestelling toch annuleren?`,
12
+ 'pd.wizard.button.back': `Terug`,
13
+ 'pd.wizard.button.next': `Volgende`,
14
+ 'pd.wizard.button.send': `Verzenden`,
16
15
  };
17
16
 
@@ -0,0 +1,16 @@
1
+
2
+ // Do not modify this file by hand!
3
+ // Re-generate this file by running lit-localize
4
+
5
+
6
+
7
+
8
+ /* eslint-disable no-irregular-whitespace */
9
+ /* eslint-disable @typescript-eslint/no-explicit-any */
10
+
11
+ export const templates = {
12
+ 'pd.wizard.button.back': `Zurück`,
13
+ 'pd.wizard.button.next': `Weiter`,
14
+ 'pd.wizard.button.send': `Absenden`,
15
+ };
16
+
@@ -9,9 +9,8 @@
9
9
  /* eslint-disable @typescript-eslint/no-explicit-any */
10
10
 
11
11
  export const templates = {
12
- 'sf28e356f66b07af9': `Data will be lost, abort current order?`,
13
- 'sd2792907114a0eac': `Zurück`,
14
- 'sc1f0eaf2390bc10b': `Weiter`,
15
- 'sc7dbfe3251f9a8db': `Absenden`,
12
+ 'pd.wizard.button.back': `Back`,
13
+ 'pd.wizard.button.next': `Next`,
14
+ 'pd.wizard.button.send': `Submit`,
16
15
  };
17
16
 
package/xliff/be.xlf CHANGED
@@ -2,25 +2,17 @@
2
2
  <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3
3
  <file target-language="be" source-language="de" original="lit-localize-inputs" datatype="plaintext">
4
4
  <body>
5
- <trans-unit id="sf28e356f66b07af9">
6
- <source>Bisherige Eingaben gehen verloren! Auftrag dennoch abbrechen?</source>
7
- <target>Eerdere inzendingen gaan verloren! Bestelling toch annuleren?</target>
8
- <note>#pd.wizard.abort#</note>
9
- </trans-unit>
10
- <trans-unit id="sd2792907114a0eac">
5
+ <trans-unit id="pd.wizard.button.back">
11
6
  <source>Zurück</source>
12
7
  <target>Terug</target>
13
- <note>#pd.wizard.back#</note>
14
8
  </trans-unit>
15
- <trans-unit id="sc1f0eaf2390bc10b">
9
+ <trans-unit id="pd.wizard.button.next">
16
10
  <source>Weiter</source>
17
11
  <target>Volgende</target>
18
- <note>#pd.wizard.next#</note>
19
12
  </trans-unit>
20
- <trans-unit id="sc7dbfe3251f9a8db">
13
+ <trans-unit id="pd.wizard.button.send">
21
14
  <source>Absenden</source>
22
- <target>Order</target>
23
- <note>#pd.wizard.submit#</note>
15
+ <target>Verzenden</target>
24
16
  </trans-unit>
25
17
  </body>
26
18
  </file>
package/xliff/de.xlf ADDED
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3
+ <file target-language="de" source-language="dev" original="lit-localize-inputs" datatype="plaintext">
4
+ <body>
5
+ <trans-unit id="pd.wizard.button.back">
6
+ <source>Zurück</source>
7
+ </trans-unit>
8
+ <trans-unit id="pd.wizard.button.next">
9
+ <source>Weiter</source>
10
+ </trans-unit>
11
+ <trans-unit id="pd.wizard.button.send">
12
+ <source>Absenden</source>
13
+ </trans-unit>
14
+ </body>
15
+ </file>
16
+ </xliff>
package/xliff/en.xlf CHANGED
@@ -2,22 +2,17 @@
2
2
  <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3
3
  <file target-language="en" source-language="de" original="lit-localize-inputs" datatype="plaintext">
4
4
  <body>
5
- <trans-unit id="sf28e356f66b07af9">
6
- <source>Bisherige Eingaben gehen verloren! Auftrag dennoch abbrechen?</source>
7
- <target>Data will be lost, abort current order?</target>
8
- <note>#pd.wizard.abort#</note>
9
- </trans-unit>
10
- <trans-unit id="sd2792907114a0eac">
5
+ <trans-unit id="pd.wizard.button.back">
11
6
  <source>Zurück</source>
12
- <note>#pd.wizard.back#</note>
7
+ <target>Back</target>
13
8
  </trans-unit>
14
- <trans-unit id="sc1f0eaf2390bc10b">
9
+ <trans-unit id="pd.wizard.button.next">
15
10
  <source>Weiter</source>
16
- <note>#pd.wizard.next#</note>
11
+ <target>Next</target>
17
12
  </trans-unit>
18
- <trans-unit id="sc7dbfe3251f9a8db">
13
+ <trans-unit id="pd.wizard.button.send">
19
14
  <source>Absenden</source>
20
- <note>#pd.wizard.submit#</note>
15
+ <target>Submit</target>
21
16
  </trans-unit>
22
17
  </body>
23
18
  </file>