Update dependencies, handle unset env better, improved translations
This commit is contained in:
parent
e7f3e7a1a6
commit
3f20d67f1a
5
src/lib/config.ts
Normal file
5
src/lib/config.ts
Normal 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
|
||||||
|
: '';
|
@ -18,7 +18,7 @@
|
|||||||
"otaUpdates": "OTA updates",
|
"otaUpdates": "OTA updates",
|
||||||
"enableMdns": "mDNS",
|
"enableMdns": "mDNS",
|
||||||
"fetchEuroPrice": "Fetch € price",
|
"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.",
|
"tzOffsetHelpText": "A restart is required to apply TZ offset.",
|
||||||
"screens": "Screens",
|
"screens": "Screens",
|
||||||
"wifiTxPowerText": "In most cases this does not need to be set.",
|
"wifiTxPowerText": "In most cases this does not need to be set.",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"backgroundColor": "Color de fondo",
|
"backgroundColor": "Color de fondo",
|
||||||
"ledBrightness": "Brillo LED",
|
"ledBrightness": "Brillo LED",
|
||||||
"screens": "Pantallas",
|
"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",
|
"fullRefreshEvery": "Actualización completa cada",
|
||||||
"timePerScreen": "Tiempo por pantalla",
|
"timePerScreen": "Tiempo por pantalla",
|
||||||
"tzOffsetHelpText": "Es necesario reiniciar para aplicar la compensación.",
|
"tzOffsetHelpText": "Es necesario reiniciar para aplicar la compensación.",
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"ledBrightness": "LED helderheid",
|
"ledBrightness": "LED helderheid",
|
||||||
"timePerScreen": "Tijd per scherm",
|
"timePerScreen": "Tijd per scherm",
|
||||||
"fullRefreshEvery": "Volledig verversen elke",
|
"fullRefreshEvery": "Volledig verversen elke",
|
||||||
"shortAmountsWarning": "Lage waardes verkorten levensduur",
|
"shortAmountsWarning": "Lage waardes verkorten mogelijk levensduur schermen",
|
||||||
"tzOffsetHelpText": "Herstart nodig voor toepassen afwijking.",
|
"tzOffsetHelpText": "Herstart nodig voor toepassen afwijking.",
|
||||||
"enableMdns": "mDNS",
|
"enableMdns": "mDNS",
|
||||||
"ledPowerOnTest": "LED test bij aanzetten",
|
"ledPowerOnTest": "LED test bij aanzetten",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<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';
|
import { Container, Row, Toast, ToastBody } from 'sveltestrap';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PUBLIC_BASE_URL } from '$env/static/public';
|
import { PUBLIC_BASE_URL } from '$lib/config';
|
||||||
import { onDestroy } from 'svelte';
|
import { onDestroy } from 'svelte';
|
||||||
import { _ } from 'svelte-i18n';
|
import { _ } from 'svelte-i18n';
|
||||||
import type { Writable } from 'svelte/store';
|
import type { Writable } from 'svelte/store';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PUBLIC_BASE_URL } from '$env/static/public';
|
import { PUBLIC_BASE_URL } from '$lib/config';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
|
|
||||||
import { _ } from 'svelte-i18n';
|
import { _ } from 'svelte-i18n';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { PUBLIC_BASE_URL } from '$env/static/public';
|
import { PUBLIC_BASE_URL } from '$lib/config';
|
||||||
|
|
||||||
import { _ } from 'svelte-i18n';
|
import { _ } from 'svelte-i18n';
|
||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
|
Loading…
Reference in New Issue
Block a user