add translation for "open command palette" command

This commit is contained in:
Chris Kruining 2025-01-07 10:06:44 +01:00
parent 2c293694c0
commit 34b30b2bc2
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,9 @@
{ {
"shell": {
"command": {
"openCommandPalette": "Open command palette"
}
},
"page": { "page": {
"welcome": { "welcome": {
"title": "Hi, welcome!", "title": "Hi, welcome!",

View file

@ -1,4 +1,9 @@
{ {
"shell": {
"command": {
"openCommandPalette": "Open commando palet"
}
},
"page": { "page": {
"welcome": { "welcome": {
"title": "Hoi, welkom!", "title": "Hoi, welkom!",

View file

@ -28,7 +28,7 @@ export default function Editor(props: ParentProps) {
const lightness = createMemo(() => colorScheme() === ColorScheme.Light ? .9 : .2); const lightness = createMemo(() => colorScheme() === ColorScheme.Light ? .9 : .2);
const commands = [ const commands = [
createCommand('open command palette', () => { createCommand('shell.command.openCommandPalette', () => {
commandPalette()?.show(); commandPalette()?.show();
}, { key: 'p', modifier: Modifier.Control | Modifier.Shift }), }, { key: 'p', modifier: Modifier.Control | Modifier.Shift }),
]; ];