@bytebrand/fe-ui-core-autobahn 1.0.208 → 1.0.209
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/locales/de/autobahn.json
CHANGED
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"finance": {
|
|
68
68
|
"creditCostWarning": "Achtung! Kreditaufnahme kostet Geld.",
|
|
69
69
|
"kfMonths": "{{months}} Mon.",
|
|
70
|
-
"kfNetLoan": "{{value}}
|
|
71
|
-
"kfTotal": "Gesamtbetrag: {{value}}
|
|
70
|
+
"kfNetLoan": "{{value}}€ Nettokredit",
|
|
71
|
+
"kfTotal": "Gesamtbetrag: {{value}}€",
|
|
72
72
|
"kfNominal": "{{value}} Sollzins fest",
|
|
73
73
|
"kfApr": "{{value}} eff. Jahreszins",
|
|
74
|
-
"kfLeaseDown": "{{value}}
|
|
75
|
-
"kfCashPrice": "{{value}}
|
|
76
|
-
"kfLeaseTotal": "{{value}}
|
|
74
|
+
"kfLeaseDown": "{{value}}€ Anzahlung",
|
|
75
|
+
"kfCashPrice": "{{value}}€ Barpreis",
|
|
76
|
+
"kfLeaseTotal": "{{value}}€ Gesamtbetrag",
|
|
77
77
|
"kfPurchaseObligation": "Kaufpflicht",
|
|
78
78
|
"termSelection": "Laufzeit",
|
|
79
79
|
"termSelectionMonths": "Laufzeit (Monate)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.209",
|
|
4
4
|
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"license": "UNLICENSED",
|
package/ui/CreditKeyFigures.tsx
CHANGED
|
@@ -58,11 +58,11 @@ export function creditKeyFigureLines(t: TranslationFunction, f: CreditKeyFigures
|
|
|
58
58
|
}
|
|
59
59
|
if (real(f.netLoan)) {
|
|
60
60
|
const v = formatEur(Math.round(f.netLoan));
|
|
61
|
-
line1.push(t('autobahn:finance.kfNetLoan', { value: v, defaultValue: `${v}
|
|
61
|
+
line1.push(t('autobahn:finance.kfNetLoan', { value: v, defaultValue: `${v}€ Nettokredit` }));
|
|
62
62
|
}
|
|
63
63
|
if (real(f.total)) {
|
|
64
64
|
const v = formatEurCents(f.total);
|
|
65
|
-
line1.push(t('autobahn:finance.kfTotal', { value: v, defaultValue: `Gesamtbetrag: ${v}
|
|
65
|
+
line1.push(t('autobahn:finance.kfTotal', { value: v, defaultValue: `Gesamtbetrag: ${v}€` }));
|
|
66
66
|
}
|
|
67
67
|
if (real(f.nominal)) {
|
|
68
68
|
const v = formatPct(f.nominal);
|
|
@@ -83,15 +83,15 @@ const keepUnits = (part: string): string => part.replace(/ (€|%)/g, '\u00a0$1'
|
|
|
83
83
|
* "0 € Anzahlung · 60 Mon. · 24.549 € Barpreis · 31.776,28 € Gesamtbetrag" /
|
|
84
84
|
* "Kaufpflicht · 6,78 % Sollzins fest · 6,99 % eff. Jahreszins · Details". Anzahlung = the layer's
|
|
85
85
|
* Einmalige Sonderzahlung, Barpreis = Anschaffungspreis, Gesamtbetrag = Gesamt inkl. Restwert,
|
|
86
|
-
* "Kaufpflicht" = the mandatory Restwert (only when there is one). €
|
|
87
|
-
* financing
|
|
86
|
+
* "Kaufpflicht" = the mandatory Restwert (only when there is one). € without a space before it
|
|
87
|
+
* (client 19.11, financing and leasing alike); % keeps its space.
|
|
88
88
|
*/
|
|
89
89
|
function leasingKeyFigureLines(t: TranslationFunction, f: CreditKeyFiguresData): string[][] {
|
|
90
90
|
const line1: string[] = [];
|
|
91
91
|
const line2: string[] = [];
|
|
92
92
|
if (typeof f.down === 'number' && isFinite(f.down) && f.down >= 0) {
|
|
93
93
|
const v = formatEur(Math.round(f.down));
|
|
94
|
-
line1.push(t('autobahn:finance.kfLeaseDown', { value: v, defaultValue: `${v}
|
|
94
|
+
line1.push(t('autobahn:finance.kfLeaseDown', { value: v, defaultValue: `${v}€ Anzahlung` }));
|
|
95
95
|
}
|
|
96
96
|
if (real(f.months)) {
|
|
97
97
|
const months = Math.round(f.months);
|
|
@@ -99,11 +99,11 @@ function leasingKeyFigureLines(t: TranslationFunction, f: CreditKeyFiguresData):
|
|
|
99
99
|
}
|
|
100
100
|
if (real(f.cashPrice)) {
|
|
101
101
|
const v = formatEur(Math.round(f.cashPrice));
|
|
102
|
-
line1.push(t('autobahn:finance.kfCashPrice', { value: v, defaultValue: `${v}
|
|
102
|
+
line1.push(t('autobahn:finance.kfCashPrice', { value: v, defaultValue: `${v}€ Barpreis` }));
|
|
103
103
|
}
|
|
104
104
|
if (real(f.total)) {
|
|
105
105
|
const v = formatEurCents(f.total);
|
|
106
|
-
line1.push(t('autobahn:finance.kfLeaseTotal', { value: v, defaultValue: `${v}
|
|
106
|
+
line1.push(t('autobahn:finance.kfLeaseTotal', { value: v, defaultValue: `${v}€ Gesamtbetrag` }));
|
|
107
107
|
}
|
|
108
108
|
if (real(f.residual)) {
|
|
109
109
|
line2.push(t('autobahn:finance.kfPurchaseObligation', { defaultValue: 'Kaufpflicht' }));
|