diff --git a/src/lib/locales/de.json b/src/lib/locales/de.json index 0145246..7010bf6 100644 --- a/src/lib/locales/de.json +++ b/src/lib/locales/de.json @@ -30,7 +30,7 @@ "wifiTxPower": "WiFi-TX-Leistung", "settingsSaved": "Einstellungen gespeichert", "errorSavingSettings": "Fehler beim Speichern der Einstellungen", - "ownPriceSource": "BTClock-Preisquelle verwenden", + "ownDataSource": "BTClock-Datenquelle verwenden", "flAlwaysOn": "Displaybeleuchtung immer an" }, "control": { @@ -55,7 +55,8 @@ "wsMempoolConnection": "WS Mempool.space-Verbindung", "fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.", "uptime": "Betriebszeit", - "wifiSignalStrength": "WiFi-Signalstärke" + "wifiSignalStrength": "WiFi-Signalstärke", + "wsDataConnection": "BTClock-Datenquelle verbindung" } }, "colors": { diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index 3f634ad..771ca5f 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -29,7 +29,7 @@ "wifiTxPower": "WiFi TX power", "settingsSaved": "Settings saved", "errorSavingSettings": "Error saving settings", - "ownPriceSource": "Use BTClock price source", + "ownDataSource": "Use BTClock data source", "flMaxBrightness": "Frontlight brightness", "flAlwaysOn": "Frontlight always on" }, @@ -55,7 +55,8 @@ "wsMempoolConnection": "WS Mempool.space connection", "fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.", "uptime": "Uptime", - "wifiSignalStrength": "WiFi Signal strength" + "wifiSignalStrength": "WiFi Signal strength", + "wsDataConnection": "BTClock data-source connection" } }, "colors": { diff --git a/src/lib/locales/es.json b/src/lib/locales/es.json index e9b50c4..32e2291 100644 --- a/src/lib/locales/es.json +++ b/src/lib/locales/es.json @@ -28,7 +28,7 @@ "wifiTxPowerText": "En la mayoría de los casos no es necesario configurar esto.", "settingsSaved": "Configuración guardada", "errorSavingSettings": "Error al guardar la configuración", - "ownPriceSource": "Usar fuente de precios BTClock", + "ownDataSource": "Utilice la fuente de datos BTClock", "flMaxBrightness": "Brillo de luz de la pantalla", "flAlwaysOn": "Luz de la pantalla siempre encendida" }, @@ -54,7 +54,8 @@ "uptime": "Tiempo de funcionamiento", "fetchEuroNote": "Si utiliza \"Obtener precio en €\", la conexión de Precio WS mostrará ❌ ya que utiliza otra fuente de datos.", "title": "Estado", - "wifiSignalStrength": "Fuerza de la señal WiFi" + "wifiSignalStrength": "Fuerza de la señal WiFi", + "wsDataConnection": "Conexión de fuente de datos BTClock" } }, "button": { diff --git a/src/lib/locales/nl.json b/src/lib/locales/nl.json index 1c82e93..e04bfef 100644 --- a/src/lib/locales/nl.json +++ b/src/lib/locales/nl.json @@ -29,7 +29,7 @@ "wifiTxPowerText": "Meestal hoeft dit niet aangepast te worden.", "settingsSaved": "Instellingen opgeslagen", "errorSavingSettings": "Fout bij opslaan instellingen", - "ownPriceSource": "Gebruik BTClock prijs bron", + "ownDataSource": "BTClock-gegevensbron gebruiken", "flMaxBrightness": "Displaylicht helderheid", "flAlwaysOn": "Displaylicht altijd aan" }, @@ -54,7 +54,8 @@ "wsMempoolConnection": "WS Mempool.space verbinding", "fetchEuroNote": "Wanneer je \"Toon € prijs\" aanzet, zal de prijsverbinding als ❌ verbroken getoond worden vanwege het gebruik van een andere bron.", "uptime": "Uptime", - "wifiSignalStrength": "WiFi signaalsterkte" + "wifiSignalStrength": "WiFi signaalsterkte", + "wsDataConnection": "BTClock-gegevensbron verbinding" } }, "colors": { diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 2614005..558807b 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -361,11 +361,11 @@
- {$_('section.status.wsPriceConnection')}:
-
- {#if $status.connectionStatus && $status.connectionStatus.price}
- ✅
- {:else}
- ❌
- {/if}
-
- -
- {$_('section.status.wsMempoolConnection')}:
-
- {#if $status.connectionStatus && $status.connectionStatus.blocks}
- ✅
- {:else}
- ❌
- {/if}
-
+ {#if !$settings.ownDataSource}
+ {$_('section.status.wsPriceConnection')}:
+
+ {#if $status.connectionStatus && $status.connectionStatus.price}
+ ✅
+ {:else}
+ ❌
+ {/if}
+
+ -
+ {$_('section.status.wsMempoolConnection')}:
+
+ {#if $status.connectionStatus && $status.connectionStatus.blocks}
+ ✅
+ {:else}
+ ❌
+ {/if}
+
+ {:else}
+ {$_('section.status.wsDataConnection')}:
+
+ {#if $status.connectionStatus && $status.connectionStatus.price}
+ ✅
+ {:else}
+ ❌
+ {/if}
+
+ {/if}
{#if $settings.fetchEurPrice}
{$_('section.status.fetchEuroNote')}
{/if}