iobroker.e-invoices 1.0.2 → 1.0.3
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 +13 -15
- package/io-package.json +14 -14
- package/package.json +2 -1
- package/src-www/src/i18n/en.ts +611 -0
- package/src-www/src/i18n/index.ts +135 -0
package/README.md
CHANGED
|
@@ -160,7 +160,7 @@ only offers with `GET /api/invoices?docType=quote`.
|
|
|
160
160
|
instance setting "Quotation number format" (`quoteNumberFormat`, default
|
|
161
161
|
`A-{YYYY}-{EMPLOYEE}-{SEQ}`). Offers never consume an invoice number — the
|
|
162
162
|
invoice sequence stays continuous (§ 14 Abs. 4 Nr. 4 UStG).
|
|
163
|
-
- **Own validity:** `validUntil` ("
|
|
163
|
+
- **Own validity:** `validUntil` ("Valid until") defaults to the issue date plus
|
|
164
164
|
30 days and is printed on the offer. Offers carry no retention date (§ 147 AO
|
|
165
165
|
concerns invoices) and no Leitweg-ID.
|
|
166
166
|
- **Plain sight PDF, never an e-invoice:** no CII XML, no PDF/A-3 container, no
|
|
@@ -192,8 +192,8 @@ In the PWA, offers have their own tab (**Angebote**): the list shows the state
|
|
|
192
192
|
(open, accepted, rejected, expired), records the customer's answer and turns an
|
|
193
193
|
accepted offer into an invoice draft in one click ("In Rechnung umwandeln").
|
|
194
194
|
"+ Neues Angebot" opens the wizard with the document type preselected — the same
|
|
195
|
-
wizard as for invoices, without the invoice-only fields: no "
|
|
196
|
-
Skonto, no payment terms, but a "
|
|
195
|
+
wizard as for invoices, without the invoice-only fields: no "Due date", no
|
|
196
|
+
Skonto, no payment terms, but a "Valid until" date that follows the issue date
|
|
197
197
|
(30 days) while it stays untouched. An invoice draft made from an offer links
|
|
198
198
|
back ("Zugrunde liegendes Angebot"), and the offer lists the invoices it became.
|
|
199
199
|
The wording of every screen comes from one table per document type
|
|
@@ -219,8 +219,8 @@ may stay empty (open end).
|
|
|
219
219
|
|
|
220
220
|
### Several companies
|
|
221
221
|
|
|
222
|
-
Every document is bound to the company profile it was written for (the
|
|
223
|
-
|
|
222
|
+
Every document is bound to the company profile it was written for (the company choice in
|
|
223
|
+
the wizard; a new document starts with the default company). The
|
|
224
224
|
binding is stored with the document, so it survives later changes of the profile. A Storno
|
|
225
225
|
credit note and an invoice made from a quotation take over the company of the original.
|
|
226
226
|
|
|
@@ -371,7 +371,7 @@ duty to **issue** them for B2B grows in stages. An e-invoice is a structured XML
|
|
|
371
371
|
## What this adapter is not
|
|
372
372
|
|
|
373
373
|
- **No bookkeeping.** There is no ledger, no chart of accounts, no VAT return (UStVA), no income
|
|
374
|
-
statement
|
|
374
|
+
statement for the tax return and no tax filing. The CSV, Excel and DATEV exports are lists for your tax
|
|
375
375
|
advisor or your bookkeeping software.
|
|
376
376
|
- **No e-mail delivery.** The adapter never sends an invoice or a reminder. You send them yourself
|
|
377
377
|
(the web app offers copy, `mailto:` links and PDF/CSV lists) and mark them as sent.
|
|
@@ -461,11 +461,7 @@ so it cannot share the compact process.
|
|
|
461
461
|
- compliance with the rules that apply to you (e.g. VAT law, GoBD, retention periods, GDPR),
|
|
462
462
|
- regular backups – also outside the adapter – and testing that they can be restored.
|
|
463
463
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
- die inhaltliche und rechnerische Richtigkeit deiner Rechnungen und Angebote sowie die Prüfung der Ergebnisse (z. B. mit einem Validator oder deinem Steuerberater),
|
|
467
|
-
- die Einhaltung der geltenden Vorschriften (u. a. UStG, GoBD, Aufbewahrungsfristen, DSGVO),
|
|
468
|
-
- regelmäßige Datensicherungen – auch außerhalb des Adapters – und deren Wiederherstellungstest.
|
|
464
|
+
The German original of this disclaimer is in [docs/haftungsausschluss.md](docs/haftungsausschluss.md).
|
|
469
465
|
|
|
470
466
|
## Standards and references
|
|
471
467
|
|
|
@@ -499,6 +495,12 @@ validation and hybrid embedding, `pdfkit`, `exceljs`, `jszip`,
|
|
|
499
495
|
Placeholder for the next version (at the beginning of the line):
|
|
500
496
|
### **WORK IN PROGRESS**
|
|
501
497
|
-->
|
|
498
|
+
### 1.0.3 (2026-10-04)
|
|
499
|
+
|
|
500
|
+
* (alex) Repository checker findings: the README is English only (the German disclaimer moved to `docs/haftungsausschluss.md`, German UI names in the text are translated), and the translations of the web app (`src-www/src/i18n`) are part of the npm package.
|
|
501
|
+
|
|
502
|
+
-->
|
|
503
|
+
|
|
502
504
|
### 1.0.2 (2026-10-04)
|
|
503
505
|
|
|
504
506
|
* (alex) System page: the topics are tabs inside the page (*Status*, *Backup*, *Firma*, *Druckvorlagen*) and only the chosen one is shown, instead of one long page with everything below each other.
|
|
@@ -519,10 +521,6 @@ validation and hybrid embedding, `pdfkit`, `exceljs`, `jszip`,
|
|
|
519
521
|
|
|
520
522
|
* (alex) Dark appearance of the web app: the status page offers *System* (follows the device, default), *Hell* and *Dunkel*. The choice is kept per device, applied before the first paint and, with *System*, follows the device while the app is open. PDFs and Excel files are not affected.
|
|
521
523
|
|
|
522
|
-
### 0.9.4 (2026-10-04)
|
|
523
|
-
|
|
524
|
-
* (alex) Invoice list: the period (quick choice, *Von*, *Bis*) sits in the same filter row as the other filters, with the labels above the two days.
|
|
525
|
-
|
|
526
524
|
Older changes: see [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
|
|
527
525
|
|
|
528
526
|
## License
|
package/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "e-invoices",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"localLinks": {
|
|
6
6
|
"_default": {
|
|
7
7
|
"link": "%protocol%://%bind%:%port%",
|
|
@@ -24,6 +24,19 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"news": {
|
|
27
|
+
"1.0.3": {
|
|
28
|
+
"en": "Repository checker findings: the README is English only (the German disclaimer moved to docs/haftungsausschluss.md) and the translations of the web app are part of the npm package.",
|
|
29
|
+
"de": "Befunde des Repository-Checkers: Die README ist nur noch englisch (der deutsche Haftungsausschluss liegt jetzt in docs/haftungsausschluss.md), und die Übersetzungen der Web-App sind Teil des npm-Pakets.",
|
|
30
|
+
"ru": "Замечания проверки репозитория: README теперь только на английском (немецкий отказ от ответственности перенесён в docs/haftungsausschluss.md), а переводы веб-приложения входят в пакет npm.",
|
|
31
|
+
"pt": "Resultados do verificador do repositório: o README está apenas em inglês (o aviso legal em alemão passou para docs/haftungsausschluss.md) e as traduções da aplicação web fazem parte do pacote npm.",
|
|
32
|
+
"nl": "Bevindingen van de repository-checker: de README is alleen Engels (de Duitse disclaimer staat nu in docs/haftungsausschluss.md) en de vertalingen van de web-app maken deel uit van het npm-pakket.",
|
|
33
|
+
"fr": "Remarques du vérificateur de dépôt : le README est uniquement en anglais (l'avertissement juridique allemand se trouve désormais dans docs/haftungsausschluss.md) et les traductions de l'application web font partie du paquet npm.",
|
|
34
|
+
"it": "Rilievi del verificatore del repository: il README è solo in inglese (la dichiarazione di esclusione di responsabilità in tedesco si trova ora in docs/haftungsausschluss.md) e le traduzioni della web app fanno parte del pacchetto npm.",
|
|
35
|
+
"es": "Hallazgos del verificador del repositorio: el README está solo en inglés (el aviso legal en alemán está ahora en docs/haftungsausschluss.md) y las traducciones de la aplicación web forman parte del paquete npm.",
|
|
36
|
+
"pl": "Uwagi weryfikatora repozytorium: README jest wyłącznie po angielsku (niemieckie zastrzeżenie prawne znajduje się teraz w docs/haftungsausschluss.md), a tłumaczenia aplikacji internetowej są częścią pakietu npm.",
|
|
37
|
+
"uk": "Зауваження перевірки репозиторію: README тепер лише англійською (німецька відмова від відповідальності перенесена до docs/haftungsausschluss.md), а переклади вебзастосунку входять до пакета npm.",
|
|
38
|
+
"zh-cn": "仓库检查器的发现:README 现在仅为英文(德文免责声明已移至 docs/haftungsausschluss.md),网页应用的翻译文件已包含在 npm 包中。"
|
|
39
|
+
},
|
|
27
40
|
"1.0.2": {
|
|
28
41
|
"en": "System page: the topics are tabs inside the page (Status, Backup, Company, Print templates) and only the chosen one is shown, instead of one long page with everything below each other.",
|
|
29
42
|
"de": "Systemseite: Die Themen sind Reiter innerhalb der Seite (Status, Backup, Firma, Druckvorlagen), und es wird nur das gewählte angezeigt – statt einer langen Seite mit allem untereinander.",
|
|
@@ -101,19 +114,6 @@
|
|
|
101
114
|
"pl": "Okres (od/do) dla listy faktur oraz eksportów do Excela, CSV i DATEV. Eksporty nie są już ucinane przy 500 fakturach i nigdy nie zawierają szkiców.",
|
|
102
115
|
"uk": "Період (від/до) для списку рахунків та експорту в Excel, CSV і DATEV. Експорт більше не обрізається на 500 рахунках і ніколи не містить чернеток.",
|
|
103
116
|
"zh-cn": "发票列表以及 Excel、CSV 和 DATEV 导出支持日期范围(起/止)。导出不再在 500 张发票处被截断,也不再包含草稿。"
|
|
104
|
-
},
|
|
105
|
-
"0.9.2": {
|
|
106
|
-
"en": "The automatic backup is on by default (daily) and keeps the newest 7 automatic backups; a warning shows when there is no current backup. An ioBroker backup (BackItUp) does not contain the invoice database without the adapter backup.",
|
|
107
|
-
"de": "Das automatische Backup ist standardmäßig an (täglich) und behält die neuesten 7 automatischen Backups; eine Warnung erscheint, wenn kein aktuelles Backup existiert. Eine ioBroker-Sicherung (BackItUp) enthält die Rechnungsdatenbank nicht ohne das Adapter-Backup.",
|
|
108
|
-
"ru": "Автоматическое резервное копирование включено по умолчанию (ежедневно) и хранит 7 последних автоматических копий; если актуальной копии нет, показывается предупреждение. Резервная копия ioBroker (BackItUp) не содержит базу счетов без резервной копии адаптера.",
|
|
109
|
-
"pt": "A cópia de segurança automática está ativa por predefinição (diária) e mantém as 7 cópias automáticas mais recentes; é mostrado um aviso quando não existe uma cópia atual. Uma cópia de segurança do ioBroker (BackItUp) não contém a base de dados de faturas sem a cópia do adaptador.",
|
|
110
|
-
"nl": "De automatische back-up staat standaard aan (dagelijks) en bewaart de 7 nieuwste automatische back-ups; er verschijnt een waarschuwing als er geen actuele back-up is. Een ioBroker-back-up (BackItUp) bevat de factuurdatabase niet zonder de adapter-back-up.",
|
|
111
|
-
"fr": "La sauvegarde automatique est activée par défaut (quotidienne) et conserve les 7 dernières sauvegardes automatiques ; un avertissement s'affiche lorsqu'il n'y a pas de sauvegarde récente. Une sauvegarde ioBroker (BackItUp) ne contient pas la base de données des factures sans la sauvegarde de l'adaptateur.",
|
|
112
|
-
"it": "Il backup automatico è attivo per impostazione predefinita (giornaliero) e conserva gli ultimi 7 backup automatici; viene mostrato un avviso se non esiste un backup recente. Un backup di ioBroker (BackItUp) non contiene il database delle fatture senza il backup dell'adattatore.",
|
|
113
|
-
"es": "La copia de seguridad automática está activada por defecto (diaria) y conserva las 7 copias automáticas más recientes; se muestra un aviso cuando no hay una copia actual. Una copia de seguridad de ioBroker (BackItUp) no contiene la base de datos de facturas sin la copia del adaptador.",
|
|
114
|
-
"pl": "Automatyczna kopia zapasowa jest domyślnie włączona (codziennie) i zachowuje 7 najnowszych kopii automatycznych; gdy brak aktualnej kopii, pojawia się ostrzeżenie. Kopia zapasowa ioBroker (BackItUp) nie zawiera bazy faktur bez kopii adaptera.",
|
|
115
|
-
"uk": "Автоматичне резервне копіювання за замовчуванням увімкнено (щодня), зберігаються 7 останніх автоматичних копій; якщо актуальної копії немає, показується попередження. Резервна копія ioBroker (BackItUp) не містить бази рахунків без резервної копії адаптера.",
|
|
116
|
-
"zh-cn": "自动备份默认开启(每天一次),并保留最新的 7 份自动备份;没有最新备份时会显示警告。没有适配器备份时,ioBroker 备份(BackItUp)不包含发票数据库。"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
"titleLang": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.e-invoices",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Create ZUGFeRD e-invoices as PWA with PDF, Excel export and backup",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "alex",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
|
|
68
68
|
"build/",
|
|
69
69
|
"www/",
|
|
70
|
+
"src-www/src/i18n/",
|
|
70
71
|
"assets/",
|
|
71
72
|
"io-package.json",
|
|
72
73
|
"LICENSE"
|
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* English wording of the web app (R7.2). The key is the German sentence the
|
|
3
|
+
* source uses in `t()`; `{name}` marks a value slot and must appear on both sides.
|
|
4
|
+
* `test/i18n-pwa.test.ts` checks that every sentence used in the sources is here.
|
|
5
|
+
*/
|
|
6
|
+
export const en: Record<string, string> = {
|
|
7
|
+
'(Entwurf)': '(draft)',
|
|
8
|
+
'+ Leere Position': '+ Empty item',
|
|
9
|
+
'+ Neu': '+ New',
|
|
10
|
+
'+ Neue Rechnung': '+ New invoice',
|
|
11
|
+
'+ Neue Vorlage': '+ New template',
|
|
12
|
+
'+ Neues Angebot': '+ New offer',
|
|
13
|
+
'+ Position': '+ Item',
|
|
14
|
+
'1. Mahnung': '1st dunning letter',
|
|
15
|
+
'1–30 Tage überfällig': '1–30 days overdue',
|
|
16
|
+
'2. Mahnung': '2nd dunning letter',
|
|
17
|
+
'30 Tage': '30 days',
|
|
18
|
+
'31–60 Tage überfällig': '31–60 days overdue',
|
|
19
|
+
'61–90 Tage überfällig': '61–90 days overdue',
|
|
20
|
+
'ACHTUNG: {n} Rechnungen, die nur hier existieren, verschwinden aus der Datenbank ({list}). Ihre Nummern werden nicht erneut vergeben.':
|
|
21
|
+
'WARNING: {n} invoices that exist only here will disappear from the database ({list}). Their numbers will not be issued again.',
|
|
22
|
+
'API nicht erreichbar': 'API not reachable',
|
|
23
|
+
'API-Token': 'API token',
|
|
24
|
+
'Ab Tag': 'From day',
|
|
25
|
+
Abbrechen: 'Cancel',
|
|
26
|
+
Abgelehnt: 'Declined',
|
|
27
|
+
'Abgelehnt am {date}': 'Declined on {date}',
|
|
28
|
+
Ablehnen: 'Decline',
|
|
29
|
+
'Ablehnung vermerkt.': 'Decline recorded.',
|
|
30
|
+
Abmelden: 'Sign out',
|
|
31
|
+
Abschlagsrechnung: 'Interim invoice',
|
|
32
|
+
'Abstand der Oberkante des Logos vom oberen Blattrand. Leer = 12,7 mm (bisheriger Wert).':
|
|
33
|
+
'Distance of the top edge of the logo from the top edge of the sheet. Empty = 12.7 mm (the previous position).',
|
|
34
|
+
'Abstand des Textes (Absenderzeile, Empfänger, Rechnungsdaten) vom oberen Blattrand. Leer = direkt unter dem Logo.':
|
|
35
|
+
'Distance of the text (sender line, recipient, invoice data) from the top edge of the sheet. Empty = directly below the logo.',
|
|
36
|
+
'Achtung: Das Datum {date} liegt in einem früheren Jahr. Die Nummer folgt dem Jahr des Datums und setzt die Nummernreihe dieses Jahres fort — die Nummern sind dann zeitlich nicht aufsteigend. Trotzdem ausstellen?':
|
|
37
|
+
"Attention: the date {date} is in an earlier year. The number follows the year of the date and continues that year's number series — the numbers are then not in time order. Issue anyway?",
|
|
38
|
+
'Achtung: Wiederherstellen ersetzt die gesamte Datenbank.': 'Caution: restoring replaces the whole database.',
|
|
39
|
+
'Achtung: {n} davon tragen ein Datum aus einem früheren Jahr; sie setzen die Nummernreihe dieses Jahres fort, die Nummern sind dann zeitlich nicht aufsteigend.':
|
|
40
|
+
"Attention: {n} of them carry a date from an earlier year; they continue that year's number series, so the numbers are not in time order.",
|
|
41
|
+
'Adress-Tagline': 'Address tagline',
|
|
42
|
+
Aktion: 'Action',
|
|
43
|
+
Aktuell: 'Current',
|
|
44
|
+
'Aktuell:': 'Current:',
|
|
45
|
+
'Alle Schreiben in einer PDF, eine Seite je Rechnung': 'All letters in one PDF, one page per invoice',
|
|
46
|
+
'Alle sichtbaren Entwürfe ausstellen': 'Issue all visible drafts',
|
|
47
|
+
'Als bezahlt markieren': 'Mark as paid',
|
|
48
|
+
'Als bezahlt markiert.': 'Marked as paid.',
|
|
49
|
+
'Als gemahnt markieren': 'Mark as reminded',
|
|
50
|
+
'Als versendet markieren': 'Mark as sent',
|
|
51
|
+
'Als versendet markiert': 'Marked as sent',
|
|
52
|
+
Alter: 'Age',
|
|
53
|
+
Alterung: 'Aging',
|
|
54
|
+
Alterungsliste: 'Aging list',
|
|
55
|
+
Angebot: 'Offer',
|
|
56
|
+
'Angebot als abgelehnt vermerken? Die Entscheidung ist endgültig.':
|
|
57
|
+
'Record the offer as declined? The decision is final.',
|
|
58
|
+
'Angebot als angenommen vermerken? Die Entscheidung ist endgültig und steht danach auf dem Angebot.':
|
|
59
|
+
'Record the offer as accepted? The decision is final and is then shown on the offer.',
|
|
60
|
+
'Angebot als angenommen vermerken? Die Entscheidung ist endgültig.':
|
|
61
|
+
'Record the offer as accepted? The decision is final.',
|
|
62
|
+
'Angebot ausgestellt.': 'Offer issued.',
|
|
63
|
+
'Angebot — Sicht-PDF ohne XML, eigene Nummer': 'Offer — plain PDF without XML, own number',
|
|
64
|
+
Angebote: 'Offers',
|
|
65
|
+
'Angebotsdatum:': 'Offer date:',
|
|
66
|
+
'Angebotsnr.:': 'Offer no.:',
|
|
67
|
+
Angenommen: 'Accepted',
|
|
68
|
+
'Angenommen am {date}.': 'Accepted on {date}.',
|
|
69
|
+
'Anlage gelöscht.': 'Attachment deleted.',
|
|
70
|
+
'Anlage „{name}" wirklich löschen?': 'Really delete the attachment “{name}”?',
|
|
71
|
+
Anlagen: 'Attachments',
|
|
72
|
+
Anmeldung: 'Sign in',
|
|
73
|
+
'Annahme vermerkt.': 'Acceptance recorded.',
|
|
74
|
+
Annehmen: 'Accept',
|
|
75
|
+
Ansehen: 'View',
|
|
76
|
+
Ansprechpartner: 'Contact person',
|
|
77
|
+
Anzahl: 'Count',
|
|
78
|
+
'Art.Nr.': 'Item no.',
|
|
79
|
+
'Aus Firma übernehmen': 'Take from company',
|
|
80
|
+
'Aus Kunden wählen': 'Choose from customers',
|
|
81
|
+
'Aus Positionen übernehmen': 'Take from items',
|
|
82
|
+
'Aus dem Positionskatalog übernehmen': 'Take from the item catalog',
|
|
83
|
+
'Aus: das Dokument bleibt schwarz/weiß, die Primärfarbe wird nirgends verwendet':
|
|
84
|
+
'Off: the document stays black and white, the primary color is not used anywhere',
|
|
85
|
+
'Ausgeglichen am {date}': 'Settled on {date}',
|
|
86
|
+
'Ausgestellt mit Layout „{name}“ (Version {version}), eingefroren am {date}.':
|
|
87
|
+
'Issued with layout “{name}” (version {version}), frozen on {date}.',
|
|
88
|
+
'Ausgestellt, aber ohne Datei: {n}': 'Issued but without file: {n}',
|
|
89
|
+
'Ausgestellte Rechnungen je Firma. Angebote, Entwürfe, Stornos und Gutschriften zählen nicht; eine stornierte Rechnung fällt heraus. Rechnungen von vor der Firmenzuordnung stehen in einer eigenen Zeile. Die Rechnungsnummer läuft für alle Firmen gemeinsam.':
|
|
90
|
+
'Issued invoices per company. Quotations, drafts, Storno documents and credit notes do not count; a cancelled invoice drops out. Invoices from before the company assignment have a row of their own. The invoice number runs across all companies.',
|
|
91
|
+
Ausrichtung: 'Alignment',
|
|
92
|
+
'Aussehen der PDF-Rechnung: Logo, Farben, Kopf- und Fußzeilen. Die inhaltlichen Positionen legst du unter {templates} oder {items} fest.':
|
|
93
|
+
'Look of the PDF invoice: logo, colors, header and footer. You define the content of the items under {templates} or {items}.',
|
|
94
|
+
Ausstellen: 'Issue',
|
|
95
|
+
'Ausstellen vergibt endgültig die Angebotsnummer aus dem eigenen Nummernkreis — die Rechnungsnummern bleiben davon unberührt.':
|
|
96
|
+
'Issuing assigns the offer number from its own number circle for good — invoice numbers are not affected.',
|
|
97
|
+
'Ausstellen vergibt endgültig die Rechnungsnummer — danach ist keine Änderung mehr möglich (GoBD).':
|
|
98
|
+
'Issuing assigns the invoice number for good — afterwards no change is possible (GoBD).',
|
|
99
|
+
Ausstellungsdatum: 'Issue date',
|
|
100
|
+
'Automatisches Backup ist aus (Instanz-Einstellungen: Backup-Intervall).':
|
|
101
|
+
'Automatic backup is off (instance settings: backup interval).',
|
|
102
|
+
'Automatisches Backup: alle {minutes} Minuten, behalten werden {keep}.':
|
|
103
|
+
'Automatic backup: every {minutes} minutes, {keep} are kept.',
|
|
104
|
+
Backup: 'Backup',
|
|
105
|
+
'Backup & Wiederherstellung': 'Backup & restore',
|
|
106
|
+
'Backup kann nicht gelesen werden: {message}': 'The backup cannot be read: {message}',
|
|
107
|
+
'Backup-Datei hochladen & wiederherstellen': 'Upload a backup file & restore',
|
|
108
|
+
'Backups konnten nicht geladen werden': 'Backups could not be loaded',
|
|
109
|
+
Bankname: 'Bank name',
|
|
110
|
+
Bearbeiten: 'Edit',
|
|
111
|
+
Begründung: 'Reason',
|
|
112
|
+
'Bei 0 % kein Skonto. Ohne eigenes Datum gilt das Fälligkeitsdatum. Der Skonto mindert den Zahlbetrag (BT-9) und steht als Bedingung mit Subject-Code AAK im XML.':
|
|
113
|
+
'At 0 % there is no cash discount. Without its own date the due date applies. The cash discount reduces the amount to pay (BT-9) and appears in the XML as a condition with subject code AAK.',
|
|
114
|
+
Belegart: 'Document type',
|
|
115
|
+
'Belege wie Lieferschein oder Nachweis lassen sich nach dem Speichern des Entwurfs anhängen: erst „Entwurf speichern“, dann hier hochladen. Beim Ausstellen wandern die Anlagen in PDF und XML.':
|
|
116
|
+
'Documents such as a delivery note or proof of work can be attached after the draft is saved: first “Save draft”, then upload here. On issue the attachments go into the PDF and the XML.',
|
|
117
|
+
'Belege zum Vorgang (Lieferschein, Nachweis, Bestellbestätigung) — PDF, PNG oder JPEG, höchstens {max} Dateien mit je {size}. Beim Ausstellen werden sie in die Rechnung eingebettet (PDF/A-3, im XML als BG-24).':
|
|
118
|
+
'Documents for the transaction (delivery note, proof of work, order confirmation) — PDF, PNG or JPEG, at most {max} files of {size} each. On issue they are embedded in the invoice (PDF/A-3, in the XML as BG-24).',
|
|
119
|
+
'Bericht gespeichert': 'Report saved',
|
|
120
|
+
'Bericht {n}': 'Report {n}',
|
|
121
|
+
Betrag: 'Amount',
|
|
122
|
+
Betreff: 'Subject',
|
|
123
|
+
Bezeichnung: 'Description',
|
|
124
|
+
Bis: 'To',
|
|
125
|
+
'Bitte einen Namen vergeben.': 'Please enter a name.',
|
|
126
|
+
'Bitte zuerst eine Datei auswählen.': 'Please choose a file first.',
|
|
127
|
+
'Bitte zuerst eine ZIP-Datei wählen': 'Please choose a ZIP file first',
|
|
128
|
+
'Bitte überweisen Sie den o.g. Betrag innerhalb von 14 Tagen auf unser Konto.':
|
|
129
|
+
'Please transfer the above amount to our account within 14 days.',
|
|
130
|
+
'Block {name}': 'Block {name}',
|
|
131
|
+
'Box {n}': 'Box {n}',
|
|
132
|
+
Brutto: 'Gross',
|
|
133
|
+
'CSV für die Buchhaltung': 'CSV for accounting',
|
|
134
|
+
'DATEV-Buchungssätze': 'DATEV postings',
|
|
135
|
+
'Danach nicht mehr änderbar.': 'Cannot be changed afterwards.',
|
|
136
|
+
'Daraus hervorgegangene Rechnung(en)': 'Resulting invoice(s)',
|
|
137
|
+
Darstellung: 'Appearance',
|
|
138
|
+
'Das Angebot ist am {date} verfallen.': 'The offer expired on {date}.',
|
|
139
|
+
'Das Angebot ist nicht als angenommen vermerkt. Trotzdem einen Rechnungsentwurf daraus erstellen?':
|
|
140
|
+
'The offer is not recorded as accepted. Create an invoice draft from it anyway?',
|
|
141
|
+
'Das Original liegt als {name} daneben.': 'The original is kept next to it as {name}.',
|
|
142
|
+
'Das letzte Backup ist {hours} Stunden alt.': 'The last backup is {hours} hours old.',
|
|
143
|
+
Datei: 'File',
|
|
144
|
+
'Datei nicht lesbar': 'File not readable',
|
|
145
|
+
'Dateien nachbauen': 'Rebuild files',
|
|
146
|
+
'Dateien:': 'Files:',
|
|
147
|
+
Datum: 'Date',
|
|
148
|
+
'Der Rechnungsbetrag ist sofort ohne Abzug fällig.': 'The invoice amount is due immediately without deduction.',
|
|
149
|
+
'Der Zeitraum gilt für das Rechnungsdatum, beide Tage zählen mit. Die Exporte enthalten alle passenden Rechnungen, aber keine Entwürfe.':
|
|
150
|
+
'The range applies to the invoice date, both days are included. The exports contain all matching invoices but no drafts.',
|
|
151
|
+
'Der nächste Schritt je überfälliger Rechnung. Der Adapter versendet nichts: Schreiben kopieren, mailen oder drucken und danach „Als gemahnt markieren“ — erst das setzt die Stufe weiter. Es entsteht kein XML.':
|
|
152
|
+
'The next step for each overdue invoice. The adapter sends nothing: copy, mail or print the letter and then use “Mark as reminded” — only that moves the level on. No XML is created.',
|
|
153
|
+
Detailzeile: 'Detail line',
|
|
154
|
+
'Die Nummer ist vergeben. Die fehlenden Dateien werden aus den gespeicherten Daten nachgebaut, vorhandene bleiben unberührt.':
|
|
155
|
+
'The number is taken. The missing files are rebuilt from the stored data, existing ones stay untouched.',
|
|
156
|
+
'Die PDF wird aus den unveränderten Rechnungsdaten mit der aktuellen Druckvorlage neu erzeugt. Nummer, Beträge und Daten der Rechnung ändern sich nicht. Das bisherige Dokument wird als .orig-<n>.pdf archiviert (nie überschrieben), das XML bleibt unverändert. Fortfahren?':
|
|
157
|
+
'The PDF is rendered again from the unchanged invoice data with the current print template. Number, amounts and dates of the invoice do not change. The previous document is archived as .orig-<n>.pdf (never overwritten), the XML stays unchanged. Continue?',
|
|
158
|
+
'Die PDF wird mit dem Layout neu erzeugt, mit dem das Dokument ausgestellt wurde. Nummer, Beträge und Daten ändern sich nicht. Das bisherige Dokument wird als .orig-<n>.pdf archiviert (nie überschrieben), das XML bleibt unverändert. Fortfahren?':
|
|
159
|
+
'The PDF is rendered again with the layout the document was issued with. Number, amounts and dates do not change. The previous document is archived as .orig-<n>.pdf (never overwritten), the XML stays unchanged. Continue?',
|
|
160
|
+
'Die Rechnung wird auf storniert gesetzt und als Gutschrift neu angelegt. Das Original bleibt unverändert erhalten. Fortfahren?':
|
|
161
|
+
'The invoice is set to cancelled and created anew as a credit note. The original is kept unchanged. Continue?',
|
|
162
|
+
'Die aktuelle Datenbank wird durch das Backup ersetzt.': 'The current database will be replaced by the backup.',
|
|
163
|
+
'Diese Rechnung ist ausgestellt: die Anlagen bleiben abrufbar, lassen sich aber nicht mehr ändern (GoBD).':
|
|
164
|
+
'This invoice has been issued: the attachments stay available but can no longer be changed (GoBD).',
|
|
165
|
+
'Dieser Monat': 'This month',
|
|
166
|
+
'Dieses Jahr': 'This year',
|
|
167
|
+
'Dieses Quartal': 'This quarter',
|
|
168
|
+
Dokumenttyp: 'Document title',
|
|
169
|
+
Download: 'Download',
|
|
170
|
+
'Download fehlgeschlagen (HTTP {status})': 'Download failed (HTTP {status})',
|
|
171
|
+
Druckvorlagen: 'Print templates',
|
|
172
|
+
Dunkel: 'Dark',
|
|
173
|
+
'E-Mail': 'E-mail',
|
|
174
|
+
'E-Mail (PDF)': 'E-mail (PDF)',
|
|
175
|
+
'E-Mail im Kopf': 'E-mail in the header',
|
|
176
|
+
'Eigener Zeitraum': 'Custom range',
|
|
177
|
+
'Ein Angebot ist keine E-Rechnung: geprüft werden nur die Pflichtangaben — es gibt kein XML und keine XSD-Prüfung.':
|
|
178
|
+
'An offer is not an e-invoice: only the mandatory fields are checked — there is no XML and no XSD check.',
|
|
179
|
+
'Ein Angebot ist keine E-Rechnung: gespeichert wird ein Sicht-PDF ohne XML, gemahnt wird nie und in den Buchhaltungsexporten taucht es nicht auf.':
|
|
180
|
+
'An offer is not an e-invoice: a plain PDF without XML is stored, it is never dunned and it does not appear in the accounting exports.',
|
|
181
|
+
'Ein Angebot kennt kein Zahlungsziel, keinen Skonto und keine Zahlungsbedingungen — es gilt bis zum Datum „Gültig bis".':
|
|
182
|
+
'An offer has no payment term, no cash discount and no payment conditions — it stands until the “Valid until” date.',
|
|
183
|
+
'Ein Preset pflegt das Fälligkeitsdatum automatisch (0 / 14 / 30 Tage nach Rechnungsdatum). Eigenes Datum im Feld „Fällig am" überschreibt das.':
|
|
184
|
+
'A preset maintains the due date automatically (0 / 14 / 30 days after the invoice date). A date of your own in the “Due on” field overrides it.',
|
|
185
|
+
'Eine ausgestellte Rechnung ist eine E-Rechnung: PDF/A-3 mit XML, eigenes Mahnwesen und Buchhaltungsexport.':
|
|
186
|
+
'An issued invoice is an e-invoice: PDF/A-3 with XML, its own dunning and accounting export.',
|
|
187
|
+
'Eingaben verwerfen und zur Übersicht?': 'Discard the input and go back to the overview?',
|
|
188
|
+
Einheit: 'Unit',
|
|
189
|
+
Einleitungssatz: 'Introductory sentence',
|
|
190
|
+
'Einmal anlegen — neue Rechnungen übernehmen diese Daten automatisch.':
|
|
191
|
+
'Enter once — new invoices take over these data automatically.',
|
|
192
|
+
Entfernen: 'Remove',
|
|
193
|
+
Entwurf: 'Draft',
|
|
194
|
+
'Entwurf endgültig verwerfen': 'Discard the draft for good',
|
|
195
|
+
'Entwurf endgültig verwerfen? Das lässt sich nicht rückgängig machen.':
|
|
196
|
+
'Discard the draft for good? This cannot be undone.',
|
|
197
|
+
'Entwurf gelöscht.': 'Draft deleted.',
|
|
198
|
+
'Entwurf kann nicht als bezahlt markiert werden': 'A draft cannot be marked as paid',
|
|
199
|
+
'Entwurf speichern': 'Save draft',
|
|
200
|
+
'Entwurf öffnen': 'Open draft',
|
|
201
|
+
'Erstellt einen Rechnungsentwurf mit Verweis auf dieses Angebot. Die Rechnungsnummer fällt erst beim Ausstellen.':
|
|
202
|
+
'Creates an invoice draft that refers to this offer. The invoice number is only assigned on issue.',
|
|
203
|
+
'Erzeugt die PDF aus den gespeicherten Daten neu (z. B. nach einer Layout-Korrektur). Nummer, Beträge und Daten bleiben unverändert, das Original wird archiviert.':
|
|
204
|
+
'Creates the PDF again from the stored data (e.g. after a layout correction). Number, amounts and dates stay unchanged, the original is archived.',
|
|
205
|
+
'Erzeugt die PDF mit dem Layout neu, mit dem das Dokument ausgestellt wurde – auch wenn die Druckvorlage inzwischen geändert wurde.':
|
|
206
|
+
'Renders the PDF again with the layout the document was issued with – even if the print template has been changed since.',
|
|
207
|
+
'Exakte Summen und Validierung (XSD, EN16931, BR-Regeln) erfolgen serverseitig beim Ausstellen.':
|
|
208
|
+
'Exact totals and validation (XSD, EN16931, BR rules) are done on the server when issuing.',
|
|
209
|
+
'Excel-Kopie': 'Excel copy',
|
|
210
|
+
'Excel-Liste': 'Excel list',
|
|
211
|
+
Farbschema: 'Color scheme',
|
|
212
|
+
'Fehlt die Kundennummer (BT-10), trage sie unten ein — ohne sie ist die Rechnung nicht ausstellbar.':
|
|
213
|
+
'If the customer number (BT-10) is missing, enter it below — without it the invoice cannot be issued.',
|
|
214
|
+
Firma: 'Company',
|
|
215
|
+
'Firma (Verkäufer-Stammdaten)': 'Company (seller master data)',
|
|
216
|
+
'Firmen-Fußzeile (4 Boxen)': 'Company footer (4 boxes)',
|
|
217
|
+
Firmenname: 'Company name',
|
|
218
|
+
Fortsetzen: 'Resume',
|
|
219
|
+
Fußzeile: 'Footer',
|
|
220
|
+
'Fußzeilen-Boxen (Rechnung unten)': 'Footer boxes (bottom of the invoice)',
|
|
221
|
+
Fällig: 'Due',
|
|
222
|
+
'Fällig am': 'Due on',
|
|
223
|
+
'Fällig am:': 'Due on:',
|
|
224
|
+
'Gemahnt: Stufe {level} am {date}.': 'Reminded: level {level} on {date}.',
|
|
225
|
+
Gesamt: 'Total',
|
|
226
|
+
Gesamtbetrag: 'Total amount',
|
|
227
|
+
'Gesichert: {name}': 'Backed up: {name}',
|
|
228
|
+
'Gesicherte Backups': 'Stored backups',
|
|
229
|
+
'Gespeichert.': 'Saved.',
|
|
230
|
+
'Gespeichert: {name}': 'Saved: {name}',
|
|
231
|
+
'Gold (§4 Nr. 1a UStG)': 'Gold (§4 No. 1a UStG)',
|
|
232
|
+
'Grund der Ablehnung (erscheint auf dem Angebot):': 'Reason for declining (shown on the offer):',
|
|
233
|
+
'Grund für das Neu rendern (wird protokolliert, z. B. "Layout-Korrektur"):':
|
|
234
|
+
'Reason for rendering again (is logged, e.g. "layout correction"):',
|
|
235
|
+
'Grund für den Storno (erscheint auf der Gutschrift):': 'Reason for the cancellation (shown on the credit note):',
|
|
236
|
+
Größe: 'Size',
|
|
237
|
+
Gutschrift: 'Credit note',
|
|
238
|
+
'Gültig bis:': 'Valid until:',
|
|
239
|
+
'Gültig: keine Fehler.': 'Valid: no errors.',
|
|
240
|
+
'Gültig: keine offenen Pflichtangaben.': 'Valid: no open mandatory fields.',
|
|
241
|
+
'Haftungsausschluss: Das Programm wird unentgeltlich und ohne Gewähr bereitgestellt und ersetzt keine Steuer- oder Rechtsberatung. Für die Richtigkeit der Rechnungen, die Einhaltung der Vorschriften und die Datensicherung bist du selbst verantwortlich. Details im README.':
|
|
242
|
+
'Disclaimer: this software is provided free of charge and without warranty and is not tax or legal advice. You are responsible for the correctness of your invoices, for compliance with the rules that apply to you and for your backups. See the README for details.',
|
|
243
|
+
Hell: 'Light',
|
|
244
|
+
'Hinweis: der Bericht konnte nicht gespeichert werden (Adapter-Log).':
|
|
245
|
+
'Note: the report could not be saved (adapter log).',
|
|
246
|
+
Hochladen: 'Upload',
|
|
247
|
+
'Hochladen & wiederherstellen': 'Upload & restore',
|
|
248
|
+
'Höchstens {max} Anlagen je Rechnung (bisher {n}).': 'At most {max} attachments per invoice ({n} so far).',
|
|
249
|
+
'Im Backup:': 'In the backup:',
|
|
250
|
+
'In Rechnung umwandeln': 'Convert to invoice',
|
|
251
|
+
Jahr: 'Year',
|
|
252
|
+
'Je Kunde': 'By customer',
|
|
253
|
+
'Jetzt sichern': 'Back up now',
|
|
254
|
+
'Keine Angebote gefunden.': 'No offers found.',
|
|
255
|
+
'Keine Anlagen an dieser Rechnung.': 'No attachments on this invoice.',
|
|
256
|
+
'Keine Basisvorlage vorhanden': 'No base template available',
|
|
257
|
+
'Keine Mahnvorschläge.': 'No dunning suggestions.',
|
|
258
|
+
'Keine Rechnungen gefunden.': 'No invoices found.',
|
|
259
|
+
'Keine Rechnungen im Zeitraum.': 'No invoices in this period.',
|
|
260
|
+
'Keine offenen Posten.': 'No open items.',
|
|
261
|
+
'Kleinbetrag (§ 19 UStG)': 'Small business (§ 19 UStG)',
|
|
262
|
+
'Kopfzusatz (z.B. Geschäftsführer)': 'Header addition (e.g. managing director)',
|
|
263
|
+
Kopiert: 'Copied',
|
|
264
|
+
Kostenvoranschlag: 'Cost estimate',
|
|
265
|
+
'Kraftfahrzeug (§4 Nr. 1b UStG)': 'Motor vehicle (§4 No. 1b UStG)',
|
|
266
|
+
Kunde: 'Customer',
|
|
267
|
+
Kunden: 'Customers',
|
|
268
|
+
'Kunden wirklich löschen?': 'Really delete this customer?',
|
|
269
|
+
'Kundennr. (BT-10)': 'Customer no. (BT-10)',
|
|
270
|
+
'Kundennummer (BT-10) *': 'Customer number (BT-10) *',
|
|
271
|
+
Käufer: 'Buyer',
|
|
272
|
+
'Lade Backups…': 'Loading backups…',
|
|
273
|
+
'Lade Entwurf…': 'Loading draft…',
|
|
274
|
+
'Lade Firmendaten…': 'Loading company data…',
|
|
275
|
+
'Lade Kunden…': 'Loading customers…',
|
|
276
|
+
'Lade Mahnwesen…': 'Loading dunning…',
|
|
277
|
+
'Lade Offene Posten…': 'Loading open items…',
|
|
278
|
+
'Lade Positionen…': 'Loading items…',
|
|
279
|
+
'Lade Rechnungsvorlagen…': 'Loading invoice templates…',
|
|
280
|
+
'Lade Umsatz…': 'Loading revenue…',
|
|
281
|
+
'Lade Vorlagen…': 'Loading templates…',
|
|
282
|
+
'Lade …': 'Loading …',
|
|
283
|
+
'Lade…': 'Loading…',
|
|
284
|
+
Land: 'Country',
|
|
285
|
+
'Layout wie ausgestellt': 'layout as issued',
|
|
286
|
+
'Leer lassen = automatisch aus den Firmendaten (Adresse, Kontakt, Bank, Steuer). Je Box eine Zeile pro Zeile, Ausrichtung pro Box.':
|
|
287
|
+
'Leave empty = automatic from the company data (address, contact, bank, tax). One line per line in each box, alignment per box.',
|
|
288
|
+
'Leer lassen: es wird kein Name gedruckt': 'Leave empty: no name is printed',
|
|
289
|
+
'Legt eine Rechnungsvorlage mit diesen Positionen, Terminen und Zahlungsbedingungen an. Käufer und Datum werden nicht übernommen.':
|
|
290
|
+
'Creates an invoice template with these items, dates and payment conditions. Buyer and date are not taken over.',
|
|
291
|
+
Leistungszeitraum: 'Service period',
|
|
292
|
+
'Leistungszeitraum:': 'Service period:',
|
|
293
|
+
'Letzter Monat': 'Last month',
|
|
294
|
+
'Letztes Jahr': 'Last year',
|
|
295
|
+
'Letztes Quartal': 'Last quarter',
|
|
296
|
+
'Lieferdatum:': 'Delivery date:',
|
|
297
|
+
Links: 'Left',
|
|
298
|
+
Liste: 'List',
|
|
299
|
+
Login: 'Login',
|
|
300
|
+
'Logo (PNG/JPEG, max. 2 MB)': 'Logo (PNG/JPEG, max. 2 MB)',
|
|
301
|
+
'Logo auf allen Seiten anzeigen': 'Show the logo on all pages',
|
|
302
|
+
'Logo-Abstand oben (mm)': 'Logo distance from top (mm)',
|
|
303
|
+
'Logo-Breite (mm)': 'Logo width (mm)',
|
|
304
|
+
'Logo-Position': 'Logo position',
|
|
305
|
+
'Logo-Upload fehlgeschlagen': 'Logo upload failed',
|
|
306
|
+
Logout: 'Logout',
|
|
307
|
+
Löschen: 'Delete',
|
|
308
|
+
'Löschen fehlgeschlagen': 'Deleting failed',
|
|
309
|
+
Mahnstufe: 'Dunning level',
|
|
310
|
+
Mahnwesen: 'Dunning',
|
|
311
|
+
Menge: 'Quantity',
|
|
312
|
+
'Mindestens eine Position mit Bezeichnung nötig.': 'At least one item with a description is required.',
|
|
313
|
+
'Mit ausgestelltem Layout neu rendern': 'Re-render with issued layout',
|
|
314
|
+
'Mit „bis" steht der Zeitraum als Leistungszeitraum auf dem Angebot.':
|
|
315
|
+
'With “to” the period appears as the service period on the offer.',
|
|
316
|
+
'Mit „bis" wird der Zeitraum als BT-74/BT-75 in die Rechnung geschrieben.':
|
|
317
|
+
'With “to” the period is written into the invoice as BT-74/BT-75.',
|
|
318
|
+
'Mitarbeiter-Kürzel (für Nr. {format})': 'Employee code (for no. {format})',
|
|
319
|
+
Name: 'Name',
|
|
320
|
+
'Name (Anzeige)': 'Name (display)',
|
|
321
|
+
'Name A–Z': 'Name A–Z',
|
|
322
|
+
'Name Z–A': 'Name Z–A',
|
|
323
|
+
'Name der Vorlage:': 'Name of the template:',
|
|
324
|
+
Netto: 'Net',
|
|
325
|
+
'Neu dazu:': 'New:',
|
|
326
|
+
'Neu gerendert ({n})': 'Rendered again ({n})',
|
|
327
|
+
'Neu rendern': 'Render again',
|
|
328
|
+
'Neue Position': 'New item',
|
|
329
|
+
'Neue Vorlage': 'New template',
|
|
330
|
+
'Neuer Kunde': 'New customer',
|
|
331
|
+
'Nicht angemeldet — bitte Token auf der Login-Seite eintragen':
|
|
332
|
+
'Not signed in — please enter the token on the login page',
|
|
333
|
+
'Noch kein Backup. Ohne Adapter-Backup enthält eine ioBroker-Sicherung (z. B. BackItUp) die Rechnungsdatenbank nicht — bitte jetzt sichern.':
|
|
334
|
+
'No backup yet. Without an adapter backup an ioBroker backup (e.g. BackItUp) does not contain the invoice database — please back up now.',
|
|
335
|
+
'Noch keine Anlagen.': 'No attachments yet.',
|
|
336
|
+
'Noch keine Backups.': 'No backups yet.',
|
|
337
|
+
'Noch keine Kunden.': 'No customers yet.',
|
|
338
|
+
'Noch keine Positionen.': 'No items yet.',
|
|
339
|
+
'Noch keine Vorlagen.': 'No templates yet.',
|
|
340
|
+
Notiz: 'Note',
|
|
341
|
+
Notizen: 'Notes',
|
|
342
|
+
Nummer: 'Number',
|
|
343
|
+
'Nummer absteigend': 'Number descending',
|
|
344
|
+
'Nummer aufsteigend': 'Number ascending',
|
|
345
|
+
'Nur Entwürfe sind änderbar (diese Rechnung ist {status}).':
|
|
346
|
+
'Only drafts can be changed (this invoice is {status}).',
|
|
347
|
+
'Nur „von" angeben, wenn die Leistung an einem Tag erbracht wurde.':
|
|
348
|
+
'Enter only “from” if the service was provided on a single day.',
|
|
349
|
+
Offen: 'Open',
|
|
350
|
+
'Offene Posten': 'Open items',
|
|
351
|
+
'Ohne Haken erscheint das Logo nur auf der ersten Seite': 'Unchecked, the logo appears on the first page only',
|
|
352
|
+
'Ohne Haken: der Titel wird in der Textfarbe gesetzt': 'Unchecked: the title is set in the text color',
|
|
353
|
+
'Ohne Haken: nur die linke Hälfte der Kopfzeile ist eingefärbt, die rechte bleibt grau':
|
|
354
|
+
'Unchecked: only the left half of the header row is colored, the right half stays gray',
|
|
355
|
+
'Ohne Token vertraut die API dem lokalen Netzwerk.': 'Without a token the API trusts the local network.',
|
|
356
|
+
Original: 'Original',
|
|
357
|
+
Ort: 'City',
|
|
358
|
+
'PDF ansehen': 'View PDF',
|
|
359
|
+
'PDF neu erzeugt.': 'PDF created again.',
|
|
360
|
+
'PDF wurde gespeichert. Die Mail wurde an {to} vorbereitet – bitte die PDF aus dem Download-Ordner anhängen.':
|
|
361
|
+
'The PDF was saved. The mail was prepared for {to} — please attach the PDF from the download folder.',
|
|
362
|
+
'PDF wurde gespeichert. Für diesen Kunden ist keine E-Mail hinterlegt – bitte im Mailfenster eintragen und die PDF anhängen.':
|
|
363
|
+
'The PDF was saved. No e-mail address is stored for this customer — please enter it in the mail window and attach the PDF.',
|
|
364
|
+
PLZ: 'ZIP',
|
|
365
|
+
Pflicht: 'required',
|
|
366
|
+
'Pflicht im deutschen E-Rechnungs-Profil': 'Required in the German e-invoice profile',
|
|
367
|
+
'Pflichtangaben prüfen': 'Check mandatory fields',
|
|
368
|
+
'Platzhalter: {number} {customer} {issueDate} {dueDate} {amount} {days} {deadline} {seller}. „Ab Tag“ ist die Zahl der Tage nach Fälligkeit, ab der die Stufe vorgeschlagen wird; sie muss von Stufe zu Stufe wachsen. Gebühren und Verzugszinsen sind absichtlich nicht vorbelegt.':
|
|
369
|
+
'Placeholders: {number} {customer} {issueDate} {dueDate} {amount} {days} {deadline} {seller}. “From day” is the number of days after the due date from which the level is suggested; it has to rise from level to level. Fees and default interest are deliberately not preset.',
|
|
370
|
+
'Position entfernen': 'Remove item',
|
|
371
|
+
'Position hinzufügen': 'Add item',
|
|
372
|
+
'Position wirklich löschen?': 'Really delete this item?',
|
|
373
|
+
'Position {n}': 'Item {n}',
|
|
374
|
+
Positionen: 'Items',
|
|
375
|
+
'Positionen & Termine': 'Items & dates',
|
|
376
|
+
'Positionen durch "{name}" ersetzen?': 'Replace the items with "{name}"?',
|
|
377
|
+
Posten: 'Entries',
|
|
378
|
+
'Preis netto': 'Net price',
|
|
379
|
+
Primärfarbe: 'Primary color',
|
|
380
|
+
'Primärfarbe verwenden': 'Use the primary color',
|
|
381
|
+
'Probedruck mit': 'Test print with',
|
|
382
|
+
'Produkte und Dienstleistungen für die Rechnungsstellung.': 'Products and services for invoicing.',
|
|
383
|
+
Profilname: 'Profile name',
|
|
384
|
+
Prüfen: 'Review',
|
|
385
|
+
'Prüfen & Ausstellen': 'Review & issue',
|
|
386
|
+
Rabatt: 'Discount',
|
|
387
|
+
'Rabatt %': 'Discount %',
|
|
388
|
+
'Rabatt €': 'Discount €',
|
|
389
|
+
Rechnung: 'Invoice',
|
|
390
|
+
'Rechnung — E-Rechnung mit XML, Mahnwesen, Export': 'Invoice — e-invoice with XML, dunning, export',
|
|
391
|
+
Rechnungen: 'Invoices',
|
|
392
|
+
'Rechnungsdatum:': 'Invoice date:',
|
|
393
|
+
'Rechnungsentwurf erstellt – Nummer und PDF folgen beim Ausstellen.':
|
|
394
|
+
'Invoice draft created — number and PDF follow on issue.',
|
|
395
|
+
'Rechnungsentwurf erstellt – Nummer und PDF folgen beim Ausstellen:':
|
|
396
|
+
'Invoice draft created — number and PDF follow on issue:',
|
|
397
|
+
'Rechnungsnr.:': 'Invoice no.:',
|
|
398
|
+
'Rechnungstitel in Akzentfarbe': 'Invoice title in the accent color',
|
|
399
|
+
Rechnungsvorlagen: 'Invoice templates',
|
|
400
|
+
Rechts: 'Right',
|
|
401
|
+
'Rendere neu…': 'Rendering again…',
|
|
402
|
+
'Restore fehlgeschlagen': 'Restore failed',
|
|
403
|
+
'Reverse Charge (§13b UStG)': 'Reverse charge (§13b UStG)',
|
|
404
|
+
Schema: 'Schema',
|
|
405
|
+
Schlussrechnung: 'Final invoice',
|
|
406
|
+
Schlusssatz: 'Closing sentence',
|
|
407
|
+
'Seitenzahlen (ab 2 Seiten)': 'Page numbers (from 2 pages)',
|
|
408
|
+
'Sichern fehlgeschlagen': 'Backup failed',
|
|
409
|
+
'Skonto %': 'Cash discount %',
|
|
410
|
+
'Skonto (Rabatt bei früher Zahlung)': 'Cash discount (reduction for early payment)',
|
|
411
|
+
'Skonto bis': 'Cash discount until',
|
|
412
|
+
'Skonto {percent} % noch möglich bis {date}': 'Cash discount of {percent} % still possible until {date}',
|
|
413
|
+
Sortieren: 'Sort',
|
|
414
|
+
Sortierung: 'Sorting',
|
|
415
|
+
Speichern: 'Save',
|
|
416
|
+
'Speichern fehlgeschlagen': 'Saving failed',
|
|
417
|
+
Standard: 'Default',
|
|
418
|
+
Standardtext: 'default text',
|
|
419
|
+
'Standardtext wiederherstellen': 'Restore default text',
|
|
420
|
+
Status: 'Status',
|
|
421
|
+
Steuerbefreiung: 'Tax exemption',
|
|
422
|
+
Steuernummer: 'Tax number',
|
|
423
|
+
Stichtag: 'As of',
|
|
424
|
+
Storno: 'Cancellation',
|
|
425
|
+
Straße: 'Street',
|
|
426
|
+
'Suche (Name, Nummer, Ort)…': 'Search (name, number, city)…',
|
|
427
|
+
'Suche (Nr, Kunde, Position)…': 'Search (no., customer, item)…',
|
|
428
|
+
'Summe netto': 'Total net',
|
|
429
|
+
System: 'System',
|
|
430
|
+
'Tabellenkopf komplett in Akzentfarbe': 'Whole table header in the accent color',
|
|
431
|
+
Tage: 'Days',
|
|
432
|
+
Telefon: 'Phone',
|
|
433
|
+
Text: 'Text',
|
|
434
|
+
'Text kopieren': 'Copy text',
|
|
435
|
+
'Text-Abstand oben (mm)': 'Text distance from top (mm)',
|
|
436
|
+
'Texte der Stufen': 'Texts of the levels',
|
|
437
|
+
Textfarbe: 'Text color',
|
|
438
|
+
'Tipp: Unter {link} eine Vorlage anlegen, um wiederkehrende Rechnungen nicht jedes Mal neu einzutippen.':
|
|
439
|
+
'Tip: create a template under {link} so you do not have to retype recurring invoices every time.',
|
|
440
|
+
'Tipp: Unter {link} einmal anlegen, dann hier auswählbar.':
|
|
441
|
+
'Tip: enter it once under {link}, then you can choose it here.',
|
|
442
|
+
'Token aus den Adapter-Einstellungen (Instanz e-invoices.0 → API-Token).':
|
|
443
|
+
'Token from the adapter settings (instance e-invoices.0 → API token).',
|
|
444
|
+
'Trotzdem wiederherstellen?': 'Restore anyway?',
|
|
445
|
+
Typ: 'Type',
|
|
446
|
+
USt: 'VAT',
|
|
447
|
+
'USt %': 'VAT %',
|
|
448
|
+
'USt {rate} % auf {net}': 'VAT {rate} % on {net}',
|
|
449
|
+
'USt-IdNr.': 'VAT ID',
|
|
450
|
+
Umsatz: 'Revenue',
|
|
451
|
+
'Umsatz je Firma': 'Revenue per company',
|
|
452
|
+
'Umschalten aufsteigend/absteigend': 'Toggle ascending/descending',
|
|
453
|
+
'Umschalten fehlgeschlagen': 'Switching failed',
|
|
454
|
+
'Unbekannte Route.': 'Unknown route.',
|
|
455
|
+
'Unbezahlte, ausgestellte Rechnungen. Angebote, Entwürfe, Stornos und Gutschriften zählen nicht; Teilzahlungen gibt es nicht, der offene Betrag ist der Bruttobetrag.':
|
|
456
|
+
'Unpaid, issued invoices. Offers, drafts, cancellations and credit notes do not count; there are no part payments, the open amount is the gross amount.',
|
|
457
|
+
'Ungesendeter {type}-Entwurf vom {date} gefunden.': 'Found an unsent {type} draft from {date}.',
|
|
458
|
+
'Unter {link} kannst du den Katalog pflegen.': 'You can maintain the catalog under {link}.',
|
|
459
|
+
'Unterschrift (Name, optional)': 'Signature (name, optional)',
|
|
460
|
+
Validieren: 'Validate',
|
|
461
|
+
'Validiere…': 'Validating…',
|
|
462
|
+
'Validierungsberichte ({n})': 'Validation reports ({n})',
|
|
463
|
+
Verfallen: 'Expired',
|
|
464
|
+
'Verknüpfte Firma (für Vorschau)': 'Linked company (for the preview)',
|
|
465
|
+
Verkäufer: 'Seller',
|
|
466
|
+
Versandstatus: 'Shipping status',
|
|
467
|
+
Version: 'Version',
|
|
468
|
+
Verwerfen: 'Discard',
|
|
469
|
+
Vollrechnung: 'Full invoice',
|
|
470
|
+
Von: 'From',
|
|
471
|
+
'Vor dem Wiederherstellen wird der aktuelle Stand automatisch als "prerestore"-Backup gesichert.':
|
|
472
|
+
'Before restoring, the current state is saved automatically as a "prerestore" backup.',
|
|
473
|
+
'Vorlage erstellen': 'Create template',
|
|
474
|
+
'Vorlage gelöscht.': 'Template deleted.',
|
|
475
|
+
'Vorlage löschen? Bereits ausgestellte Rechnungen bleiben unverändert.':
|
|
476
|
+
'Delete the template? Invoices that were already issued stay unchanged.',
|
|
477
|
+
'Vorlage „{name}" angelegt –': 'Template “{name}” created —',
|
|
478
|
+
'Vorlagen konnten nicht geladen werden': 'Templates could not be loaded',
|
|
479
|
+
Vorschau: 'Preview',
|
|
480
|
+
'Vorschau (Entwurf)': 'Preview (draft)',
|
|
481
|
+
'Vorschau fehlgeschlagen': 'Preview failed',
|
|
482
|
+
'Vorschau für {name}:': 'Preview for {name}:',
|
|
483
|
+
Webseite: 'Website',
|
|
484
|
+
Weiter: 'Next',
|
|
485
|
+
'Weiter bearbeiten?': 'Continue editing?',
|
|
486
|
+
'Wiederhergestellt: {n} Rechnungen, {templates} Vorlagen': 'Restored: {n} invoices, {templates} templates',
|
|
487
|
+
Wiederherstellen: 'Restore',
|
|
488
|
+
'Wiederkehrende Rechnung': 'Recurring invoice',
|
|
489
|
+
'Wiederkehrende Rechnungen (Wartung, Honorar, Abo) einmal anlegen und im Assistenten übernehmen. Käufer und Datum werden bewusst nicht gespeichert.':
|
|
490
|
+
'Enter recurring invoices (maintenance, fee, subscription) once and take them over in the wizard. Buyer and date are deliberately not stored.',
|
|
491
|
+
'Wirklich ausstellen? Danach ist keine Änderung mehr möglich (GoBD).':
|
|
492
|
+
'Really issue? Afterwards no change is possible (GoBD).',
|
|
493
|
+
'Wirklich ausstellen? Das Angebot bekommt seine Nummer aus dem Angebotsnummernkreis und die PDF wird geschrieben. Danach ist keine Änderung mehr möglich.':
|
|
494
|
+
'Really issue? The offer gets its number from the offer number circle and the PDF is written. Afterwards no change is possible.',
|
|
495
|
+
'ZIP mit Datenbank (dump.json), allen PDFs/XML/XLSX/Logos und Manifest mit SHA-256-Prüfsummen.':
|
|
496
|
+
'ZIP with the database (dump.json), all PDFs/XML/XLSX/logos and a manifest with SHA-256 checksums.',
|
|
497
|
+
'Zahlbar innerhalb von 14 Tagen': 'Payable within 14 days',
|
|
498
|
+
'Zahlbar innerhalb von 30 Tagen nach Rechnungsdatum ohne Abzug.':
|
|
499
|
+
'Payable within 30 days of the invoice date without deduction.',
|
|
500
|
+
'Zahlbetrag bei Skonto': 'Amount to pay with cash discount',
|
|
501
|
+
'Zahlung zurückgenommen.': 'Payment withdrawn.',
|
|
502
|
+
Zahlungsbedingungen: 'Payment conditions',
|
|
503
|
+
Zahlungserinnerung: 'Payment reminder',
|
|
504
|
+
'Zahlungserinnerung – der Versand bleibt eine bewusste Handlung.':
|
|
505
|
+
'Payment reminder — sending stays a deliberate act.',
|
|
506
|
+
'Zahlungsweise geprüft': 'Payment method checked',
|
|
507
|
+
'Zahlungsweise geprüft.': 'Payment method checked.',
|
|
508
|
+
Zahlungsziel: 'Payment deadline',
|
|
509
|
+
'Zahlungsziel (Tage)': 'Payment deadline (days)',
|
|
510
|
+
'Zahlungsziel:': 'Payment term:',
|
|
511
|
+
Zeitraum: 'Period',
|
|
512
|
+
'Zeitraum: alle': 'Period: all',
|
|
513
|
+
Zentriert: 'Centered',
|
|
514
|
+
'Zugrunde liegendes Angebot': 'Underlying offer',
|
|
515
|
+
Zurück: 'Back',
|
|
516
|
+
Zustand: 'State',
|
|
517
|
+
'abgelehnt am {date}': 'declined on {date}',
|
|
518
|
+
absteigend: 'descending',
|
|
519
|
+
'aktuelles Layout': 'current layout',
|
|
520
|
+
'aktuelles Layout (zuvor nicht eingefroren)': 'current layout (not frozen before)',
|
|
521
|
+
alle: 'all',
|
|
522
|
+
'alle Firmen': 'all companies',
|
|
523
|
+
am: 'on',
|
|
524
|
+
'angenommen am {date}': 'accepted on {date}',
|
|
525
|
+
aufsteigend: 'ascending',
|
|
526
|
+
'aus Zahlungsbedingung': 'from the payment conditions',
|
|
527
|
+
ausgestellt: 'issued',
|
|
528
|
+
automatisch: 'automatic',
|
|
529
|
+
bezahlt: 'paid',
|
|
530
|
+
'bis (optional)': 'to (optional)',
|
|
531
|
+
'bleibt beim Bearbeiten erhalten, der Nummernkreis hängt an ihr.':
|
|
532
|
+
'is kept when editing, the number circle depends on it.',
|
|
533
|
+
'davon überfällig': 'of which overdue',
|
|
534
|
+
'der hochgeladenen Datei': 'the uploaded file',
|
|
535
|
+
'eigener Text …': 'own text …',
|
|
536
|
+
'eigener Zahlungstext': 'own payment text',
|
|
537
|
+
'ein Angebot ist keine E-Rechnung: es gibt kein XML und keine XSD-Prüfung.':
|
|
538
|
+
'an offer is not an e-invoice: there is no XML and no XSD check.',
|
|
539
|
+
fehlt: 'missing',
|
|
540
|
+
'gültig bis {date}': 'valid until {date}',
|
|
541
|
+
herunterladen: 'download',
|
|
542
|
+
'je Angebot': 'per offer',
|
|
543
|
+
'je Rechnung': 'per invoice',
|
|
544
|
+
'jetzt bearbeiten': 'edit now',
|
|
545
|
+
keine: 'none',
|
|
546
|
+
'keine E-Mail-Adresse': 'no e-mail address',
|
|
547
|
+
'keine Fehler': 'no errors',
|
|
548
|
+
'keine Nummer': 'no number',
|
|
549
|
+
links: 'left',
|
|
550
|
+
netto: 'net',
|
|
551
|
+
'nicht fällig': 'not due',
|
|
552
|
+
'nicht umkehrbar': 'not reversible',
|
|
553
|
+
'nicht versendet': 'not sent',
|
|
554
|
+
'nur überfällige': 'overdue only',
|
|
555
|
+
'ohne Firmenzuordnung': 'without company',
|
|
556
|
+
'ohne Kundennr.': 'without customer no.',
|
|
557
|
+
rechts: 'right',
|
|
558
|
+
steuerfrei: 'tax-exempt',
|
|
559
|
+
storniert: 'cancelled',
|
|
560
|
+
versendet: 'sent',
|
|
561
|
+
von: 'from',
|
|
562
|
+
'wird beim Speichern automatisch vergeben': 'assigned automatically on saving',
|
|
563
|
+
'z. B. Monatliche Wartung': 'e.g. Monthly maintenance',
|
|
564
|
+
'z. B. Reverse Charge §13b UStG': 'e.g. Reverse charge §13b UStG',
|
|
565
|
+
'z. B. Zahlbar innerhalb 14 Tagen ohne Abzug': 'e.g. Payable within 14 days without deduction',
|
|
566
|
+
'z.B. 01': 'e.g. 01',
|
|
567
|
+
zentriert: 'centered',
|
|
568
|
+
'{amount} bei {percent} % Skonto': '{amount} with {percent} % cash discount',
|
|
569
|
+
'{days} Tage überfällig': '{days} days overdue',
|
|
570
|
+
'{days} Tage überfällig · Stufe {level}': '{days} days overdue · level {level}',
|
|
571
|
+
'{format} Format-, {business} Fachfehler': '{format} format errors, {business} business errors',
|
|
572
|
+
'{name}: größer als {size}': '{name}: larger than {size}',
|
|
573
|
+
'{name}: leere Datei': '{name}: empty file',
|
|
574
|
+
'{name}: nur PDF, PNG und JPEG': '{name}: PDF, PNG and JPEG only',
|
|
575
|
+
'{n} Angebots-Entwurf/Entwürfe ausstellen? Jedes bekommt eine eigene Nummer und seine PDF. Danach ist keine Änderung mehr möglich.':
|
|
576
|
+
'Issue {n} offer draft(s)? Each gets its own number and its own PDF. Afterwards no change is possible.',
|
|
577
|
+
'{n} Anlage(n) gespeichert.': '{n} attachment(s) saved.',
|
|
578
|
+
'{n} Dateifehler': '{n} file error(s)',
|
|
579
|
+
'{n} Entwurf/Entwürfe ausstellen? Jede bekommt eine eigene Nummer und PDF. Danach ist keine Änderung mehr möglich.':
|
|
580
|
+
'Issue {n} draft(s)? Each gets its own number and PDF. Afterwards no change is possible.',
|
|
581
|
+
'{n} Kunden': '{n} customers',
|
|
582
|
+
'{n} Kundennummer(n) vergeben.': '{n} customer number(s) assigned.',
|
|
583
|
+
'{n} Nummern': '{n} numbers',
|
|
584
|
+
'{n} Position(en)': '{n} item(s)',
|
|
585
|
+
'{n} Positionen': '{n} items',
|
|
586
|
+
'{n} Rechnungen': '{n} invoices',
|
|
587
|
+
'{n} Rechnungen (davon {issued} ausgestellt)': '{n} invoices ({issued} of them issued)',
|
|
588
|
+
'{n} ausgestellt': '{n} issued',
|
|
589
|
+
'{n} fehlgeschlagen': '{n} failed',
|
|
590
|
+
'{n} offen': '{n} open',
|
|
591
|
+
'{n} ohne Nummer: automatisch vergeben': '{n} without a number: assign automatically',
|
|
592
|
+
'{n} von {max}': '{n} of {max}',
|
|
593
|
+
'{percent} % Skonto': '{percent} % cash discount',
|
|
594
|
+
'{percent} % Skonto bis {date}': '{percent} % cash discount until {date}',
|
|
595
|
+
'§14b-Archivhinweis': '§14b archive note',
|
|
596
|
+
Öffnen: 'Open',
|
|
597
|
+
'Öffnen fehlgeschlagen (HTTP {status})': 'Opening failed (HTTP {status})',
|
|
598
|
+
'Über {channel} versendet am {date}': 'Sent via {channel} on {date}',
|
|
599
|
+
Überfällig: 'Overdue',
|
|
600
|
+
Übernehmen: 'Apply',
|
|
601
|
+
'Übernimmt Positionen, Termine, Zahlungsbedingungen und Skonto. Käufer und Datum bleiben deine Angaben.':
|
|
602
|
+
'Takes over items, dates, payment conditions and cash discount. Buyer and date stay your input.',
|
|
603
|
+
'Überschrieben:': 'Overwritten:',
|
|
604
|
+
'über 90 Tage überfällig': 'over 90 days overdue',
|
|
605
|
+
'– Musterfirma –': '– Sample company –',
|
|
606
|
+
'– Position wählen –': '– Choose an item –',
|
|
607
|
+
'– eigene Positionen –': '– own items –',
|
|
608
|
+
'– manuell eingeben –': '– enter manually –',
|
|
609
|
+
'„System“ folgt der Einstellung deines Geräts. Die Wahl gilt nur für dieses Gerät; PDF und Excel bleiben unverändert.':
|
|
610
|
+
'“System” follows the setting of your device. The choice applies to this device only; PDF and Excel stay unchanged.',
|
|
611
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Languages of the web app (R7.2).
|
|
3
|
+
*
|
|
4
|
+
* The source language is German: the German sentence is the key of `t()`, so a
|
|
5
|
+
* missing English entry shows the German text instead of a hole. `en.ts` carries
|
|
6
|
+
* the English wording; `test/i18n-pwa.test.ts` makes sure that every sentence
|
|
7
|
+
* used in the sources has an entry there and that no placeholder gets lost.
|
|
8
|
+
*/
|
|
9
|
+
import { en } from './en';
|
|
10
|
+
|
|
11
|
+
/** Languages the web app ships. */
|
|
12
|
+
export type Lang = 'de' | 'en';
|
|
13
|
+
|
|
14
|
+
/** All shipped languages (the admin select offers exactly these plus `auto`). */
|
|
15
|
+
export const LANGUAGES: readonly Lang[] = ['de', 'en'];
|
|
16
|
+
|
|
17
|
+
/** localStorage key of the language chosen on this device. */
|
|
18
|
+
const STORAGE_KEY = 'einv-lang';
|
|
19
|
+
|
|
20
|
+
/** Values placed into `{name}` slots of a sentence. */
|
|
21
|
+
export type Vars = Record<string, string | number>;
|
|
22
|
+
|
|
23
|
+
let current: Lang = 'de';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Narrows a raw language tag (`en-GB`, `de_AT`, `EN`) to a shipped language.
|
|
27
|
+
*
|
|
28
|
+
* @param raw - Any value that may name a language.
|
|
29
|
+
* @returns The shipped language, or `undefined` when it names none.
|
|
30
|
+
*/
|
|
31
|
+
export function toLang(raw: unknown): Lang | undefined {
|
|
32
|
+
const base = (typeof raw === 'string' ? raw : '').trim().toLowerCase().split(/[-_]/)[0];
|
|
33
|
+
return base === 'de' || base === 'en' ? base : undefined;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Sources of the start language, strongest first. */
|
|
37
|
+
export interface LanguageSources {
|
|
38
|
+
/** `?lang=` of the address bar. */
|
|
39
|
+
query?: string | null;
|
|
40
|
+
/** Choice stored on this device. */
|
|
41
|
+
stored?: string | null;
|
|
42
|
+
/** Value of the admin setting `pwaLanguage` (`auto`, `de`, `en`). */
|
|
43
|
+
admin?: string | null;
|
|
44
|
+
/** `navigator.language`. */
|
|
45
|
+
browser?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Start language: address bar → choice of this device → admin setting →
|
|
50
|
+
* browser → English. `auto` in the admin means "ask the browser".
|
|
51
|
+
*
|
|
52
|
+
* @param sources - The places a language may come from.
|
|
53
|
+
*/
|
|
54
|
+
export function resolveLanguage(sources: LanguageSources): Lang {
|
|
55
|
+
return toLang(sources.query) ?? toLang(sources.stored) ?? toLang(sources.admin) ?? toLang(sources.browser) ?? 'en';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Reads a localStorage value without ever throwing (private mode, blocked storage).
|
|
60
|
+
*
|
|
61
|
+
* @param key - Storage key.
|
|
62
|
+
*/
|
|
63
|
+
function readStored(key: string): string | null {
|
|
64
|
+
try {
|
|
65
|
+
return localStorage.getItem(key);
|
|
66
|
+
} catch {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Sets the language of the page: dictionary, `<html lang>` and the choice of
|
|
73
|
+
* this device (only when it was asked for explicitly).
|
|
74
|
+
*
|
|
75
|
+
* @param lang - Language to use.
|
|
76
|
+
* @param remember - Store it as the choice of this device.
|
|
77
|
+
*/
|
|
78
|
+
export function setLanguage(lang: Lang, remember = false): void {
|
|
79
|
+
current = lang;
|
|
80
|
+
if (typeof document !== 'undefined') {
|
|
81
|
+
document.documentElement.lang = lang;
|
|
82
|
+
}
|
|
83
|
+
if (remember) {
|
|
84
|
+
try {
|
|
85
|
+
localStorage.setItem(STORAGE_KEY, lang);
|
|
86
|
+
} catch {
|
|
87
|
+
// storage blocked: the language still applies for this page view
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** The language in use. */
|
|
93
|
+
export function getLanguage(): Lang {
|
|
94
|
+
return current;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Picks the start language and applies it. `?lang=xx` is remembered for this
|
|
99
|
+
* device, so a later visit without the parameter keeps the choice.
|
|
100
|
+
*
|
|
101
|
+
* @param admin - Admin setting `pwaLanguage`, when it is known.
|
|
102
|
+
* @returns The language now in use.
|
|
103
|
+
*/
|
|
104
|
+
export function initLanguage(admin?: string | null): Lang {
|
|
105
|
+
const query = typeof location === 'undefined' ? null : new URLSearchParams(location.search).get('lang');
|
|
106
|
+
const asked = toLang(query);
|
|
107
|
+
const lang = resolveLanguage({
|
|
108
|
+
query,
|
|
109
|
+
stored: readStored(STORAGE_KEY),
|
|
110
|
+
admin,
|
|
111
|
+
browser: typeof navigator === 'undefined' ? null : navigator.language,
|
|
112
|
+
});
|
|
113
|
+
setLanguage(lang, asked !== undefined);
|
|
114
|
+
return lang;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Translates a sentence. German is the key and the source language; a sentence
|
|
119
|
+
* without an English entry stays German (the tests keep that from happening).
|
|
120
|
+
*
|
|
121
|
+
* @param key - The German sentence, `{name}` marks a value slot.
|
|
122
|
+
* @param vars - Values for the slots.
|
|
123
|
+
*/
|
|
124
|
+
export function t(key: string, vars?: Vars): string {
|
|
125
|
+
const text = current === 'de' ? key : (en[key] ?? key);
|
|
126
|
+
if (!vars) {
|
|
127
|
+
return text;
|
|
128
|
+
}
|
|
129
|
+
return text.replace(/\{(\w+)\}/g, (slot: string, name: string) => (name in vars ? String(vars[name]) : slot));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** BCP-47 tag for `Intl` and `localeCompare` in the language in use. */
|
|
133
|
+
export function locale(): string {
|
|
134
|
+
return current === 'de' ? 'de-DE' : 'en-GB';
|
|
135
|
+
}
|