From 58dff75f64ca84cf25213281b9f9ec08af0e5934 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 5 Jun 2024 22:42:46 -0300 Subject: [PATCH] i18n --- src/locales/en/translation.json | 8 +++++++- src/locales/pt/translation.json | 8 +++++++- .../modals/game-options-modal.tsx | 19 +++++++------------ 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index d43a2323..ee1d81fb 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -99,7 +99,13 @@ "screenshot": "Screenshot {{number}}", "open_screenshot": "Open screenshot {{number}}", "download_settings": "Download settings", - "downloader": "Downloader" + "downloader": "Downloader", + "select_executable": "Select executable", + "no_executable_selected": "No executable selected", + "open_folder": "Open folder", + "create_shortcut": "Create shortcut", + "installer_path": "Installer path", + "remove_installer": "Remove installer" }, "activation": { "title": "Activate Hydra", diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index 18dbe385..80aa040e 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -96,7 +96,13 @@ "screenshot": "Captura de tela {{number}}", "open_screenshot": "Ver captura de tela {{number}}", "download_settings": "Ajustes do download", - "downloader": "Downloader" + "downloader": "Downloader", + "select_executable": "Selecionar executável", + "no_executable_selected": "Nenhum executável selecionado", + "open_folder": "Abrir pasta", + "create_shortcut": "Criar atalho", + "installer_path": "Caminho do instalador", + "remove_installer": "Remover instalador" }, "activation": { "title": "Ativação", diff --git a/src/renderer/src/pages/game-details/modals/game-options-modal.tsx b/src/renderer/src/pages/game-details/modals/game-options-modal.tsx index 656c20b6..e6e049c9 100644 --- a/src/renderer/src/pages/game-details/modals/game-options-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/game-options-modal.tsx @@ -104,18 +104,14 @@ export function GameOptionsModal({ readOnly theme="dark" disabled - placeholder="Selecione um executável" + placeholder={t("no_executable_selected")} /> @@ -125,7 +121,7 @@ export function GameOptionsModal({ style={{ alignSelf: "flex-end" }} onClick={handleOpenGameExecutablePath} disabled={!game.executablePath} - title={"Abrir pasta"} + title={t("open_folder")} > @@ -135,7 +131,7 @@ export function GameOptionsModal({ style={{ alignSelf: "flex-end" }} theme="outline" disabled={deleting || !game.executablePath} - title={"Criar atalho"} + title={t("create_shortcut")} > @@ -146,12 +142,11 @@ export function GameOptionsModal({ {game.folderName && (
@@ -172,7 +167,7 @@ export function GameOptionsModal({ onClick={() => { setShowDeleteModal(true); }} - title={"Remover instalador"} + title={t("remove_installer")} >