mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 16:57:00 +08:00
DevTools: Update Snippets context menu text
Ported from CL https://chromium-review.googlesource.com/c/chromium/src/+/1854244 Update Snippets menu text from "New" to "Create new snippet" to improve the context of the action and localizability. https://imgur.com/a/2rbupBD Bug: 941561 Change-Id: I4dbfc2307c83e5714d81364c6b4e55402583dcdf Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1874338 Reviewed-by: Lorne Mitchell <lomitch@microsoft.com> Commit-Queue: Christy Chen <chrche@microsoft.com>
This commit is contained in:
@@ -266,7 +266,7 @@ Sources.SnippetsNavigatorView = class extends Sources.NavigatorView {
|
||||
*/
|
||||
handleContextMenu(event) {
|
||||
const contextMenu = new UI.ContextMenu(event);
|
||||
contextMenu.headerSection().appendItem(Common.UIString('New'), () => this.create(Snippets.project, ''));
|
||||
contextMenu.headerSection().appendItem(ls`Create new snippet`, () => this.create(Snippets.project, ''));
|
||||
contextMenu.show();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,9 +12,6 @@
|
||||
<message name="IDS_DEVTOOLS_03bfaee27b3b5cfb28deef84a0f416e5" desc="Title of the sources threads">
|
||||
Threads
|
||||
</message>
|
||||
<message name="IDS_DEVTOOLS_03c2e7e41ffc181a4e84080b4710e81e" desc="A context menu item in the Sources Navigator of the Sources panel">
|
||||
New
|
||||
</message>
|
||||
<message name="IDS_DEVTOOLS_05184fe2fb6c76214bc56796837f1c9b" desc="Title of an action in the debugger tool to next call frame">
|
||||
Next call frame
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user