From 34b30b2bc22ec15d7374a390a7a99e559aa39899 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Tue, 7 Jan 2025 10:06:44 +0100 Subject: [PATCH] add translation for "open command palette" command --- src/i18n/en-GB.json | 5 +++++ src/i18n/nl-NL.json | 5 +++++ src/routes/(editor).tsx | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/i18n/en-GB.json b/src/i18n/en-GB.json index 39f6209..093764a 100644 --- a/src/i18n/en-GB.json +++ b/src/i18n/en-GB.json @@ -1,4 +1,9 @@ { + "shell": { + "command": { + "openCommandPalette": "Open command palette" + } + }, "page": { "welcome": { "title": "Hi, welcome!", diff --git a/src/i18n/nl-NL.json b/src/i18n/nl-NL.json index b55871c..2a8e47d 100644 --- a/src/i18n/nl-NL.json +++ b/src/i18n/nl-NL.json @@ -1,4 +1,9 @@ { + "shell": { + "command": { + "openCommandPalette": "Open commando palet" + } + }, "page": { "welcome": { "title": "Hoi, welkom!", diff --git a/src/routes/(editor).tsx b/src/routes/(editor).tsx index de24c17..608fe69 100644 --- a/src/routes/(editor).tsx +++ b/src/routes/(editor).tsx @@ -28,7 +28,7 @@ export default function Editor(props: ParentProps) { const lightness = createMemo(() => colorScheme() === ColorScheme.Light ? .9 : .2); const commands = [ - createCommand('open command palette', () => { + createCommand('shell.command.openCommandPalette', () => { commandPalette()?.show(); }, { key: 'p', modifier: Modifier.Control | Modifier.Shift }), ];