diff --git a/assets/jsons/translations/en-EN.json b/assets/jsons/translations/en-EN.json index 89ade0a1..31537be2 100644 --- a/assets/jsons/translations/en-EN.json +++ b/assets/jsons/translations/en-EN.json @@ -1,18 +1,43 @@ { - "pages":{ - "settings":{ - "languages":{ - "en-EN": "English, UK", - "en-US": "English, US", - "fr-FR": "Français", - "es-ES": "Español", - "translated":{ - "en-EN": "English, United Kingdom", - "en-US": "English, USA", - "fr-FR": "French", - "es-ES": "Spanish" - } + "pages":{ + "settings":{ + "steam":{ + "title":"Steam", + "description":"If you log out of Steam, you will have to log back in to download a new version of Beat Saber.", + "logout":"Log out" + }, + "appearance":{ + "title":"Appearance", + "description":"Choose the two main colours of BSManager.", + "reset":"Reset", + "sub-title":"Theme", + "themes":{ + "dark":"Dark", + "light": "Light", + "os": "Sync with computer" } - } - } + }, + "installation-folder":{ + "title":"Installation folder", + "description":"Change the default folder for Beat Saber versions and other upcoming features.", + "choose-folder":"Choose folder" + }, + "language":{ + "title":"Language", + "description":"Select a language.", + "languages":{ + "en-EN": "English, UK", + "en-US": "English, US", + "fr-FR": "Français", + "es-ES": "Español", + "translated":{ + "en-EN": "English, United Kingdom", + "en-US": "English, USA", + "fr-FR": "French", + "es-ES": "Spanish" + } + } + } + } + } } \ No newline at end of file diff --git a/assets/jsons/translations/en-US.json b/assets/jsons/translations/en-US.json index ab1f6aa0..6f5c4fd2 100644 --- a/assets/jsons/translations/en-US.json +++ b/assets/jsons/translations/en-US.json @@ -1,18 +1,43 @@ { - "pages":{ - "settings":{ - "languages":{ - "en-EN": "English, UK", - "en-US": "English, US", - "fr-FR": "Français", - "es-ES": "Español", - "translated":{ - "en-EN": "English, United Kingdom", - "en-US": "English, United States", - "fr-FR": "French", - "es-ES": "Spanish" - } + "pages":{ + "settings":{ + "steam":{ + "title":"Steam", + "description":"If you log out of Steam, you will have to log back in to download a new version of Beat Saber.", + "logout":"Log out" + }, + "appearance":{ + "title":"Appearance", + "description":"Choose the two main colors of BSManager.", + "reset":"Reset", + "sub-title":"Theme", + "themes":{ + "dark":"Dark", + "light": "Light", + "os": "Sync with computer" } - } - } + }, + "installation-folder":{ + "title":"Installation folder", + "description":"Change the default folder for Beat Saber versions and other upcoming features.", + "choose-folder":"Choose folder" + }, + "language":{ + "title":"Language", + "description":"Selects a language.", + "languages":{ + "en-EN": "English, UK", + "en-US": "English, US", + "fr-FR": "Français", + "es-ES": "Español", + "translated":{ + "en-EN": "English, United Kingdom", + "en-US": "English, United States", + "fr-FR": "French", + "es-ES": "Spanish" + } + } + } + } + } } \ No newline at end of file diff --git a/assets/jsons/translations/es-ES.json b/assets/jsons/translations/es-ES.json index 4391c47b..b8340e17 100644 --- a/assets/jsons/translations/es-ES.json +++ b/assets/jsons/translations/es-ES.json @@ -1,18 +1,43 @@ { - "pages":{ - "settings":{ - "languages":{ - "en-EN": "English, UK", - "en-US": "English, US", - "fr-FR": "Français", - "es-ES": "Español", - "translated":{ - "en-EN": "Inglés, Reino Unido", - "en-US": "Inglés, Estados Unidos", - "fr-FR": "Francés", - "es-ES": "Español" - } + "pages":{ + "settings":{ + "steam":{ + "title":"Steam", + "description":"Si sales de Steam, tendrás que volver a entrar para descargar una nueva versión de Beat Saber.", + "logout":"Desconectar" + }, + "appearance":{ + "title":"Apariencia", + "description":"Elija los dos colores principales de BSManager.", + "reset":"Reiniciar", + "sub-title":"Tema", + "themes":{ + "dark":"Oscuro", + "light": "Claro", + "os": "Sincronizar con ordenador" } - } - } -} \ No newline at end of file + }, + "installation-folder":{ + "title":"Carpeta de instalación", + "description":"Cambia la carpeta por defecto para las versiones de Beat Saber y otras características próximas.", + "choose-folder":"Elija la carpeta" + }, + "language":{ + "title":"Idioma", + "description":"Selecciona un idioma.", + "languages":{ + "en-EN": "English, UK", + "en-US": "English, US", + "fr-FR": "Français", + "es-ES": "Español", + "translated":{ + "en-EN": "Inglés, Reino Unido", + "en-US": "Inglés, Estados Unidos", + "fr-FR": "Francés", + "es-ES": "Español" + } + } + } + } + } +} diff --git a/assets/jsons/translations/fr-FR.json b/assets/jsons/translations/fr-FR.json index fc928fee..f7044ebb 100644 --- a/assets/jsons/translations/fr-FR.json +++ b/assets/jsons/translations/fr-FR.json @@ -1,18 +1,43 @@ { - "pages":{ - "settings":{ - "languages":{ - "en-EN": "English, UK", - "en-US": "English, US", - "fr-FR": "Français", - "es-ES": "Español", - "translated":{ - "en-EN": "Anglais, Royaume-Uni", - "en-US": "Anglais, États-Unis", - "fr-FR": "Français", - "es-ES": "Espagnol" - } - } - } - } -} \ No newline at end of file + "pages":{ + "settings":{ + "steam":{ + "title":"Steam", + "description":"Si tu te déconnectes de Steam, tu devras te reconnecter pour télécharger une nouvelle version de Beat Saber.", + "logout":"Déconnexion" + }, + "appearance":{ + "title":"Apparence", + "description":"Choisi les deux couleurs principales de BSManager.", + "reset":"Réinitialiser", + "sub-title":"Thème", + "themes":{ + "dark":"Sombre", + "light": "Clair", + "os": "Synchroniser avec l'ordinateur" + } + }, + "installation-folder":{ + "title":"Dossier d'installation", + "description":"Change le dossier par défaut pour les versions de Beat Saber et d'autres fonctionnalités à venir.", + "choose-folder":"Choisir un dossier" + }, + "language":{ + "title":"Langage", + "description":"Sélectionne un langage.", + "languages":{ + "en-EN": "English, UK", + "en-US": "English, US", + "fr-FR": "Français", + "es-ES": "Español", + "translated":{ + "en-EN": "Anglais, Royaume-Uni", + "en-US": "Anglais, États-Unis", + "fr-FR": "Français", + "es-ES": "Espagnol" + } + } + } + } + } +} diff --git a/src/renderer/components/settings/setting-container.component.tsx b/src/renderer/components/settings/setting-container.component.tsx index 77f215d2..6cc41c30 100644 --- a/src/renderer/components/settings/setting-container.component.tsx +++ b/src/renderer/components/settings/setting-container.component.tsx @@ -1,11 +1,15 @@ import { ReactNode } from "react"; +import { useTranslation } from "renderer/hooks/use-translation.hook"; export function SettingContainer({className, title, minorTitle, description, children}: {className?: string, title?: string, minorTitle?: string, description?: string, children?: ReactNode}) { + + const t = useTranslation(); + return (
{description}
} + { title &&{t(description)}
} { children }