feat: add German (de) UI localization

Adds German (Deutsch) as a third UI language, following the procedure outlined in docs/localization.md
This commit is contained in:
ich777 committed 2026-10-12 08:10:14 +02:00
1 parent 07e263d7e9
commit 53b092d287
2 files changed
+298 -1

No files matched your search

+2 -1
View File
@@ -33,7 +33,8 @@ impl Catalog {
static ENGLISH: Catalog = Catalog::new("en", "English", include_str!("locales/en.json"));
static JAPANESE: Catalog = Catalog::new("ja", "日本語", include_str!("locales/ja.json"));
pub const LOCALES: &[&Catalog] = &[&ENGLISH, &JAPANESE];
static GERMAN: Catalog = Catalog::new("de", "Deutsch", include_str!("locales/de.json"));
pub const LOCALES: &[&Catalog] = &[&ENGLISH, &JAPANESE, &GERMAN];
pub fn is_supported(id: &str) -> bool {
LOCALES.iter().any(|catalog| catalog.id == id)