fix(ai): 网络失败时显示友好提示,不再直接展示 Failed to fetch

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fucheng
2026-09-20 09:59:33 +08:00
parent cc0e9a3334
commit 16a18dd135
11 changed files with 92 additions and 21 deletions
+3 -1
View File
@@ -4,7 +4,7 @@
"ipMissingDesc": "Bitte fügen Sie die Geräte-IP in der Adressleiste hinzu, bevor Sie diese Seite öffnen, zum Beispiel:",
"connecting": "Verbindung zu {ip}…",
"failedTitle": "Verbindung fehlgeschlagen",
"failedDesc": "Überprüfen Sie die Geräte-IP und Ihre Netzwerkverbindung.",
"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"
},
"home": {
@@ -908,6 +908,8 @@
"thinking": "Denke…",
"stopped": "(Gestoppt)",
"requestFailed": "Anfrage fehlgeschlagen. Bitte versuchen Sie es später erneut.",
"deviceUnreachable": "Das Gerät ist nicht erreichbar. Prüfen Sie, ob diese Seite und das Gerät im selben Netzwerk sind, und versuchen Sie es erneut.",
"aiUnreachable": "Der Luxsin-KI-Dienst ist nicht erreichbar. Prüfen Sie Ihre Internetverbindung und versuchen Sie es erneut.",
"ariaSend": "Senden",
"ariaStop": "Stopp",
"ariaNewChat": "Neuer Chat",
+3 -1
View File
@@ -4,7 +4,7 @@
"ipMissingDesc": "Add the device IP in the address bar before opening this page, for example:",
"connecting": "Connecting to {ip}…",
"failedTitle": "Connection failed",
"failedDesc": "Check the device IP and your network connection.",
"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"
},
"home": {
@@ -913,6 +913,8 @@
"thinking": "Thinking…",
"stopped": "(Stopped)",
"requestFailed": "Request failed. Please try again later.",
"deviceUnreachable": "Can't reach the device. Check that this page and the device are on the same network, then try again.",
"aiUnreachable": "Can't reach the Luxsin AI service. Check your internet connection and try again.",
"ariaSend": "Send",
"ariaStop": "Stop",
"ariaNewChat": "New chat",
+3 -1
View File
@@ -4,7 +4,7 @@
"ipMissingDesc": "Agregue la IP del dispositivo en la barra de direcciones antes de abrir esta página, por ejemplo:",
"connecting": "Conectando a {ip}…",
"failedTitle": "Conexión fallida",
"failedDesc": "Verifique la IP del dispositivo y su conexión de red.",
"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"
},
"home": {
@@ -908,6 +908,8 @@
"thinking": "Pensando…",
"stopped": "(Detenido)",
"requestFailed": "Error en la solicitud. Inténtelo más tarde.",
"deviceUnreachable": "No se puede alcanzar el dispositivo. Compruebe que esta página y el dispositivo estén en la misma red e inténtelo de nuevo.",
"aiUnreachable": "No se puede alcanzar el servicio de Luxsin AI. Compruebe su conexión a Internet e inténtelo de nuevo.",
"ariaSend": "Enviar",
"ariaStop": "Detener",
"ariaNewChat": "Nuevo chat",
+3 -1
View File
@@ -4,7 +4,7 @@
"ipMissingDesc": "Veuillez ajouter l'IP de l'appareil dans la barre d'adresse avant d'ouvrir cette page, par exemple :",
"connecting": "Connexion à {ip}…",
"failedTitle": "Échec de la connexion",
"failedDesc": "Vérifiez l'IP de l'appareil et votre connexion réseau.",
"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"
},
"home": {
@@ -908,6 +908,8 @@
"thinking": "Réflexion…",
"stopped": "(Arrêté)",
"requestFailed": "Échec de la requête. Veuillez réessayer plus tard.",
"deviceUnreachable": "Impossible d'atteindre l'appareil. Vérifiez que cette page et l'appareil sont sur le même réseau, puis réessayez.",
"aiUnreachable": "Impossible d'atteindre le service Luxsin AI. Vérifiez votre connexion Internet, puis réessayez.",
"ariaSend": "Envoyer",
"ariaStop": "Arrêter",
"ariaNewChat": "Nouveau chat",
+3 -1
View File
@@ -4,7 +4,7 @@
"ipMissingDesc": "請在網址列加入裝置 IP 參數後再開啟本頁,例如:",
"connecting": "正在連線 {ip}…",
"failedTitle": "連線失敗",
"failedDesc": "請檢查裝置 IP 與網路連線。",
"failedDesc": "無法連接裝置。請確認本頁與裝置在同一網絡,並檢查裝置 IP 是否正確。",
"failedHint": "透過網址列指定裝置,例如 ?ip=10.0.0.119"
},
"home": {
@@ -913,6 +913,8 @@
"thinking": "思考中…",
"stopped": "(已停止)",
"requestFailed": "請求失敗,請稍後重試",
"deviceUnreachable": "無法連接裝置。請確認本頁與裝置在同一網絡後再試。",
"aiUnreachable": "無法連接 Luxsin AI 服務。請檢查網絡後再試。",
"ariaSend": "發送",
"ariaStop": "停止",
"ariaNewChat": "新增會話",
+3 -1
View File
@@ -4,7 +4,7 @@
"ipMissingDesc": "请在地址栏添加设备 IP 参数后再打开本页,例如:",
"connecting": "正在连接 {ip}…",
"failedTitle": "连接失败",
"failedDesc": "请检查设备 IP 与网络连接。",
"failedDesc": "无法连接设备。请确认本页与设备在同一网络,并检查设备 IP 是否正确。",
"failedHint": "通过地址栏指定设备,例如 ?ip=10.0.0.119"
},
"home": {
@@ -913,6 +913,8 @@
"thinking": "思考中…",
"stopped": "(已停止)",
"requestFailed": "请求失败,请稍后重试",
"deviceUnreachable": "无法连接设备。请确认本页与设备在同一网络后再试。",
"aiUnreachable": "无法连接 Luxsin AI 服务。请检查网络后再试。",
"ariaSend": "发送",
"ariaStop": "停止",
"ariaNewChat": "新建会话",