From 5578c32710e1ba3a5376e5535041b581022f4750 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Sat, 18 Jul 2026 00:34:28 +0200 Subject: [PATCH] fix(store): localized category labels, 'Studio & Designs' tab in German 'document' rendered as a raw lowercase English token next to localized neighbours; unknown categories at least capitalize. Signed-off-by: flemming-it --- lib/l10n/app_de.arb | 5 +++-- lib/l10n/app_en.arb | 1 + lib/l10n/app_localizations.dart | 6 ++++++ lib/l10n/app_localizations_de.dart | 7 +++++-- lib/l10n/app_localizations_en.dart | 3 +++ lib/pages/store.dart | 7 ++++++- 6 files changed, 24 insertions(+), 5 deletions(-) diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 589910c..6a6e293 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -334,17 +334,18 @@ "storeCategoryChannel": "Kanäle", "storeCategoryWeb": "Web", "storeCategoryOrchestrator": "Orchestrierung", + "storeCategoryDocument": "Dokument", "storeCatDocuments": "Dokumente", "storeCatTextLanguage": "Text & Sprache", "storeCatData": "Daten & Formate", "storeCatAiLlm": "KI & LLM", "storeCatWebApi": "Web & APIs", "storeCatAnalysisDomain": "Analyse & Domäne", - "storeCatStudioThemes": "Studio & Themes", + "storeCatStudioThemes": "Studio & Designs", "storeCatExamplesDev": "Beispiele & Dev", "storeCatOther": "Sonstiges", "storeSegmentModules": "Module", - "storeSegmentStudio": "Studio & Themes", + "storeSegmentStudio": "Studio & Designs", "storeNResults": "{n} Treffer", "@storeNResults": { "placeholders": { diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 6adb04f..caec21b 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -342,6 +342,7 @@ "storeCategoryChannel": "Channels", "storeCategoryWeb": "Web", "storeCategoryOrchestrator": "Orchestration", + "storeCategoryDocument": "Document", "storeCatDocuments": "Documents", "storeCatTextLanguage": "Text & Language", "storeCatData": "Data & Formats", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 8f1c9a3..01eeb46 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -1568,6 +1568,12 @@ abstract class AppLocalizations { /// **'Orchestration'** String get storeCategoryOrchestrator; + /// No description provided for @storeCategoryDocument. + /// + /// In en, this message translates to: + /// **'Document'** + String get storeCategoryDocument; + /// No description provided for @storeCatDocuments. /// /// In en, this message translates to: diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart index a25dc15..bfac38e 100644 --- a/lib/l10n/app_localizations_de.dart +++ b/lib/l10n/app_localizations_de.dart @@ -847,6 +847,9 @@ class AppLocalizationsDe extends AppLocalizations { @override String get storeCategoryOrchestrator => 'Orchestrierung'; + @override + String get storeCategoryDocument => 'Dokument'; + @override String get storeCatDocuments => 'Dokumente'; @@ -866,7 +869,7 @@ class AppLocalizationsDe extends AppLocalizations { String get storeCatAnalysisDomain => 'Analyse & Domäne'; @override - String get storeCatStudioThemes => 'Studio & Themes'; + String get storeCatStudioThemes => 'Studio & Designs'; @override String get storeCatExamplesDev => 'Beispiele & Dev'; @@ -878,7 +881,7 @@ class AppLocalizationsDe extends AppLocalizations { String get storeSegmentModules => 'Module'; @override - String get storeSegmentStudio => 'Studio & Themes'; + String get storeSegmentStudio => 'Studio & Designs'; @override String storeNResults(int n) { diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index 8bf9a7e..c1de911 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -859,6 +859,9 @@ class AppLocalizationsEn extends AppLocalizations { @override String get storeCategoryOrchestrator => 'Orchestration'; + @override + String get storeCategoryDocument => 'Document'; + @override String get storeCatDocuments => 'Documents'; diff --git a/lib/pages/store.dart b/lib/pages/store.dart index 95dbf41..b4ac189 100644 --- a/lib/pages/store.dart +++ b/lib/pages/store.dart @@ -860,8 +860,13 @@ String _categoryDisplayName(BuildContext ctx, String wire) { return l.storeCategoryWeb; case 'orchestrator': return l.storeCategoryOrchestrator; + case 'document': + case 'doc': + return l.storeCategoryDocument; default: - return wire; + // Unknown wire categories still render presentably — + // capitalized, never a raw lowercase token. + return wire[0].toUpperCase() + wire.substring(1); } }