diff --git a/client/src/components/ConnectionPlaceholder.tsx b/client/src/components/ConnectionPlaceholder.tsx index 7aca7b9..2732345 100644 --- a/client/src/components/ConnectionPlaceholder.tsx +++ b/client/src/components/ConnectionPlaceholder.tsx @@ -40,7 +40,7 @@ export default function ConnectionPlaceholder() { <>

{text.ipMissingTitle}

{text.ipMissingDesc}

-

?ip=10.0.0.119

+

?ip=

) : isConnecting ? ( <> @@ -53,7 +53,7 @@ export default function ConnectionPlaceholder() {

{error && !isLikelyNetworkFetchError(error) ? error : text.failedDesc}

-

{text.failedHint}

+

{fmt(text.failedHint, { ip })}

)} diff --git a/client/src/locales/data-de.json b/client/src/locales/data-de.json index f6d2b85..5f3967a 100644 --- a/client/src/locales/data-de.json +++ b/client/src/locales/data-de.json @@ -5,7 +5,7 @@ "connecting": "Verbindung zu {ip}…", "failedTitle": "Verbindung fehlgeschlagen", "failedDesc": "Das Gerät ist nicht erreichbar. Stellen Sie sicher, dass diese Seite und das Gerät im selben Netzwerk sind und die IP stimmt.", - "failedHint": "Geben Sie das Gerät in der URL an, z.B. ?ip=10.0.0.119" + "failedHint": "Geben Sie das Gerät in der URL an, z.B. ?ip={ip}" }, "home": { "audioSet": "Audioeinstellung", diff --git a/client/src/locales/data-en.json b/client/src/locales/data-en.json index 999d332..6f14830 100644 --- a/client/src/locales/data-en.json +++ b/client/src/locales/data-en.json @@ -5,7 +5,7 @@ "connecting": "Connecting to {ip}…", "failedTitle": "Connection failed", "failedDesc": "Can't reach the device. Make sure this page and the device are on the same network, and that the IP is correct.", - "failedHint": "Specify the device in the URL, e.g. ?ip=10.0.0.119" + "failedHint": "Specify the device in the URL, e.g. ?ip={ip}" }, "home": { "audioSet": "Audio setting", diff --git a/client/src/locales/data-es.json b/client/src/locales/data-es.json index efb0c2e..387fb52 100644 --- a/client/src/locales/data-es.json +++ b/client/src/locales/data-es.json @@ -5,7 +5,7 @@ "connecting": "Conectando a {ip}…", "failedTitle": "Conexión fallida", "failedDesc": "No se puede alcanzar el dispositivo. Compruebe que esta página y el dispositivo estén en la misma red y que la IP sea correcta.", - "failedHint": "Especifique el dispositivo en la URL, p. ej. ?ip=10.0.0.119" + "failedHint": "Especifique el dispositivo en la URL, p. ej. ?ip={ip}" }, "home": { "audioSet": "Configuración de audio", diff --git a/client/src/locales/data-fr.json b/client/src/locales/data-fr.json index 6c3f3ee..2d2d3b1 100644 --- a/client/src/locales/data-fr.json +++ b/client/src/locales/data-fr.json @@ -5,7 +5,7 @@ "connecting": "Connexion à {ip}…", "failedTitle": "Échec de la connexion", "failedDesc": "Impossible d'atteindre l'appareil. Vérifiez que cette page et l'appareil sont sur le même réseau, et que l'IP est correcte.", - "failedHint": "Spécifiez l'appareil dans l'URL, par ex. ?ip=10.0.0.119" + "failedHint": "Spécifiez l'appareil dans l'URL, par ex. ?ip={ip}" }, "home": { "audioSet": "Réglage audio", diff --git a/client/src/locales/data-zh-HK.json b/client/src/locales/data-zh-HK.json index dc2a5c2..7a8222b 100644 --- a/client/src/locales/data-zh-HK.json +++ b/client/src/locales/data-zh-HK.json @@ -5,7 +5,7 @@ "connecting": "正在連線 {ip}…", "failedTitle": "連線失敗", "failedDesc": "無法連接裝置。請確認本頁與裝置在同一網絡,並檢查裝置 IP 是否正確。", - "failedHint": "透過網址列指定裝置,例如 ?ip=10.0.0.119" + "failedHint": "透過網址列指定裝置,例如 ?ip={ip}" }, "home": { "audioSet": "音訊設定", diff --git a/client/src/locales/data-zh.json b/client/src/locales/data-zh.json index 565dfcd..4252614 100644 --- a/client/src/locales/data-zh.json +++ b/client/src/locales/data-zh.json @@ -5,7 +5,7 @@ "connecting": "正在连接 {ip}…", "failedTitle": "连接失败", "failedDesc": "无法连接设备。请确认本页与设备在同一网络,并检查设备 IP 是否正确。", - "failedHint": "通过地址栏指定设备,例如 ?ip=10.0.0.119" + "failedHint": "通过地址栏指定设备,例如 ?ip={ip}" }, "home": { "audioSet": "音频设置",