From 1f382fc8b4e18953f178502750a660075d61b7bc Mon Sep 17 00:00:00 2001 From: dsbaars Date: Fri, 17 Nov 2023 11:48:20 +0100 Subject: [PATCH] First translation strings --- src/lib/locales/en.json | 39 +++++++++++++++++++++++-------- src/lib/locales/nl.json | 25 ++++++++++++++++---- src/routes/Settings.svelte | 48 +++++++++++++++++++------------------- 3 files changed, 73 insertions(+), 39 deletions(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index af1745f..95a92d5 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -1,12 +1,31 @@ { - "my": { - "translation": { - "key": "Test" - } - }, - "section": { - "settings": { - "title": "Settings" - } + "section": { + "settings": { + "title": "Settings", + "textColor": "Text color", + "backgroundColor": "Background color", + "ledPowerOnTest": "LED power-on test", + "ledFlashOnBlock": "LED flash on new block", + "timePerScreen": "Time per screen", + "ledBrightness": "LED brightness", + "timezoneOffset": "Timezone offset", + "timeBetweenPriceUpdates": "Time between price updates", + "fullRefreshEvery": "Full refresh every", + "mempoolnstance": "Mempool Instance", + "hostnamePrefix": "Hostname prefix", + "StealFocusOnNewBlock": "Steal focus on new block", + "useBigCharsMcap": "Use big characters for market cap", + "otaUpdates": "OTA updates (restart required)", + "enableMdns": "mDNS (restart required)", + "fetchEuroPrice": "Fetch € price (restart required)" } -} \ No newline at end of file + }, + "colors": { + "black": "Black", + "white": "White" + }, + "time": { + "minutes": "minutes", + "seconds": "seconds" + } +} diff --git a/src/lib/locales/nl.json b/src/lib/locales/nl.json index 8427cfe..ecf6cdf 100644 --- a/src/lib/locales/nl.json +++ b/src/lib/locales/nl.json @@ -1,7 +1,22 @@ { - "section": { - "settings": { - "title": "Instellingen" - } + "section": { + "settings": { + "title": "Instellingen", + "textColor": "Tekstkleur", + "backgroundColor": "Achtergrondkleur", + "timeBetweenPriceUpdates": "Tijd tussen prijs updates", + "timezoneOffset": "Tijdzone afwijking", + "ledBrightness": "LED helderheid", + "timePerScreen": "Tijd per scherm", + "fullRefreshEvery": "Volledig verversen" } -} \ No newline at end of file + }, + "colors": { + "black": "Zwart", + "white": "Wit" + }, + "time": { + "minutes": "minuten", + "seconds": "seconden" + } +} diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index ececc43..d4557f8 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -51,7 +51,7 @@
- + - - + + - + - - + + - + - minutes + { $_('time.minutes') } - + - minutes + { $_('time.minutes') } - + - seconds + { $_('time.seconds') } Short amounts might shorten lifespan. - + - minutes + { $_('time.minutes') } A restart is required to apply TZ offset. - + - + - + - + - + - + - + - + - + - +