From 418e0cd149f1af50527e1f1f2c6fbec254779681 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 6 Jul 2023 00:18:54 +0200 Subject: [PATCH] Fix: make text a translation --- UI/BigComponents/ThemeButton.svelte | 3 ++- langs/en.json | 1 + langs/nl.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/BigComponents/ThemeButton.svelte b/UI/BigComponents/ThemeButton.svelte index aa16ce717..cff51745d 100644 --- a/UI/BigComponents/ThemeButton.svelte +++ b/UI/BigComponents/ThemeButton.svelte @@ -7,6 +7,7 @@ import type { LayoutInformation } from "../../Models/ThemeConfig/LayoutConfig" import Tr from "../Base/Tr.svelte" import SubtleLink from "../Base/SubtleLink.svelte" + import Translations from "../i18n/Translations" export let theme: LayoutInformation export let isCustom: boolean = false @@ -81,7 +82,7 @@ {#if selected} - Press enter to open theme + {/if} diff --git a/langs/en.json b/langs/en.json index 61e6a186e..ae1d7e49d 100644 --- a/langs/en.json +++ b/langs/en.json @@ -227,6 +227,7 @@ }, "morescreen": { "createYourOwnTheme": "Create your own MapComplete theme from scratch", + "enterToOpen": "Press enter to open theme", "hiddenExplanation": "These themes are only accessible to those with the link. You have discovered {hidden_discovered} of {total_hidden} hidden themes.", "intro": "

More thematic maps?

Do you enjoy collecting geodata?
There are more themes available.", "noMatchingThemes": "No themes matched your search criteria", diff --git a/langs/nl.json b/langs/nl.json index 4775dd260..85206ce66 100644 --- a/langs/nl.json +++ b/langs/nl.json @@ -202,6 +202,7 @@ "logout": "Afmelden", "morescreen": { "createYourOwnTheme": "Maak je eigen MapComplete-kaart", + "enterToOpen": "Druk op enter om thema te openen", "hiddenExplanation": "Deze thema's zijn enkel zichtbaar indien je de link kent. Je hebt {hidden_discovered} van {total_hidden} verborgen thema's ontdekt.", "intro": "

Meer thematische kaarten?

Vind je het leuk om geodata te verzamelen?
Hier vind je meer kaartthema's.", "noMatchingThemes": "Geen enkel thema beantwoord je zoekopdracht",