@progressive-development/pd-calendar 0.2.11 → 0.2.13

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.
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/config.schema.json",
3
+ "sourceLocale": "dev",
4
+ "targetLocales": ["de", "en", "be"],
5
+ "inputFiles": [
6
+ "src/**/*.js"
7
+ ],
8
+ "output": {
9
+ "mode": "runtime",
10
+ "localeCodesModule": "src/generated/locale-codes.js",
11
+ "outputDir": "src/generated/locale"
12
+
13
+ },
14
+ "interchange": {
15
+ "format": "xliff",
16
+ "xliffDir": "./xliff/"
17
+ }
18
+ }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "progressive development calendar web component",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.2.11",
6
+ "version": "0.2.13",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
@@ -14,7 +14,9 @@
14
14
  "test": "web-test-runner --coverage",
15
15
  "test:watch": "web-test-runner --watch",
16
16
  "storybook": "storybook dev -p 6006",
17
- "build-storybook": "storybook build"
17
+ "build-storybook": "storybook build",
18
+ "localizeExtract": "lit-localize extract",
19
+ "localizeBuild": "lit-localize build"
18
20
  },
19
21
  "keywords": [
20
22
  "pd",
@@ -30,6 +32,7 @@
30
32
  "week"
31
33
  ],
32
34
  "dependencies": {
35
+ "@lit/localize": "^0.12.1",
33
36
  "@progressive-development/pd-icon": "^0.1.20",
34
37
  "@progressive-development/pd-shared-styles": "0.1.1",
35
38
  "fecha": "^4.2.3",
@@ -37,6 +40,7 @@
37
40
  },
