From ceb8f164b7533134055f4d083444ff8ee0f2807c Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:07:15 -0300 Subject: [PATCH] i18n for sidebar --- src/locales/en/translation.json | 3 ++- src/locales/pt/translation.json | 3 ++- src/renderer/src/components/sidebar/sidebar.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 69bec6d3..e9423f75 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -15,7 +15,8 @@ "downloading": "{{title}} ({{percentage}} - Downloading…)", "filter": "Filter library", "home": "Home", - "queued": "{{title}} (Queued)" + "queued": "{{title}} (Queued)", + "game_has_no_executable": "Game has no executable selected" }, "header": { "search": "Search games", diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index 38250c3a..08b73428 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -16,7 +16,8 @@ "filter": "Filtrar biblioteca", "home": "Início", "follow_us": "Acompanhe-nos", - "queued": "{{title}} (Na fila)" + "queued": "{{title}} (Na fila)", + "game_has_no_executable": "Jogo não possui executável selecionado" }, "header": { "search": "Buscar jogos", diff --git a/src/renderer/src/components/sidebar/sidebar.tsx b/src/renderer/src/components/sidebar/sidebar.tsx index f3ab5c04..3032359e 100644 --- a/src/renderer/src/components/sidebar/sidebar.tsx +++ b/src/renderer/src/components/sidebar/sidebar.tsx @@ -137,7 +137,7 @@ export function Sidebar() { if (game.executablePath) { window.electron.openGame(game.id, game.executablePath); } else { - showWarningToast("Jogo não possui executável selecionado"); + showWarningToast(t("game_has_no_executable")); } } };