From 4aad230c6f6564dde370ed581a3e4d488713786d Mon Sep 17 00:00:00 2001 From: yar2000T Date: Mon, 27 Jan 2025 12:58:12 +0200 Subject: [PATCH] Added translation for tray menu --- locales/en/translation.json | 4 +++- src/main/app.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/locales/en/translation.json b/locales/en/translation.json index 2269646b..bf259e1d 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -74,8 +74,10 @@ }, "main": { "failed-to-start-header": "Kando failed to start", + "show-settings": "Show settings", "un-inhibit-shortcuts": "Re-enable Shortcuts", - "inhibit-shortcuts": "Temporarily Disable Shortcuts" + "inhibit-shortcuts": "Temporarily Disable Shortcuts", + "quit": "Quit" }, "properties": { "common": { diff --git a/src/main/app.ts b/src/main/app.ts index 68b01724..529d5f1e 100644 --- a/src/main/app.ts +++ b/src/main/app.ts @@ -1082,7 +1082,7 @@ export class KandoApp { // Add an entry to show the editor. template.push({ - label: 'Show Settings', + label: i18next.t('main.show-settings'), click: () => this.showEditor(), }); @@ -1111,7 +1111,7 @@ export class KandoApp { // Add an entry to quit the application. template.push({ - label: 'Quit', + label: i18next.t('main.quit'), role: 'quit', });