@progressive-development/pd-wizard 0.1.81 → 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.81",
17
+ "version": "0.1.83",
18
18
  "main": "index.js",
19
19
  "module": "index.js",
20
20
  "scripts": {
package/src/PdWizard.js CHANGED
@@ -173,6 +173,9 @@ export class PdWizard extends LitElement {
173
173
  top: 3px;
174
174
  right: 3px;
175
175
  }
176
+ .title {
177
+ margin-left: 50px;
178
+ }
176
179
  }
177
180
 
178
181
  `];
@@ -259,7 +262,7 @@ export class PdWizard extends LitElement {
259
262
  ? html`
260
263
  <pd-button
261
264
  @button-clicked="${this._previousStep}"
262
- text="${msg('Zurück', {desc: '#pd.wizard.back#'})}"
265
+ text="${msg('Zurück', {id: 'pd.wizard.button.back'})}"
263
266
  style="visibility: ${this.currentNumber === 1
264
267
  ? 'hidden'
265
268
  : 'visible'};"
@@ -268,7 +271,7 @@ export class PdWizard extends LitElement {
268
271
  this.wizardSteps[this.currentNumber - 1].next !== false
269
272
  ? html`<pd-button
270
273
  @button-clicked="${this._nextStep}"
271
- text="${msg('Weiter', {desc: '#pd.wizard.next#'})}"
274
+ text="${msg('Weiter', {id: 'pd.wizard.button.next'})}"
272
275
  ></pd-button>`
273
276
  : ''}
274
277
  ${this.currentNumber === this.wizardSteps.length
@@ -276,7 +279,7 @@ export class PdWizard extends LitElement {
276
279
  primary
277
280
  ?disabled="${this._submited}"
278
281
  @button-clicked="${this._submit}"
279
- text="${msg('Absenden', {desc: '#pd.wizard.submit#'})}"
282
+ text="${msg('Absenden', {id: 'pd.wizard.button.send'})}"
280
283
  ></pd-button>`
281
284
  : ''}
282
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>