diff --git a/assets/jsons/translations/en-EN.json b/assets/jsons/translations/en-EN.json index c9aa9b1c..0dfbadc6 100644 --- a/assets/jsons/translations/en-EN.json +++ b/assets/jsons/translations/en-EN.json @@ -4,7 +4,8 @@ "verify": "Verify", "launch": "Launch", "mods": "Mods", - "maps": "Maps" + "maps": "Maps", + "cancel": "Cancel" }, "pages":{ "version-viewer":{ @@ -152,5 +153,52 @@ } } } + }, + "modals":{ + "guard":{ + "title": "Steam Guard", + "inputs":{ + "guard-code":{ + "label": "Guard Code", + "placeholder": "Enter your Guard code" + } + }, + "buttons":{ + "submit": "Login" + } + }, + "steam-login":{ + "title": "Steam Login", + "inputs":{ + "username":{ + "label": "Username", + "placeholder": "Enter your username" + }, + "password":{ + "label": "Password", + "placeholder": "Enter your password" + }, + "stay":{ + "label": "Stay connected" + } + }, + "buttons":{ + "submit": "Login" + } + }, + "bs-uninstall":{ + "title": "Uninstall", + "description": "Are you sure you want to uninstall BeatSaber {version} ? You will have to download it again to play it.", + "buttons":{ + "submit": "Uninstall" + } + }, + "install-folder":{ + "title": "Installation folder", + "description": "Changing the default installation folder will result in moving all installed data to the new folder.", + "buttons":{ + "submit": "Choose folder" + } + } } } \ No newline at end of file diff --git a/assets/jsons/translations/en-US.json b/assets/jsons/translations/en-US.json index c9aa9b1c..0dfbadc6 100644 --- a/assets/jsons/translations/en-US.json +++ b/assets/jsons/translations/en-US.json @@ -4,7 +4,8 @@ "verify": "Verify", "launch": "Launch", "mods": "Mods", - "maps": "Maps" + "maps": "Maps", + "cancel": "Cancel" }, "pages":{ "version-viewer":{ @@ -152,5 +153,52 @@ } } } + }, + "modals":{ + "guard":{ + "title": "Steam Guard", + "inputs":{ + "guard-code":{ + "label": "Guard Code", + "placeholder": "Enter your Guard code" + } + }, + "buttons":{ + "submit": "Login" + } + }, + "steam-login":{ + "title": "Steam Login", + "inputs":{ + "username":{ + "label": "Username", + "placeholder": "Enter your username" + }, + "password":{ + "label": "Password", + "placeholder": "Enter your password" + }, + "stay":{ + "label": "Stay connected" + } + }, + "buttons":{ + "submit": "Login" + } + }, + "bs-uninstall":{ + "title": "Uninstall", + "description": "Are you sure you want to uninstall BeatSaber {version} ? You will have to download it again to play it.", + "buttons":{ + "submit": "Uninstall" + } + }, + "install-folder":{ + "title": "Installation folder", + "description": "Changing the default installation folder will result in moving all installed data to the new folder.", + "buttons":{ + "submit": "Choose folder" + } + } } } \ No newline at end of file diff --git a/assets/jsons/translations/es-ES.json b/assets/jsons/translations/es-ES.json index e7778b80..fc66ba07 100644 --- a/assets/jsons/translations/es-ES.json +++ b/assets/jsons/translations/es-ES.json @@ -4,7 +4,8 @@ "verify": "Verificar", "launch": "Lanzar", "mods": "Mods", - "maps": "Maps" + "maps": "Maps", + "cancel": "Cancelar" }, "pages":{ "version-viewer":{ @@ -63,7 +64,7 @@ } } }, - + "notifications":{ "types":{ "error": "🚨 Error", @@ -153,5 +154,52 @@ } } } + }, + "modals":{ + "guard":{ + "title": "Steam Guard", + "inputs":{ + "guard-code":{ + "label": "Guard Código", + "placeholder": "Introduzca su código Guard" + } + }, + "buttons":{ + "submit": "Conéctate" + } + }, + "steam-login":{ + "title": "Steam Conectar", + "inputs":{ + "username":{ + "label": "Nombre de usuario", + "placeholder": "Introduzca su nombre de usuario" + }, + "password":{ + "label": "Contraseña", + "placeholder": "Introduzca su contraseña" + }, + "stay":{ + "label": "Manténgase conectado" + } + }, + "buttons":{ + "submit": "Inicio de sesión" + } + }, + "bs-uninstall":{ + "title": "Desinstalar", + "description": "¿Estás seguro de que quieres desinstalar BeatSaber {version}? Tendrás que descargarlo de nuevo para poder jugar.", + "buttons":{ + "submit": "Desinstalar" + } + }, + "install-folder":{ + "title": "Instalación Carpeta", + "description": "Al cambiar la carpeta de instalación por defecto, se moverán todos los datos instalados a la nueva carpeta.", + "buttons":{ + "submit": "Elija la carpeta" + } + } } } diff --git a/assets/jsons/translations/fr-FR.json b/assets/jsons/translations/fr-FR.json index 0f1877c1..f55d05af 100644 --- a/assets/jsons/translations/fr-FR.json +++ b/assets/jsons/translations/fr-FR.json @@ -4,7 +4,8 @@ "verify": "Vérifier", "launch": "Lancer", "mods": "Modes", - "maps": "Maps" + "maps": "Maps", + "cancel": "Annuler" }, "pages":{ "version-viewer":{ @@ -152,5 +153,52 @@ } } } + }, + "modals":{ + "guard":{ + "title": "Steam Guard", + "inputs":{ + "guard-code":{ + "label": "Code Guard", + "placeholder": "Entre ton code Guard" + } + }, + "buttons":{ + "submit": "Se connecter" + } + }, + "steam-login":{ + "title": "Connexion Steam", + "inputs":{ + "username":{ + "label": "Nom d'utilisateur", + "placeholder": "Entre ton nom d'utilisateur" + }, + "password":{ + "label": "Mot de passe", + "placeholder": "Entre ton mot de passe" + }, + "stay":{ + "label": "Rester connecté" + } + }, + "buttons":{ + "submit": "Se connecter" + } + }, + "bs-uninstall":{ + "title": "Désinstaller", + "description": "Est tu sûr de vouloir désinstaller BeatSaber {version} ? Tu vas devoir la retélécharger pour y jouer.", + "buttons":{ + "submit": "Désinstaller" + } + }, + "install-folder":{ + "title": "Dossier d'installation", + "description": "Changer le dossier d'installation par défaut, va engendrer le déplacement de toutes les données installer vers le nouveau dossier.", + "buttons":{ + "submit": "Choisir un dossier" + } + } } } diff --git a/src/renderer/components/modal/modal-types/guard-modal.component.tsx b/src/renderer/components/modal/modal-types/guard-modal.component.tsx index acd23189..11071f2f 100644 --- a/src/renderer/components/modal/modal-types/guard-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/guard-modal.component.tsx @@ -3,10 +3,12 @@ import { useState } from "react"; import BeatConflict from "../../../../../assets/images/apngs/beat-conflict.png" import { BsmImage } from "renderer/components/shared/bsm-image.component"; import { BsmButton } from "renderer/components/shared/bsm-button.component"; +import { useTranslation } from "renderer/hooks/use-translation.hook"; export function GuardModal({resolver}: {resolver: (x: ModalResponse) => void}) { const [guardCode, setGuardCode] = useState(''); + const t = useTranslation(); const login = () => { if(!guardCode){ return; } @@ -15,15 +17,15 @@ export function GuardModal({resolver}: {resolver: (x: ModalResponse) => void}) { return (
) diff --git a/src/renderer/components/modal/modal-types/installation-folder-modal.component.tsx b/src/renderer/components/modal/modal-types/installation-folder-modal.component.tsx index 5d38d328..2c06515a 100644 --- a/src/renderer/components/modal/modal-types/installation-folder-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/installation-folder-modal.component.tsx @@ -1,21 +1,22 @@ import { BsmButton } from "renderer/components/shared/bsm-button.component"; import { BsmImage } from "renderer/components/shared/bsm-image.component"; +import { useTranslation } from "renderer/hooks/use-translation.hook"; import { ModalExitCode, ModalResponse } from "renderer/services/modale.service"; import BeatConflict from "../../../../../assets/images/apngs/beat-conflict.png" export function InstallationFolderModal({resolver}: {resolver: (x: ModalResponse) => void}) { - + const t = useTranslation(); return ( <> -Changing the default installation folder for Beat Saber instances will cause all installed data to be moved to the new folder.
+{t("modals.install-folder.description")}