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 }), ];