fix(store): localized category labels, 'Studio & Designs' tab in German
Some checks are pending
Security / Security check (push) Waiting to run
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:
parent
12b2e8327a
commit
5578c32710
6 changed files with 24 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue