Update dependencies, handle unset env better, improved translations

This commit is contained in:
Djuri Baars 2023-11-30 21:53:37 +01:00
parent e7f3e7a1a6
commit 3f20d67f1a
9 changed files with 528 additions and 367 deletions

5
src/lib/config.ts Normal file
View file

@ -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
: '';

View file

@ -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.",

View file

@ -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.",

View file

@ -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",

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { PUBLIC_BASE_URL } from '$env/static/public';
import { PUBLIC_BASE_URL } from '$lib/config';
import { Container, Row, Toast, ToastBody } from 'sveltestrap';

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { PUBLIC_BASE_URL } from '$env/static/public';
import { PUBLIC_BASE_URL } from '$lib/config';
import { onDestroy } from 'svelte';
import { _ } from 'svelte-i18n';
import type { Writable } from 'svelte/store';

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { PUBLIC_BASE_URL } from '$env/static/public';
import { PUBLIC_BASE_URL } from '$lib/config';
import { createEventDispatcher } from 'svelte';
import { _ } from 'svelte-i18n';

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { PUBLIC_BASE_URL } from '$env/static/public';
import { PUBLIC_BASE_URL } from '$lib/config';
import { _ } from 'svelte-i18n';
import { writable } from 'svelte/store';

876
yarn.lock

File diff suppressed because it is too large Load diff