fix(store): localized category labels, 'Studio & Designs' tab in German
Some checks are pending
Security / Security check (push) Waiting to run

'document' rendered as a raw lowercase English token next to
localized neighbours; unknown categories at least capitalize.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-18 00:34:28 +02:00
parent 12b2e8327a
commit 5578c32710
6 changed files with 24 additions and 5 deletions

View file

@ -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);
}
}