38
41
  "devDependencies": {
39
42
  "@custom-elements-manifest/analyzer": "^0.4.17",
43
+ "@lit/localize-tools": "^0.7.2",
40
44
  "@open-wc/eslint-config": "^4.3.0",
41
45
  "@open-wc/testing": "^3.0.0-next.5",
42
46
  "@storybook/addon-essentials": "^7.6.4",
package/src/PdCalendar.js CHANGED
@@ -1,19 +1,59 @@
1
+ /* eslint-disable lit-a11y/click-events-have-key-events */
1
2
  /**
2
3
  * @license
3
4
  * Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
4
5
  */
5
6
 
6
7
  import { LitElement, html, css } from 'lit';
8
+ import { msg, updateWhenLocaleChanges } from '@lit/localize';
9
+
7
10
  import { format } from 'fecha';
8
11
  import '@progressive-development/pd-icon/pd-icon.js';
9
12
 
10
13
  import { PDColorStyles, PDFontStyles } from '@progressive-development/pd-shared-styles';
11
14
 
12
15
  import './PdCalendarCell.js';
13
-
14
- // todo: use existing shortnames for locale here
15
- const weekDays = ['Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za', 'Zo'];
16
- const weekDaysWithoutWE = ['Ma', 'Di', 'Wo', 'Do', 'Vr'];
16
+ import { PdYearPopup } from './PdYearPopup.js';
17
+
18
+ const TOUCH_MIN_MOVE = 70;
19
+
20
+ const loadLocales = () =>
21
+ ({
22
+ monthNames: [
23
+ msg("Januar", { id: 'pd.datepicker.month.jan'}),
24
+ msg("Februar", { id: 'pd.datepicker.month.feb'}),
25
+ msg("März", { id: 'pd.datepicker.month.mar'}),
26
+ msg("April", { id: 'pd.datepicker.month.apr'}),
27
+ msg("Mai", { id: 'pd.datepicker.month.may'}),
28
+ msg("Juni", { id: 'pd.datepicker.month.jun'}),
29
+ msg("Juli", { id: 'pd.datepicker.month.jul'}),
30
+ msg("August", { id: 'pd.datepicker.month.aug'}),
31
+ msg("September", { id: 'pd.datepicker.month.sep'}),
32
+ msg("Oktober", { id: 'pd.datepicker.month.oct'}),
33
+ msg("November", { id: 'pd.datepicker.month.nov'}),
34
+ msg("Dezember", { id: 'pd.datepicker.month.dec'}),
35
+ ],
36
+ weekdays: [
37
+ msg("Sonntag", { id: 'pd.datepicker.day.sun'}),
38
+ msg("Montag", { id: 'pd.datepicker.day.mon'}),
39
+ msg("Dienstag", { id: 'pd.datepicker.day.tue'}),
40
+ msg("Mittwoch", { id: 'pd.datepicker.day.wed'}),
41
+ msg("Donnerstag", { id: 'pd.datepicker.day.thi'}),
42
+ msg("Freitag", { id: 'pd.datepicker.day.fri'}),
43
+ msg("Samstag", { id: 'pd.datepicker.day.sat'}),
44
+ ],
45
+ weekdaysShort: [
46
+ msg("Mo", { id: 'pd.datepicker.shortday.mon'}),
47
+ msg("Di", { id: 'pd.datepicker.shortday.tue'}),
48
+ msg("Mi", { id: 'pd.datepicker.shortday.wed'}),
49
+ msg("Do", { id: 'pd.datepicker.shortday.thi'}),
50
+ msg("Fr", { id: 'pd.datepicker.shortday.fri'}),
51
+ msg("Sa", { id: 'pd.datepicker.shortday.sat'}),
52
+ msg("So", { id: 'pd.datepicker.shortday.sun'}),
53
+ ],
54
+ });
55
+
56
+ const LOCALES = loadLocales();
17
57
 
18
58
  // list views (list, month, week)
19
59
  const VIEW_LIST = 1;
@@ -85,6 +125,7 @@ export class PdCalendar extends LitElement {
85
125
  return {
86
126
  refDate: { type: Object },
87
127
  selectableDates: { type: Boolean},
128
+ withYearPopup: { type: Boolean},
88
129
  showSelection: { type: Boolean},
89
130
  hideWeekend: { type: Boolean, reflect: true },
90
131
  prevMonthConstraint: { type: Number },
@@ -97,7 +138,8 @@ export class PdCalendar extends LitElement {
97
138
  numberClass: { type: String },
98
139
 
99
140
  _currentDate: { type: Object },
100
- _viewType: { type: Number }
141
+ _viewType: { type: Number },
142
+ _wheelDelta: { type: Number, state: true },
101
143
  };
102
144
  }
103
145
 
@@ -185,6 +227,7 @@ export class PdCalendar extends LitElement {
185
227
  }
186
228
 
187
229
  .content-title {
230
+ position: relative;
188
231
  font-size: var(--pd-calendar-title-font-size, 1.2em);
189
232
  font-weight: bold;
190
233
  }
@@ -201,11 +244,22 @@ export class PdCalendar extends LitElement {
201
244
  --pd-icon-size: var(--pd-calendar-title-icon-size, 1.2em);
202
245
  --pd-icon-bg-col-hover: lightgrey;
203
246
  }
247
+
248
+ .year-popup-link {
249
+
250
+ }
251
+
252
+ .year-popup-link:hover {
253
+ cursor: pointer;
254
+ color: var(--pd-default-hover-col);
255
+ }
256
+
204
257
  `];
205
258
  }
206
259
 
207
260
  constructor() {
208
261
  super();
262
+ updateWhenLocaleChanges(this);
209
263
 
210
264
  this.data = {};
211
265
  this._viewType = VIEW_MONTH;
@@ -213,7 +267,7 @@ export class PdCalendar extends LitElement {
213
267
  this.hideWeekend = false;
214
268
  this.selectableDates = false;
215
269
  this.showSelection = false;
216
-
270
+ this._wheelDelta = 0;
217
271
  this._currentMonthNavNr = 0;
218
272
  }
219
273
 
@@ -330,16 +384,22 @@ export class PdCalendar extends LitElement {
330
384
  ></pd-icon>
331
385
  </div>
332
386
 
333
- <div class="content-title">
334
- ${this._monthName} ${this._year}
387
+ <div id="titleContentId" class="content-title">
388
+ ${this._monthName} ${this.withYearPopup ? html`
389
+ <span class="year-popup-link" @click="${this._openYearPopup}">${this._year}</span>
390
+ ` : html`${this._year}`}
335
391
  </div>
336
392
 
337
393
  </div>
338
394
 
339
395
  </div>
340
396
 
341
- <div class="content grid-container ${sizeVar}">
342
- ${(this.hideWeekend ? weekDaysWithoutWE : weekDays).map(
397
+ <div
398
+ @wheel="${this._wheelEvent}"
399
+ @touchstart="${this._touchStartEvent}"
400
+ @touchend="${this._touchEndEvent}"
401
+ class="content grid-container ${sizeVar}">
402
+ ${this._getWeekDays().map(
343
403
  shortName => html` <div class="title-week-day">${shortName}</div>`
344
404
  )}
345
405
  ${this._daysFromPreviousMonth.map(
@@ -351,6 +411,46 @@ export class PdCalendar extends LitElement {
351
411
  `;
352
412
  }
353
413
 
414
+ // eslint-disable-next-line class-methods-use-this
415
+ _openYearPopup() {
416
+
417
+ const popup = new PdYearPopup();
418
+ popup.yearSelection = ["2024", "2025"];
419
+ this.shadowRoot.getElementById("titleContentId").appendChild(popup);
420
+
421
+ popup.addEventListener("abort-year-selection", () => {
422
+ this.shadowRoot.getElementById("titleContentId").removeChild(popup);
423
+ });
424
+
425
+ popup.addEventListener("change-year-selection", (e) => {
426
+ const newYear = e.detail.year;
427
+ if (newYear) {
428
+ const newDate = new Date(
429
+ this._currentDate.getFullYear(),
430
+ this._currentDate.getMonth(),
431
+ 1
432
+ );
433
+ newDate.setFullYear(newYear);
434
+ this.dispatchEvent(
435
+ new CustomEvent('change-month', {
436
+ detail: {
437
+ newDate,
438
+ },
439
+ })
440
+ );
441
+ this._initFromDate(newDate);
442
+ }
443
+ this.shadowRoot.getElementById("titleContentId").removeChild(popup);
444
+ });
445
+ }
446
+
447
+ // eslint-disable-next-line class-methods-use-this
448
+ _getWeekDays() {
449
+ return this.hideWeekend ? [
450
+ ...LOCALES.weekdaysShort
451
+ ].splice(0, 5) : LOCALES.weekdaysShort;
452
+ }
453
+
354
454
  _nextMonth() {
355
455
  if (this._checkNextMonthConstraint()) {
356
456
  const newDate = new Date(
@@ -391,6 +491,47 @@ export class PdCalendar extends LitElement {
391
491
  }
392
492
  }
393
493
 
494
+ // eslint-disable-next-line class-methods-use-this
495
+ _wheelEvent(e) {
496
+
497
+ this._wheelDelta += e.deltaY;
498
+
499
+ if (this._wheelDelta > 360) {
500
+ this._wheelDelta = 0;
501
+ this._nextMonth();
502
+ }
503
+
504
+ if (this._wheelDelta < -360) {
505
+ this._wheelDelta = 0;
506
+ this._previousMonth();
507
+ }
508
+
509
+ e.preventDefault();
510
+ e.stopPropagation();
511
+
512
+ }
513
+
514
+ // eslint-disable-next-line class-methods-use-this
515
+ _touchStartEvent(e) {
516
+ this._wheelDelta = e.changedTouches[0].screenX;
517
+ e.preventDefault();
518
+ e.stopPropagation();
519
+ }
520
+
521
+ _touchEndEvent(e) {
522
+ const touchEndX = e.changedTouches[0].screenX;
523
+
524
+ const result = this._wheelDelta - touchEndX;
525
+ if (result < (TOUCH_MIN_MOVE * -1)) {
526
+ this._previousMonth();
527
+ } else if (result > TOUCH_MIN_MOVE) {
528
+ this._nextMonth();
529
+ }
530
+
531
+ e.preventDefault();
532
+ e.stopPropagation();
533
+ }
534
+
394
535
  _initFromDate(date) {
395
536
  this._monthName = date.toLocaleString('default', { month: 'long' });
396
537
  this._year = date.getFullYear();
@@ -0,0 +1,91 @@
1
+ /* eslint-disable lit-a11y/click-events-have-key-events */
2
+ import { LitElement, html, css } from 'lit';
3
+
4
+ export class PdYearPopup extends LitElement {
5
+ /**
6
+ * @event select-date - fires when user clicks on a selectable cell.
7
+ */
8
+
9
+ static get properties() {
10
+ return {
11
+ yearSelection: { type: Array },
12
+ currentYear: { type: String },
13
+ };
14
+ }
15
+
16
+ static get styles() {
17
+ return [
18
+ css`
19
+ :host {
20
+ position: absolute;
21
+ z-index: 1;
22
+ top: 25px;
23
+ right: 0;
24
+ }
25
+
26
+ ul {
27
+ list-style: none;
28
+ max-width: 200px;
29
+ margin: 0;
30
+ padding: 0;
31
+ background: var(--pd-default-light-col, #cdeaf844);
32
+ box-shadow: 3px 3px 5px 0 #ccc;
33
+ border: 1px solid var(--pd-default-col);
34
+
35
+ display: flex;
36
+ flex-direction: column;
37
+
38
+ }
39
+
40
+ li {
41
+ text-align: center;
42
+ padding: 10px;
43
+ color: var(--pd-default-dark-col)
44
+ }
45
+
46
+ .current {
47
+ }
48
+
49
+ .selectable:hover {
50
+ cursor: pointer;
51
+ }
52
+
53
+ `];
54
+ }
55
+
56
+ constructor() {
57
+ super();
58
+ this.yearSelection = [];
59
+
60
+ }
61
+
62
+ render() {
63
+ return html`
64
+ <ul>
65
+ ${this.yearSelection.map(year => html`
66
+ <li class="${this.currentYear === year ? 'current' : ''}" data-year="${year}" @click="${this._yearSelection}">${year}</li>
67
+ `)}
68
+ </ul>
69
+ `;
70
+ }
71
+
72
+ _yearSelection(event) {
73
+ if (event.target.dataset.year) {
74
+ this.dispatchEvent(new CustomEvent(
75
+ "change-year-selection", {
76
+ detail: {
77
+ year: event.target.dataset.year
78
+ }
79
+ }));
80
+ } else {
81
+ this._closeSelection();
82
+ }
83
+ }
84
+
85
+ _closeSelection() {
86
+ this.dispatchEvent(new CustomEvent("abort-year-selection"));
87
+ }
88
+
89
+ }
90
+
91
+ window.customElements.define('pd-year-popup', PdYearPopup);
@@ -0,0 +1,39 @@
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.datepicker.month.jan': `Januar`,
13
+ 'pd.datepicker.month.feb': `Februar`,
14
+ 'pd.datepicker.month.mar': `März`,
15
+ 'pd.datepicker.month.apr': `April`,
16
+ 'pd.datepicker.month.may': `Mai`,
17
+ 'pd.datepicker.month.jun': `Juni`,
18
+ 'pd.datepicker.month.jul': `Juli`,
19
+ 'pd.datepicker.month.aug': `August`,
20
+ 'pd.datepicker.month.sep': `September`,
21
+ 'pd.datepicker.month.oct': `Oktober`,
22
+ 'pd.datepicker.month.nov': `November`,
23
+ 'pd.datepicker.month.dec': `Dezember`,
24
+ 'pd.datepicker.day.sun': `Sonntag`,
25
+ 'pd.datepicker.day.mon': `Montag`,
26
+ 'pd.datepicker.day.tue': `Dienstag`,
27
+ 'pd.datepicker.day.wed': `Mittwoch`,
28
+ 'pd.datepicker.day.thi': `Donnerstag`,
29
+ 'pd.datepicker.day.fri': `Freitag`,
30
+ 'pd.datepicker.day.sat': `Samstag`,
31
+ 'pd.datepicker.shortday.mon': `Mo`,
32
+ 'pd.datepicker.shortday.tue': `Di`,
33
+ 'pd.datepicker.shortday.wed': `Mi`,
34
+ 'pd.datepicker.shortday.thi': `Do`,
35
+ 'pd.datepicker.shortday.fri': `Fr`,
36
+ 'pd.datepicker.shortday.sat': `Sa`,
37
+ 'pd.datepicker.shortday.sun': `So`,
38
+ };
39
+
@@ -0,0 +1,39 @@
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.datepicker.month.jan': `Januar`,
13
+ 'pd.datepicker.month.feb': `Februar`,
14
+ 'pd.datepicker.month.mar': `März`,
15
+ 'pd.datepicker.month.apr': `April`,
16
+ 'pd.datepicker.month.may': `Mai`,
17
+ 'pd.datepicker.month.jun': `Juni`,
18
+ 'pd.datepicker.month.jul': `Juli`,
19
+ 'pd.datepicker.month.aug': `August`,
20
+ 'pd.datepicker.month.sep': `September`,
21
+ 'pd.datepicker.month.oct': `Oktober`,
22
+ 'pd.datepicker.month.nov': `November`,
23
+ 'pd.datepicker.month.dec': `Dezember`,
24
+ 'pd.datepicker.day.sun': `Sonntag`,
25
+ 'pd.datepicker.day.mon': `Montag`,
26
+ 'pd.datepicker.day.tue': `Dienstag`,
27
+ 'pd.datepicker.day.wed': `Mittwoch`,
28
+ 'pd.datepicker.day.thi': `Donnerstag`,
29
+ 'pd.datepicker.day.fri': `Freitag`,
30
+ 'pd.datepicker.day.sat': `Samstag`,
31
+ 'pd.datepicker.shortday.mon': `Mo`,
32
+ 'pd.datepicker.shortday.tue': `Di`,
33
+ 'pd.datepicker.shortday.wed': `Mi`,
34
+ 'pd.datepicker.shortday.thi': `Do`,
35
+ 'pd.datepicker.shortday.fri': `Fr`,
36
+ 'pd.datepicker.shortday.sat': `Sa`,
37
+ 'pd.datepicker.shortday.sun': `So`,
38
+ };
39
+
@@ -0,0 +1,39 @@
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.datepicker.month.jan': `Januar`,
13
+ 'pd.datepicker.month.feb': `Februar`,
14
+ 'pd.datepicker.month.mar': `März`,
15
+ 'pd.datepicker.month.apr': `April`,
16
+ 'pd.datepicker.month.may': `Mai`,
17
+ 'pd.datepicker.month.jun': `Juni`,
18
+ 'pd.datepicker.month.jul': `Juli`,
19
+ 'pd.datepicker.month.aug': `August`,
20
+ 'pd.datepicker.month.sep': `September`,
21
+ 'pd.datepicker.month.oct': `Oktober`,
22
+ 'pd.datepicker.month.nov': `November`,
23
+ 'pd.datepicker.month.dec': `Dezember`,
24
+ 'pd.datepicker.day.sun': `Sonntag`,
25
+ 'pd.datepicker.day.mon': `Montag`,
26
+ 'pd.datepicker.day.tue': `Dienstag`,
27
+ 'pd.datepicker.day.wed': `Mittwoch`,
28
+ 'pd.datepicker.day.thi': `Donnerstag`,
29
+ 'pd.datepicker.day.fri': `Freitag`,
30
+ 'pd.datepicker.day.sat': `Samstag`,
31
+ 'pd.datepicker.shortday.mon': `Mo`,
32
+ 'pd.datepicker.shortday.tue': `Di`,
33
+ 'pd.datepicker.shortday.wed': `Mi`,
34
+ 'pd.datepicker.shortday.thi': `Do`,
35
+ 'pd.datepicker.shortday.fri': `Fr`,
36
+ 'pd.datepicker.shortday.sat': `Sa`,
37
+ 'pd.datepicker.shortday.sun': `So`,
38
+ };
39
+
@@ -0,0 +1,27 @@
1
+ // Do not modify this file by hand!
2
+ // Re-generate this file by running lit-localize.
3
+
4
+ /**
5
+ * The locale code that templates in this source code are written in.
6
+ */
7
+ export const sourceLocale = `dev`;
8
+
9
+ /**
10
+ * The other locale codes that this application is localized into. Sorted
11
+ * lexicographically.
12
+ */
13
+ export const targetLocales = [
14
+ `be`,
15
+ `de`,
16
+ `en`,
17
+ ];
18
+
19
+ /**
20
+ * All valid project locale codes. Sorted lexicographically.
21
+ */
22
+ export const allLocales = [
23
+ `be`,
24
+ `de`,
25
+ `dev`,
26
+ `en`,
27
+ ];
@@ -43,7 +43,7 @@ function CalendarSmallTemplate({ refDate, hideWeekend, width, cellHeight, prevMo
43
43
 
44
44
  }
45
45
  </style>
46
- <pd-calendar .refDate="${refDate}" selectableDates showSelection ?hideWeekend="${hideWeekend}" class="calendar-small" prevMonthConstraint="${prevMonthConstraint}"
46
+ <pd-calendar withYearPopup .refDate="${refDate}" selectableDates showSelection ?hideWeekend="${hideWeekend}" class="calendar-small" prevMonthConstraint="${prevMonthConstraint}"
47
47
  nextMonthConstraint="${nextMonthConstraint}" numberClass="center"
48
48
  @mouse-enter-date="${(e) => {
49
49
  console.log("Mouse Enter Event: ", e);
package/xliff/be.xlf ADDED
@@ -0,0 +1,85 @@
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="be" source-language="dev" original="lit-localize-inputs" datatype="plaintext">
4
+ <body>
5
+ <trans-unit id="pd.datepicker.month.jan">
6
+ <source>Januar</source>
7
+ </trans-unit>
8
+ <trans-unit id="pd.datepicker.month.feb">
9
+ <source>Februar</source>
10
+ </trans-unit>
11
+ <trans-unit id="pd.datepicker.month.mar">
12
+ <source>März</source>
13
+ </trans-unit>
14
+ <trans-unit id="pd.datepicker.month.apr">
15
+ <source>April</source>
16
+ </trans-unit>
17
+ <trans-unit id="pd.datepicker.month.may">
18
+ <source>Mai</source>
19
+ </trans-unit>
20
+ <trans-unit id="pd.datepicker.month.jun">
21
+ <source>Juni</source>
22
+ </trans-unit>
23
+ <trans-unit id="pd.datepicker.month.jul">
24
+ <source>Juli</source>
25
+ </trans-unit>
26
+ <trans-unit id="pd.datepicker.month.aug">
27
+ <source>August</source>
28
+ </trans-unit>
29
+ <trans-unit id="pd.datepicker.month.sep">
30
+ <source>September</source>
31
+ </trans-unit>
32
+ <trans-unit id="pd.datepicker.month.oct">
33
+ <source>Oktober</source>
34
+ </trans-unit>
35
+ <trans-unit id="pd.datepicker.month.nov">
36
+ <source>November</source>
37
+ </trans-unit>
38
+ <trans-unit id="pd.datepicker.month.dec">
39
+ <source>Dezember</source>
40
+ </trans-unit>
41
+ <trans-unit id="pd.datepicker.day.sun">
42
+ <source>Sonntag</source>
43
+ </trans-unit>
44
+ <trans-unit id="pd.datepicker.day.mon">
45
+ <source>Montag</source>
46
+ </trans-unit>
47
+ <trans-unit id="pd.datepicker.day.tue">
48
+ <source>Dienstag</source>
49
+ </trans-unit>
50
+ <trans-unit id="pd.datepicker.day.wed">
51
+ <source>Mittwoch</source>
52
+ </trans-unit>
53
+ <trans-unit id="pd.datepicker.day.thi">
54
+ <source>Donnerstag</source>
55
+ </trans-unit>
56
+ <trans-unit id="pd.datepicker.day.fri">
57
+ <source>Freitag</source>
58
+ </trans-unit>
59
+ <trans-unit id="pd.datepicker.day.sat">
60
+ <source>Samstag</source>
61
+ </trans-unit>
62
+ <trans-unit id="pd.datepicker.shortday.mon">
63
+ <source>Mo</source>
64
+ </trans-unit>
65
+ <trans-unit id="pd.datepicker.shortday.tue">
66
+ <source>Di</source>
67
+ </trans-unit>
68
+ <trans-unit id="pd.datepicker.shortday.wed">
69
+ <source>Mi</source>
70
+ </trans-unit>
71
+ <trans-unit id="pd.datepicker.shortday.thi">
72
+ <source>Do</source>
73
+ </trans-unit>
74
+ <trans-unit id="pd.datepicker.shortday.fri">
75
+ <source>Fr</source>
76
+ </trans-unit>
77
+ <trans-unit id="pd.datepicker.shortday.sat">
78
+ <source>Sa</source>
79
+ </trans-unit>
80
+ <trans-unit id="pd.datepicker.shortday.sun">
81
+ <source>So</source>
82
+ </trans-unit>
83
+ </body>
84
+ </file>
85
+ </xliff>
package/xliff/de.xlf ADDED
@@ -0,0 +1,85 @@
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.datepicker.month.jan">
6
+ <source>Januar</source>
7
+ </trans-unit>
8
+ <trans-unit id="pd.datepicker.month.feb">
9
+ <source>Februar</source>
10
+ </trans-unit>
11
+ <trans-unit id="pd.datepicker.month.mar">
12
+ <source>März</source>
13
+ </trans-unit>
14
+ <trans-unit id="pd.datepicker.month.apr">
15
+ <source>April</source>
16
+ </trans-unit>
17
+ <trans-unit id="pd.datepicker.month.may">
18
+ <source>Mai</source>
19
+ </trans-unit>
20
+ <trans-unit id="pd.datepicker.month.jun">
21
+ <source>Juni</source>
22
+ </trans-unit>
23
+ <trans-unit id="pd.datepicker.month.jul">
24
+ <source>Juli</source>
25
+ </trans-unit>
26
+ <trans-unit id="pd.datepicker.month.aug">
27
+ <source>August</source>
28
+ </trans-unit>
29
+ <trans-unit id="pd.datepicker.month.sep">
30
+ <source>September</source>
31
+ </trans-unit>
32
+ <trans-unit id="pd.datepicker.month.oct">
33
+ <source>Oktober</source>
34
+ </trans-unit>
35
+ <trans-unit id="pd.datepicker.month.nov">
36
+ <source>November</source>
37
+ </trans-unit>
38
+ <trans-unit id="pd.datepicker.month.dec">
39
+ <source>Dezember</source>
40
+ </trans-unit>
41
+ <trans-unit id="pd.datepicker.day.sun">
42
+ <source>Sonntag</source>
43
+ </trans-unit>
44
+ <trans-unit id="pd.datepicker.day.mon">
45
+ <source>Montag</source>
46
+ </trans-unit>
47
+ <trans-unit id="pd.datepicker.day.tue">
48
+ <source>Dienstag</source>
49
+ </trans-unit>
50
+ <trans-unit id="pd.datepicker.day.wed">
51
+ <source>Mittwoch</source>
52
+ </trans-unit>
53
+ <trans-unit id="pd.datepicker.day.thi">
54
+ <source>Donnerstag</source>
55
+ </trans-unit>
56
+ <trans-unit id="pd.datepicker.day.fri">
57
+ <source>Freitag</source>
58
+ </trans-unit>
59
+ <trans-unit id="pd.datepicker.day.sat">
60
+ <source>Samstag</source>
61
+ </trans-unit>
62
+ <trans-unit id="pd.datepicker.shortday.mon">
63
+ <source>Mo</source>
64
+ </trans-unit>
65
+ <trans-unit id="pd.datepicker.shortday.tue">
66
+ <source>Di</source>
67
+ </trans-unit>
68
+ <trans-unit id="pd.datepicker.shortday.wed">
69
+ <source>Mi</source>
70
+ </trans-unit>
71
+ <trans-unit id="pd.datepicker.shortday.thi">
72
+ <source>Do</source>
73
+ </trans-unit>
74
+ <trans-unit id="pd.datepicker.shortday.fri">
75
+ <source>Fr</source>
76
+ </trans-unit>
77
+ <trans-unit id="pd.datepicker.shortday.sat">
78
+ <source>Sa</source>
79
+ </trans-unit>
80
+ <trans-unit id="pd.datepicker.shortday.sun">
81
+ <source>So</source>
82
+ </trans-unit>
83
+ </body>
84
+ </file>
85
+ </xliff>
package/xliff/en.xlf ADDED
@@ -0,0 +1,85 @@
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="en" source-language="dev" original="lit-localize-inputs" datatype="plaintext">
4
+ <body>
5
+ <trans-unit id="pd.datepicker.month.jan">
6
+ <source>Januar</source>
7
+ </trans-unit>
8
+ <trans-unit id="pd.datepicker.month.feb">
9
+ <source>Februar</source>
10
+ </trans-unit>
11
+ <trans-unit id="pd.datepicker.month.mar">
12
+ <source>März</source>
13
+ </trans-unit>
14
+ <trans-unit id="pd.datepicker.month.apr">
15
+ <source>April</source>
16
+ </trans-unit>
17
+ <trans-unit id="pd.datepicker.month.may">
18
+ <source>Mai</source>
19
+ </trans-unit>
20
+ <trans-unit id="pd.datepicker.month.jun">
21
+ <source>Juni</source>
22
+ </trans-unit>
23
+ <trans-unit id="pd.datepicker.month.jul">
24
+ <source>Juli</source>
25
+ </trans-unit>
26
+ <trans-unit id="pd.datepicker.month.aug">
27
+ <source>August</source>
28
+ </trans-unit>
29
+ <trans-unit id="pd.datepicker.month.sep">
30
+ <source>September</source>
31
+ </trans-unit>
32
+ <trans-unit id="pd.datepicker.month.oct">
33
+ <source>Oktober</source>
34
+ </trans-unit>
35
+ <trans-unit id="pd.datepicker.month.nov">
36
+ <source>November</source>
37
+ </trans-unit>
38
+ <trans-unit id="pd.datepicker.month.dec">
39
+ <source>Dezember</source>
40
+ </trans-unit>
41
+ <trans-unit id="pd.datepicker.day.sun">
42
+ <source>Sonntag</source>
43
+ </trans-unit>
44
+ <trans-unit id="pd.datepicker.day.mon">
45
+ <source>Montag</source>
46
+ </trans-unit>
47
+ <trans-unit id="pd.datepicker.day.tue">
48
+ <source>Dienstag</source>
49
+ </trans-unit>
50
+ <trans-unit id="pd.datepicker.day.wed">
51
+ <source>Mittwoch</source>
52
+ </trans-unit>
53
+ <trans-unit id="pd.datepicker.day.thi">
54
+ <source>Donnerstag</source>
55
+ </trans-unit>
56
+ <trans-unit id="pd.datepicker.day.fri">
57
+ <source>Freitag</source>
58
+ </trans-unit>
59
+ <trans-unit id="pd.datepicker.day.sat">
60
+ <source>Samstag</source>
61
+ </trans-unit>
62
+ <trans-unit id="pd.datepicker.shortday.mon">
63
+ <source>Mo</source>
64
+ </trans-unit>
65
+ <trans-unit id="pd.datepicker.shortday.tue">
66
+ <source>Di</source>
67
+ </trans-unit>
68
+ <trans-unit id="pd.datepicker.shortday.wed">
69
+ <source>Mi</source>
70
+ </trans-unit>
71
+ <trans-unit id="pd.datepicker.shortday.thi">
72
+ <source>Do</source>
73
+ </trans-unit>
74
+ <trans-unit id="pd.datepicker.shortday.fri">
75
+ <source>Fr</source>
76
+ </trans-unit>
77
+ <trans-unit id="pd.datepicker.shortday.sat">
78
+ <source>Sa</source>
79
+ </trans-unit>
80
+ <trans-unit id="pd.datepicker.shortday.sun">
81
+ <source>So</source>
82
+ </trans-unit>
83
+ </body>
84
+ </file>
85
+ </xliff>