From 3f20d67f1abc10b20ddecfb5aa0ff4eb78c4c149 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Thu, 30 Nov 2023 21:53:37 +0100 Subject: [PATCH] Update dependencies, handle unset env better, improved translations --- src/lib/config.ts | 5 + src/lib/locales/en.json | 2 +- src/lib/locales/es.json | 2 +- src/lib/locales/nl.json | 2 +- src/routes/+page.svelte | 2 +- src/routes/Control.svelte | 2 +- src/routes/Settings.svelte | 2 +- src/routes/Status.svelte | 2 +- yarn.lock | 876 ++++++++++++++++++++++--------------- 9 files changed, 528 insertions(+), 367 deletions(-) create mode 100644 src/lib/config.ts diff --git a/src/lib/config.ts b/src/lib/config.ts new file mode 100644 index 0000000..55130ff --- /dev/null +++ b/src/lib/config.ts @@ -0,0 +1,5 @@ +import * as publicEnv from '$env/static/public'; + +export const PUBLIC_BASE_URL: string = Object.hasOwn(publicEnv, 'PUBLIC_BASE_URL') + ? publicEnv.PUBLIC_BASE_URL + : ''; diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index ca82f1f..8d95254 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -18,7 +18,7 @@ "otaUpdates": "OTA updates", "enableMdns": "mDNS", "fetchEuroPrice": "Fetch € price", - "shortAmountsWarning": "Short amounts might shorten lifespan.", + "shortAmountsWarning": "Short amounts might shorten lifespan of the displays", "tzOffsetHelpText": "A restart is required to apply TZ offset.", "screens": "Screens", "wifiTxPowerText": "In most cases this does not need to be set.", diff --git a/src/lib/locales/es.json b/src/lib/locales/es.json index f2dd7af..b6cdcc5 100644 --- a/src/lib/locales/es.json +++ b/src/lib/locales/es.json @@ -6,7 +6,7 @@ "backgroundColor": "Color de fondo", "ledBrightness": "Brillo LED", "screens": "Pantallas", - "shortAmountsWarning": "Cantidades pequeñas pueden acortar la vida útil.", + "shortAmountsWarning": "Pequeñas cantidades pueden acortar la vida útil de los displays", "fullRefreshEvery": "Actualización completa cada", "timePerScreen": "Tiempo por pantalla", "tzOffsetHelpText": "Es necesario reiniciar para aplicar la compensación.", diff --git a/src/lib/locales/nl.json b/src/lib/locales/nl.json index adace01..f058294 100644 --- a/src/lib/locales/nl.json +++ b/src/lib/locales/nl.json @@ -9,7 +9,7 @@ "ledBrightness": "LED helderheid", "timePerScreen": "Tijd per scherm", "fullRefreshEvery": "Volledig verversen elke", - "shortAmountsWarning": "Lage waardes verkorten levensduur", + "shortAmountsWarning": "Lage waardes verkorten mogelijk levensduur schermen", "tzOffsetHelpText": "Herstart nodig voor toepassen afwijking.", "enableMdns": "mDNS", "ledPowerOnTest": "LED test bij aanzetten", diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2f13bbe..4bc81ca 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,5 +1,5 @@