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 {