From 1b963a99c15322a07a6fa861c618face8a196200 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Wed, 1 Mar 2023 01:05:55 +0100 Subject: [PATCH] fix shared maps page title not translated --- assets/jsons/translations/en.json | 4 ++++ assets/jsons/translations/es.json | 3 +++ assets/jsons/translations/fr.json | 3 +++ src/renderer/pages/maps-page.component.tsx | 6 +++++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/assets/jsons/translations/en.json b/assets/jsons/translations/en.json index 712517ca..f7797fc9 100644 --- a/assets/jsons/translations/en.json +++ b/assets/jsons/translations/en.json @@ -18,6 +18,9 @@ "settings": "Settings" }, "pages": { + "shared-maps":{ + "title": "Shared maps" + }, "version-viewer": { "launch-mods": { "oculus": "Oculus Mod", @@ -28,6 +31,7 @@ "debug-description": "Enables the output log window for IPA. This will show the debug console that mods use." }, "maps": { + "title": "Shared maps", "search-bar": { "search-placeholder": "Search a map", "filters-btn": "Filters", diff --git a/assets/jsons/translations/es.json b/assets/jsons/translations/es.json index f4949e43..d73d295f 100644 --- a/assets/jsons/translations/es.json +++ b/assets/jsons/translations/es.json @@ -18,6 +18,9 @@ "settings": "Ajustes" }, "pages": { + "shared-maps":{ + "title": "Mapas comunes" + }, "version-viewer": { "launch-mods": { "oculus": "Oculus Mod", diff --git a/assets/jsons/translations/fr.json b/assets/jsons/translations/fr.json index a49483d6..3a74144f 100644 --- a/assets/jsons/translations/fr.json +++ b/assets/jsons/translations/fr.json @@ -18,6 +18,9 @@ "settings": "Paramètres" }, "pages": { + "shared-maps":{ + "title": "Maps partagées" + }, "version-viewer": { "launch-mods": { "oculus": "Mode Oculus", diff --git a/src/renderer/pages/maps-page.component.tsx b/src/renderer/pages/maps-page.component.tsx index ac26419f..4bc99672 100644 --- a/src/renderer/pages/maps-page.component.tsx +++ b/src/renderer/pages/maps-page.component.tsx @@ -1,11 +1,15 @@ import { MapsPlaylistsPanel } from "renderer/components/maps-mangement-components/maps-playlists-panel.component"; import { Slideshow } from "renderer/components/slideshow/slideshow.component"; +import { useTranslation } from "renderer/hooks/use-translation.hook"; export function MapsPage() { + + const t = useTranslation(); + return (