From ef8ab25f44e6efbd41db6f0fdac0a5ec5d73c107 Mon Sep 17 00:00:00 2001 From: Bennet Gallein Date: Tue, 17 Feb 2026 02:50:42 +0100 Subject: [PATCH] feat(i18n): add german language (#194) * feat(i18n): add german language * fix: change lang * fix: adjust --- locales/de-DE/common.json | 37 +++++++++++++++++++++++++++++++++++++ util/i18n.ts | 3 +++ 2 files changed, 40 insertions(+) create mode 100644 locales/de-DE/common.json diff --git a/locales/de-DE/common.json b/locales/de-DE/common.json new file mode 100644 index 0000000..9686989 --- /dev/null +++ b/locales/de-DE/common.json @@ -0,0 +1,37 @@ +{ + "Incidents": "Vorfälle", + "No data yet": "Noch keine Daten", + "All systems not operational": "Nicht alle Systeme funktionsfähig", + "All systems operational": "Alle Systeme funktionsfähig", + "Some systems not operational": "Manche Systeme sind nicht funktionsfähig ({{down}} von {{total}})", + "Last updated on": "Letzte Aktualisierung: {{date}} (vor {{seconds}} Sekunden)", + "upcoming maintenance": "{{count}} anstehende Wartung", + "upcoming maintenance_plural": "{{count}} anstehende Wartungen", + "Hide": "[verstecken]", + "Show": "[zeigen]", + "Operational": "Funktionsfähig", + "No data available": "Keine Daten verfügbar, stelle sicher dass der Worker mit der letzten Config-Version deployed wurde und prüfe den Worker-Status!", + "Overall": "Gesamt: {{percent}}%", + "No Data": "Keine Daten", + "percent at date": "{{percent}}% am {{date}}", + "Down for": "Ausfall für {{duration}} (Klick für Details)", + "incidents at": "🚨 {{name}} Vorfall am {{date}}", + "Response times": "Antwortzeiten (ms)", + "Upcoming": "[Geplant] ", + "Scheduled Maintenance": "Geplante Wartung", + "Scheduled for": "Geplant für:", + "From": "Von:", + "Expected end": "Voraussichtliches Ende:", + "To": "Bis:", + "Until further notice": "Bis auf Weiteres", + "Affected components": "Betroffene Komponenten:", + "MONITOR ID NOT FOUND": "[ERR: MONITOR ID NICHT GEFUNDEN]", + "No incidents in this month": "Keine Vorfälle diesen Monat", + "There are no incidents for this month": "Es gibt keine Vorfälle diesen Monat.", + "Monitor not found": "Monitor mit ID {{id}} nicht gefunden!", + "Monitor State not defined": "Monitor-Status ist nicht definiert. Prüfe den Worker-Status und das Binding!", + "All": "Alle", + "Select monitor": "Auswählen", + "Backwards": "← Zurück", + "Forward": "Vorwärts →" +} diff --git a/util/i18n.ts b/util/i18n.ts index 54d912a..5fed890 100644 --- a/util/i18n.ts +++ b/util/i18n.ts @@ -5,6 +5,7 @@ import en from '../locales/en/common.json' import zhCN from '../locales/zh-CN/common.json' import zhTW from '../locales/zh-TW/common.json' import frFR from '../locales/fr-FR/common.json' +import deDE from '../locales/de-DE/common.json' i18n .use(LanguageDetector) @@ -17,6 +18,8 @@ i18n 'zh-TW': { common: zhTW }, fr: { common: frFR }, 'fr-FR': { common: frFR }, + de: { common: deDE }, + 'de-DE': { common: deDE }, }, fallbackLng: 'en', interpolation: {