commit | d2132fb673a335d57edf76921be99148a0813fc5 | [log] [tgz] |
---|---|---|
author | Simon Zünd <[email protected]> | Wed Apr 05 11:39:15 2023 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 05 12:27:41 2023 |
tree | 22df288022b616755a61aa889f3310c5e65e06ce | |
parent | 8ca9c92edd4d356418f6ab352b9ac5d0174f6c61 [diff] [blame] |
Fix translations for yet untyped action categories [email protected] Bug: None Change-Id: I9351e555c2e62d686cda3c4662f230440ecdeee6 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4402899 Commit-Queue: Simon Zünd <[email protected]> Reviewed-by: Alex Rudenko <[email protected]>
diff --git a/front_end/ui/legacy/ActionRegistration.ts b/front_end/ui/legacy/ActionRegistration.ts index 0cda0f9..6637d90 100644 --- a/front_end/ui/legacy/ActionRegistration.ts +++ b/front_end/ui/legacy/ActionRegistration.ts
@@ -344,6 +344,8 @@ case ActionCategory.NONE: return i18n.i18n.lockedString(''); } + // Not all categories are cleanly typed yet. Return the category as-is in this case. + return i18n.i18n.lockedString(category); } export const enum IconClass {