@design.estate/dees-document 1.4.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +164 -164
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.pdfservice.d.ts +1 -2
- package/dist_ts/classes.pdfservice.js +1 -1
- package/dist_ts/helpers.js +1 -1
- package/dist_ts/paths.js +1 -1
- package/dist_ts/plugins.d.ts +4 -2
- package/dist_ts/plugins.js +6 -3
- package/dist_ts_shared/demoletter.d.ts +4 -0
- package/{dist_ts/shared → dist_ts_shared}/demoletter.js +3 -3
- package/{dist_ts/shared → dist_ts_shared}/index.d.ts +2 -0
- package/dist_ts_shared/index.js +10 -0
- package/{dist_ts → dist_ts_shared}/interfaces/document.d.ts +2 -2
- package/dist_ts_shared/interfaces/document.js +2 -0
- package/{dist_ts_web/ts → dist_ts_shared}/interfaces/index.js +1 -1
- package/{dist_ts → dist_ts_shared}/interfaces/translation.js +1 -1
- package/dist_ts_shared/plugins.d.ts +2 -0
- package/dist_ts_shared/plugins.js +4 -0
- package/{dist_ts/shared → dist_ts_shared}/translation.d.ts +1 -1
- package/{dist_ts/shared → dist_ts_shared}/translation.js +2 -2
- package/dist_ts_web/{ts_web/00_commitinfo_data.js → 00_commitinfo_data.js} +2 -2
- package/dist_ts_web/{ts_web/elements → elements}/contentinvoice.d.ts +1 -2
- package/dist_ts_web/{ts_web/elements → elements}/contentinvoice.js +8 -10
- package/dist_ts_web/{ts_web/elements → elements}/document.d.ts +2 -3
- package/dist_ts_web/elements/document.demo.js +6 -0
- package/dist_ts_web/{ts_web/elements → elements}/document.js +1 -3
- package/dist_ts_web/{ts_web/elements → elements}/index.d.ts +0 -1
- package/dist_ts_web/{ts_web/elements → elements}/index.js +1 -2
- package/dist_ts_web/{ts_web/elements → elements}/letterheader.d.ts +2 -2
- package/dist_ts_web/{ts_web/elements → elements}/letterheader.js +7 -9
- package/dist_ts_web/{ts_web/elements → elements}/page.d.ts +2 -2
- package/dist_ts_web/{ts_web/elements → elements}/page.js +5 -6
- package/dist_ts_web/{ts_web/elements → elements}/pagecontainer.js +4 -4
- package/dist_ts_web/{ts_web/elements → elements}/pagecontent.d.ts +2 -2
- package/dist_ts_web/{ts_web/elements → elements}/pagecontent.js +5 -7
- package/dist_ts_web/{ts_web/elements → elements}/pagefooter.d.ts +3 -4
- package/dist_ts_web/{ts_web/elements → elements}/pagefooter.js +9 -11
- package/dist_ts_web/{ts_web/elements → elements}/pageheader.d.ts +3 -4
- package/dist_ts_web/{ts_web/elements → elements}/pageheader.js +4 -6
- package/dist_ts_web/{ts_web/elements → elements}/viewer.d.ts +1 -2
- package/dist_ts_web/elements/viewer.demo.js +6 -0
- package/dist_ts_web/{ts_web/elements → elements}/viewer.js +1 -2
- package/dist_ts_web/{ts_web/index.js → index.js} +1 -1
- package/dist_ts_web/{ts_web/pages → pages}/index.js +1 -1
- package/dist_ts_web/pages/page1.js +17 -0
- package/dist_ts_web/{ts_web/pages → pages}/page2.js +1 -1
- package/dist_ts_web/{ts_web/plugins.d.ts → plugins.d.ts} +2 -0
- package/dist_ts_web/plugins.js +14 -0
- package/dist_watch/bundle.js +40174 -0
- package/dist_watch/bundle.js.map +7 -0
- package/dist_watch/index.html +28 -0
- package/package.json +9 -6
- package/readme.md +32 -26
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.pdfservice.ts +3 -6
- package/ts/helpers.ts +1 -1
- package/ts/paths.ts +4 -1
- package/ts/plugins.ts +8 -12
- package/ts/tspublish.json +3 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/contentinvoice.ts +8 -10
- package/ts_web/elements/document.demo.ts +3 -2
- package/ts_web/elements/document.ts +2 -5
- package/ts_web/elements/index.ts +0 -2
- package/ts_web/elements/letterheader.ts +7 -8
- package/ts_web/elements/page.ts +5 -7
- package/ts_web/elements/pagecontainer.ts +3 -3
- package/ts_web/elements/pagecontent.ts +5 -6
- package/ts_web/elements/pagefooter.ts +10 -13
- package/ts_web/elements/pageheader.ts +5 -8
- package/ts_web/elements/viewer.demo.ts +2 -2
- package/ts_web/elements/viewer.ts +1 -2
- package/ts_web/pages/page1.ts +3 -4
- package/ts_web/plugins.ts +5 -0
- package/ts_web/tspublish.json +3 -0
- package/dist_ts/interfaces/document.js +0 -2
- package/dist_ts/interfaces/index.js +0 -3
- package/dist_ts/shared/demoletter.d.ts +0 -4
- package/dist_ts/shared/index.js +0 -8
- package/dist_ts_web/ts/interfaces/document.d.ts +0 -7
- package/dist_ts_web/ts/interfaces/document.js +0 -2
- package/dist_ts_web/ts/interfaces/index.d.ts +0 -2
- package/dist_ts_web/ts/interfaces/translation.d.ts +0 -19
- package/dist_ts_web/ts/interfaces/translation.js +0 -2
- package/dist_ts_web/ts/shared/demoletter.d.ts +0 -4
- package/dist_ts_web/ts/shared/demoletter.js +0 -214
- package/dist_ts_web/ts/shared/index.d.ts +0 -7
- package/dist_ts_web/ts/shared/index.js +0 -8
- package/dist_ts_web/ts/shared/translation.d.ts +0 -19
- package/dist_ts_web/ts/shared/translation.js +0 -113
- package/dist_ts_web/ts_web/elements/document.demo.js +0 -6
- package/dist_ts_web/ts_web/elements/viewer.demo.js +0 -6
- package/dist_ts_web/ts_web/pages/page1.js +0 -18
- package/dist_ts_web/ts_web/plugins.js +0 -11
- package/ts/interfaces/document.ts +0 -8
- package/ts/interfaces/index.ts +0 -2
- package/ts/interfaces/translation.ts +0 -19
- package/ts/shared/demoletter.ts +0 -219
- package/ts/shared/index.ts +0 -9
- package/ts/shared/translation.ts +0 -124
- /package/{dist_ts → dist_ts_shared}/interfaces/index.d.ts +0 -0
- /package/{dist_ts → dist_ts_shared}/interfaces/translation.d.ts +0 -0
- /package/dist_ts_web/{ts_web/00_commitinfo_data.d.ts → 00_commitinfo_data.d.ts} +0 -0
- /package/dist_ts_web/{ts_web/elements → elements}/document.demo.d.ts +0 -0
- /package/dist_ts_web/{ts_web/elements → elements}/pagecontainer.d.ts +0 -0
- /package/dist_ts_web/{ts_web/elements → elements}/viewer.demo.d.ts +0 -0
- /package/dist_ts_web/{ts_web/index.d.ts → index.d.ts} +0 -0
- /package/dist_ts_web/{ts_web/pages → pages}/index.d.ts +0 -0
- /package/dist_ts_web/{ts_web/pages → pages}/page1.d.ts +0 -0
- /package/dist_ts_web/{ts_web/pages → pages}/page2.d.ts +0 -0
package/ts/shared/demoletter.ts
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import * as tsclass from '@tsclass/tsclass';
|
|
2
|
-
import * as interfaces from '../interfaces/index.js';
|
|
3
|
-
|
|
4
|
-
const fromContact: tsclass.business.IContact = {
|
|
5
|
-
name: 'Awesome From Company',
|
|
6
|
-
type: 'company',
|
|
7
|
-
description: 'a company that does stuff',
|
|
8
|
-
address: {
|
|
9
|
-
streetName: 'Awesome Street',
|
|
10
|
-
houseNumber: '5',
|
|
11
|
-
city: 'Bremen',
|
|
12
|
-
country: 'Germany',
|
|
13
|
-
postalCode: '28359',
|
|
14
|
-
},
|
|
15
|
-
vatId: 'DE12345678',
|
|
16
|
-
sepaConnection: {
|
|
17
|
-
bic: 'BPOTBEB1',
|
|
18
|
-
iban: 'BE01234567891616'
|
|
19
|
-
},
|
|
20
|
-
email: 'hello@awesome.company',
|
|
21
|
-
phone: '+49 421 1234567',
|
|
22
|
-
fax: '+49 421 1234568',
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const toContact: tsclass.business.IContact = {
|
|
27
|
-
name: 'Awesome To GmbH',
|
|
28
|
-
type: 'company',
|
|
29
|
-
customerNumber: 'LL-CLIENT-123',
|
|
30
|
-
description: 'a company that does stuff',
|
|
31
|
-
address: {
|
|
32
|
-
streetName: 'Awesome Street',
|
|
33
|
-
houseNumber: '5',
|
|
34
|
-
city: 'Bremen',
|
|
35
|
-
country: 'Germany',
|
|
36
|
-
postalCode: '28359'
|
|
37
|
-
},
|
|
38
|
-
vatId: 'BE12345678',
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const demoLetter: tsclass.business.ILetter = {
|
|
42
|
-
versionInfo: {
|
|
43
|
-
type: 'draft',
|
|
44
|
-
version: '1.0.0',
|
|
45
|
-
},
|
|
46
|
-
accentColor: null,
|
|
47
|
-
content: {
|
|
48
|
-
textData: null,
|
|
49
|
-
timesheetData: null,
|
|
50
|
-
contractData: {
|
|
51
|
-
contractDate: Date.now(),
|
|
52
|
-
id: 'someid'
|
|
53
|
-
},
|
|
54
|
-
invoiceData: {
|
|
55
|
-
id: 'LL-INV-48765',
|
|
56
|
-
reverseCharge: true,
|
|
57
|
-
dueInDays: 30,
|
|
58
|
-
billedBy: fromContact,
|
|
59
|
-
billedTo: toContact,
|
|
60
|
-
status: null,
|
|
61
|
-
deliveryDate: new Date().getTime(),
|
|
62
|
-
periodOfPerformance: null,
|
|
63
|
-
printResult: null,
|
|
64
|
-
currency: 'EUR',
|
|
65
|
-
notes: [],
|
|
66
|
-
type: 'debitnote',
|
|
67
|
-
items: [
|
|
68
|
-
{
|
|
69
|
-
name: 'Item with 19% VAT',
|
|
70
|
-
unitQuantity: 2,
|
|
71
|
-
unitNetPrice: 100,
|
|
72
|
-
unitType: 'hours',
|
|
73
|
-
vatPercentage: 19,
|
|
74
|
-
position: 0,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'Item with 7% VAT',
|
|
78
|
-
unitQuantity: 4,
|
|
79
|
-
unitNetPrice: 100,
|
|
80
|
-
unitType: 'hours',
|
|
81
|
-
vatPercentage: 7,
|
|
82
|
-
position: 1,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'Item with 7% VAT',
|
|
86
|
-
unitQuantity: 3,
|
|
87
|
-
unitNetPrice: 230,
|
|
88
|
-
unitType: 'hours',
|
|
89
|
-
vatPercentage: 7,
|
|
90
|
-
position: 2,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'Item with 21% VAT',
|
|
94
|
-
unitQuantity: 1,
|
|
95
|
-
unitNetPrice: 230,
|
|
96
|
-
unitType: 'hours',
|
|
97
|
-
vatPercentage: 21,
|
|
98
|
-
position: 3,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: 'Item with 0% VAT',
|
|
102
|
-
unitQuantity: 6,
|
|
103
|
-
unitNetPrice: 230,
|
|
104
|
-
unitType: 'hours',
|
|
105
|
-
vatPercentage: 0,
|
|
106
|
-
position: 4,
|
|
107
|
-
},{
|
|
108
|
-
name: 'Item with 19% VAT',
|
|
109
|
-
unitQuantity: 8,
|
|
110
|
-
unitNetPrice: 100,
|
|
111
|
-
unitType: 'hours',
|
|
112
|
-
vatPercentage: 19,
|
|
113
|
-
position: 5,
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'Item with 7% VAT',
|
|
117
|
-
unitQuantity: 9,
|
|
118
|
-
unitNetPrice: 100,
|
|
119
|
-
unitType: 'hours',
|
|
120
|
-
vatPercentage: 7,
|
|
121
|
-
position: 6,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'Item with 7% VAT',
|
|
125
|
-
unitQuantity: 4,
|
|
126
|
-
unitNetPrice: 230,
|
|
127
|
-
unitType: 'hours',
|
|
128
|
-
vatPercentage: 7,
|
|
129
|
-
position: 8,
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'Item with 21% VAT',
|
|
133
|
-
unitQuantity: 3,
|
|
134
|
-
unitNetPrice: 230,
|
|
135
|
-
unitType: 'hours',
|
|
136
|
-
vatPercentage: 21,
|
|
137
|
-
position: 9,
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: 'Item with 0% VAT',
|
|
141
|
-
unitQuantity: 1,
|
|
142
|
-
unitNetPrice: 230,
|
|
143
|
-
unitType: 'hours',
|
|
144
|
-
vatPercentage: 0,
|
|
145
|
-
position: 10,
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: 'Item with 0% VAT',
|
|
149
|
-
unitQuantity: 1,
|
|
150
|
-
unitNetPrice: 230,
|
|
151
|
-
unitType: 'hours',
|
|
152
|
-
vatPercentage: 0,
|
|
153
|
-
position: 10,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: 'Item with 0% VAT',
|
|
157
|
-
unitQuantity: 1,
|
|
158
|
-
unitNetPrice: 230,
|
|
159
|
-
unitType: 'hours',
|
|
160
|
-
vatPercentage: 0,
|
|
161
|
-
position: 10,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'Item with 0% VAT',
|
|
165
|
-
unitQuantity: 1,
|
|
166
|
-
unitNetPrice: 230,
|
|
167
|
-
unitType: 'hours',
|
|
168
|
-
vatPercentage: 0,
|
|
169
|
-
position: 10,
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: 'Item with 0% VAT',
|
|
173
|
-
unitQuantity: 1,
|
|
174
|
-
unitNetPrice: 230,
|
|
175
|
-
unitType: 'hours',
|
|
176
|
-
vatPercentage: 0,
|
|
177
|
-
position: 10,
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: 'Item with 0% VAT',
|
|
181
|
-
unitQuantity: 1,
|
|
182
|
-
unitNetPrice: 230,
|
|
183
|
-
unitType: 'hours',
|
|
184
|
-
vatPercentage: 0,
|
|
185
|
-
position: 10,
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: 'Item with 0% VAT',
|
|
189
|
-
unitQuantity: 1,
|
|
190
|
-
unitNetPrice: 230,
|
|
191
|
-
unitType: 'hours',
|
|
192
|
-
vatPercentage: 0,
|
|
193
|
-
position: 10,
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
date: Date.now(),
|
|
200
|
-
type: 'invoice',
|
|
201
|
-
needsCoverSheet: false,
|
|
202
|
-
objectActions: [],
|
|
203
|
-
pdf: null,
|
|
204
|
-
from: fromContact,
|
|
205
|
-
to: toContact,
|
|
206
|
-
incidenceId: null,
|
|
207
|
-
language: null,
|
|
208
|
-
legalContact: null,
|
|
209
|
-
logoUrl: null,
|
|
210
|
-
pdfAttachments: null,
|
|
211
|
-
subject: 'Invoice: LL-INV-48765',
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export const demoDocumentSettings: interfaces.IDocumentSettings = {
|
|
215
|
-
enableTopDraftText: true,
|
|
216
|
-
enableDefaultHeader: true,
|
|
217
|
-
enableDefaultFooter: true,
|
|
218
|
-
languageCode: 'DE',
|
|
219
|
-
};
|
package/ts/shared/index.ts
DELETED
package/ts/shared/translation.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import * as interfaces from '../interfaces/index.js';
|
|
2
|
-
|
|
3
|
-
type TTranslationImplementation = {
|
|
4
|
-
[key in keyof interfaces.IDeDocumentTranslations]: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const EN_translations: TTranslationImplementation = {
|
|
8
|
-
address: 'Address',
|
|
9
|
-
bankConnection: 'Bank Connection',
|
|
10
|
-
contactInfo: 'Contact Info',
|
|
11
|
-
description: 'Description',
|
|
12
|
-
invoice: 'Invoice',
|
|
13
|
-
itemPos: 'Item Pos.',
|
|
14
|
-
quantity: 'Quantity',
|
|
15
|
-
registrationInfo: 'Registration Info',
|
|
16
|
-
reverseVatNote: 'VAT arises on a reverse charge basis and is payable by the customer.',
|
|
17
|
-
totalNetPrice: 'Total Net Price',
|
|
18
|
-
unitNetPrice: 'Unit Net Price',
|
|
19
|
-
unitType: 'Unit Type',
|
|
20
|
-
yourCustomerId: 'Your Customer ID:',
|
|
21
|
-
yourVatId: 'Your vat id on file:',
|
|
22
|
-
continuesOnPage: 'Continues on page',
|
|
23
|
-
finalPageStatement: 'This is the final page of this document.',
|
|
24
|
-
page: 'Page',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const DE_translations: TTranslationImplementation = {
|
|
28
|
-
address: 'Adresse',
|
|
29
|
-
bankConnection: 'Bankverbindung',
|
|
30
|
-
contactInfo: 'Kontaktinformationen',
|
|
31
|
-
description: 'Beschreibung',
|
|
32
|
-
invoice: 'Rechnung',
|
|
33
|
-
itemPos: 'Pos.',
|
|
34
|
-
quantity: 'Anzahl',
|
|
35
|
-
registrationInfo: 'HRA/HRB Info',
|
|
36
|
-
reverseVatNote: 'Umkehr der Umsatzsteuerpflicht: Der Rechnungsempfänger ist für die korrekte Abrechnung der Umsatzsteuer zuständig.',
|
|
37
|
-
totalNetPrice: 'Nettopreis Summe',
|
|
38
|
-
unitNetPrice: 'Nettopreis',
|
|
39
|
-
unitType: 'Einheit',
|
|
40
|
-
yourCustomerId: 'Ihre Kundennummer:',
|
|
41
|
-
yourVatId: 'Ihre Umsatzsteuer-ID:',
|
|
42
|
-
continuesOnPage: 'Fortsetzung auf Seite',
|
|
43
|
-
finalPageStatement: 'Dies ist die letzte Seite dieses Dokuments.',
|
|
44
|
-
page: 'Seite',
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ES_translations: TTranslationImplementation = {
|
|
48
|
-
address: 'Dirección',
|
|
49
|
-
bankConnection: 'Conexión bancaria',
|
|
50
|
-
contactInfo: 'Información de contacto',
|
|
51
|
-
description: 'Descripción',
|
|
52
|
-
invoice: 'Factura',
|
|
53
|
-
itemPos: 'Pos.',
|
|
54
|
-
quantity: 'Cantidad',
|
|
55
|
-
registrationInfo: 'Información de registro',
|
|
56
|
-
reverseVatNote: 'El IVA se aplica por inversión del sujeto pasivo y debe ser pagado por el cliente.',
|
|
57
|
-
totalNetPrice: 'Precio total neto',
|
|
58
|
-
unitNetPrice: 'Precio unitario neto',
|
|
59
|
-
unitType: 'Tipo de unidad',
|
|
60
|
-
yourCustomerId: 'Su número de cliente:',
|
|
61
|
-
yourVatId: 'Su ID de IVA:',
|
|
62
|
-
continuesOnPage: 'Continúa en la página',
|
|
63
|
-
finalPageStatement: 'Esta es la última página de este documento.',
|
|
64
|
-
page: 'Página',
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const FR_translations: TTranslationImplementation = {
|
|
68
|
-
address: 'Adresse',
|
|
69
|
-
bankConnection: 'Coordonnées bancaires',
|
|
70
|
-
contactInfo: 'Informations de contact',
|
|
71
|
-
description: 'Description',
|
|
72
|
-
invoice: 'Facture',
|
|
73
|
-
itemPos: 'Position',
|
|
74
|
-
quantity: 'Quantité',
|
|
75
|
-
registrationInfo: 'Informations d\'enregistrement',
|
|
76
|
-
reverseVatNote: 'La TVA s\'applique selon le mécanisme d\'autoliquidation et est à payer par le client.',
|
|
77
|
-
totalNetPrice: 'Prix net total',
|
|
78
|
-
unitNetPrice: 'Prix unitaire net',
|
|
79
|
-
unitType: 'Type d\'unité',
|
|
80
|
-
yourCustomerId: 'Votre numéro de client :',
|
|
81
|
-
yourVatId: 'Votre numéro de TVA :',
|
|
82
|
-
continuesOnPage: 'Continue sur la page',
|
|
83
|
-
finalPageStatement: 'Ceci est la dernière page de ce document.',
|
|
84
|
-
page: 'Page',
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export const IT_translations: TTranslationImplementation = {
|
|
88
|
-
address: 'Indirizzo',
|
|
89
|
-
bankConnection: 'Coordinate bancarie',
|
|
90
|
-
contactInfo: 'Informazioni di contatto',
|
|
91
|
-
description: 'Descrizione',
|
|
92
|
-
invoice: 'Fattura',
|
|
93
|
-
itemPos: 'Pos.',
|
|
94
|
-
quantity: 'Quantità',
|
|
95
|
-
registrationInfo: 'Informazioni di registrazione',
|
|
96
|
-
reverseVatNote: 'L\'IVA è applicata con inversione contabile ed è a carico del cliente.',
|
|
97
|
-
totalNetPrice: 'Prezzo netto totale',
|
|
98
|
-
unitNetPrice: 'Prezzo netto unitario',
|
|
99
|
-
unitType: 'Tipo di unità',
|
|
100
|
-
yourCustomerId: 'Il tuo numero cliente:',
|
|
101
|
-
yourVatId: 'Il tuo numero di partita IVA:',
|
|
102
|
-
continuesOnPage: 'Continua alla pagina',
|
|
103
|
-
finalPageStatement: 'Questa è l\'ultima pagina di questo documento.',
|
|
104
|
-
page: 'Pagina',
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export const languageCodeMap = {
|
|
108
|
-
'DE': DE_translations,
|
|
109
|
-
'EN': EN_translations,
|
|
110
|
-
'ES': ES_translations,
|
|
111
|
-
'FR': FR_translations,
|
|
112
|
-
'IT': IT_translations,
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export type TLanguageCode = keyof typeof languageCodeMap;
|
|
116
|
-
|
|
117
|
-
export const translate = (languageCode: TLanguageCode, key: string, defaultValue: string) => {
|
|
118
|
-
const translations = languageCodeMap[languageCode] || EN_translations;
|
|
119
|
-
if (translations && translations[key]) {
|
|
120
|
-
return translations[key];
|
|
121
|
-
} else {
|
|
122
|
-
return defaultValue;
|
|
123
|
-
}
|
|
124
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|