From b7590d899767692e3ef02088af3173cf95c7758f Mon Sep 17 00:00:00 2001 From: kerms Date: Sat, 18 Jan 2025 16:41:38 +0100 Subject: [PATCH] feat(i18n): page wifi, feedback amd about --- package-lock.json | 42 +++++------ src/locales/en.ts | 77 ++++++++++++++++++++ src/locales/fr.ts | 78 +++++++++++++++++++- src/locales/zh.ts | 76 +++++++++++++++++++ src/views/About.vue | 35 ++++----- src/views/Feedback.vue | 11 +-- src/views/Wifi.vue | 161 ++++++++++++++++++++--------------------- 7 files changed, 352 insertions(+), 128 deletions(-) diff --git a/package-lock.json b/package-lock.json index 961a223..fe03b36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1542,9 +1542,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001599", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001599.tgz", - "integrity": "sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==", + "version": "1.0.30001667", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz", + "integrity": "sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==", "dev": true, "funding": [ { @@ -1802,12 +1802,12 @@ "dev": true }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "devOptional": true, "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -3312,9 +3312,9 @@ } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "devOptional": true }, "node_modules/muggle-string": { @@ -3718,9 +3718,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -3826,9 +3826,9 @@ } }, "node_modules/postcss": { - "version": "8.4.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.39.tgz", - "integrity": "sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==", + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", "funding": [ { "type": "opencollective", @@ -3845,8 +3845,8 @@ ], "dependencies": { "nanoid": "^3.3.7", - "picocolors": "^1.0.1", - "source-map-js": "^1.2.0" + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" @@ -4272,9 +4272,9 @@ } }, "node_modules/source-map-js": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", - "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "engines": { "node": ">=0.10.0" } diff --git a/src/locales/en.ts b/src/locales/en.ts index 246a957..08d4856 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -5,6 +5,26 @@ export default { disconnected: "Disconnected", connected: "Connected", connecting: "Connecting", + use: "use", + author: "author", + studioYunSi: "Yunsi Studio", + authorEmail: "Author email", + TencentQQGroup: "QQ Group", + Discord: "Discord", + BiliBili: "BiliBili", + + suggestion: "suggestion", + feature: "feature", + version: "Version", + releaseTime: "Release Time", + credit: "Credit", + aboutWebHost: "About the Web Host Application", + aboutDebugger: "About the Debugger", + officialWebsite: "Official Website", + email: "Email", + note: "Note", + welcomeMessage: "Welcome to reach out anytime", + serialNumber: "Serial Number", ws: { disconnected: "Disconnected", @@ -122,6 +142,63 @@ export default { sendFormat: "Send Format", cachedFrame: "Cached", format: "Format", + }, + + wifi: { + settings: "Settings", + setFailed: "Settings failed to set", + setSuccess: "Settings saved", + connection: "Connection", + scanning: "Scanning", + scan: "Scan", + scanDone: "Scan done", + warnWifiName: "Enter Wi-Fi Name", + password: "Password", + connectInfoHTML: "Changing Wi-Fi will disconnect this interface from the passthrough device if not connected through its hotspot.", + connect: "Connect", + mode: "Mode", + save: "Save", + station: "Station", + intelligent: "Smart", + APOnly: "Hotspot Only", + disconnected: "Disconnected", + modeTipsHtml: "

\n" + + "Smart Mode:\n" + + "After connecting to Wi-Fi, the hotspot will turn off automatically after 30 seconds if no device is connected. It will turn on after 5 seconds if disconnected from AP.\n" + + "

\n" + + "

\n" + + "Coexistence Mode:\n" + + "Convenient but impacts stability and increases power consumption.\n" + + "

\n" + + "

\n" + + "Hotspot-Only Mode Drawback:\n" + + "No network connection.\n" + + "

", + enabled: "Enabled", + disabled: "Disabled", + + stationInfo: "Terminal (STA) Info", + hotspotInfo: "Hotspot (AP) Info", + signalStrength: "Signal Strength", + gateway: "Gateway", + netmask: "Netmask", + primaryDNS: "Primary DNS", + backupDNS: "Backup DNS", + IPmode: "IP Allocation Mode", + DNSmode: "DNS Mode", + internalAddress: "Internal Address", + + autoIP: "Automatic (DHCP)", + staticIP: "Static IP", + autoDNS: "Automatic (Use Gateway)", + staticDNS: "Static DNS", + APauto_STA: "Smart Hotspot + Persistent Terminal (AP+STA)", + APonly: "Hotspot Only (AP)", + AP_STA: "Persistent Hotspot + Persistent Terminal (AP+STA)", + + connectionSuccess: "Connection Successful", + enterAPName: "Entre the AP name", + debuggerNotConnected: "Debugger not connected", } }; \ No newline at end of file diff --git a/src/locales/fr.ts b/src/locales/fr.ts index eee64ab..357a23a 100644 --- a/src/locales/fr.ts +++ b/src/locales/fr.ts @@ -5,6 +5,26 @@ export default { disconnected: "Déconnecté", connected: "Connecté", connecting: "Connexion..", + use: "utiliser", + author: "Auteur", + studioYunSi: "Studio Yunsi", + authorEmail: "Email de l'auteur", + TencentQQGroup: "Groupe QQ", + Discord: "Discord", + BiliBili: "BiliBili", + + suggestion: "suggestion", + feature: "fonctionnalité", + version: "Version", + releaseTime: "Date de Publication", + credit: "Remerciements", + aboutWebHost: "À propos de l'Hôte Web", + aboutDebugger: "À propos du Débogueur", + officialWebsite: "Site Officiel", + email: "E-mail", + note: "Remarque", + welcomeMessage: "N'hésitez pas à venir nous solliciter.", + serialNumber: "Numéro de série", ws: { disconnected: "Déconnecté", @@ -123,6 +143,62 @@ export default { sendFormat: "Format d'Envoi", cachedFrame: "Cache", format: "Format", - } + }, + wifi: { + settings: "Paramètres", + setFailed: "Echec d'enregistrement de paramètres", + setSuccess: "Paramètres enregistrés", + connection: "Connexion", + scanning: "Recherche en cours", + scan: "Rechercher", + scanDone: "Fin recherche de Wi-Fi", + warnWifiName: "Entrez le nom du Wi-Fi", + password: "Mot de passe", + connectInfoHTML: "Changer de Wi-Fi déconnectera cette interface du dispositif de transmission s'il ne passe pas par le point d'accès.", + connect: "Connecter", + mode: "Mode", + save: "Enregistrer", + station: "Station", + intelligent: "Intelligent", + APOnly: "Point d'accès uniquement", + disconnected: "Déconnecté", + modeTipsHtml: "

\n" + + "Mode intelligent :\n" + + "Après la connexion au Wi-Fi, le point d'accès s'éteindra automatiquement après 30 secondes si aucun appareil n'est connecté. Il s'allumera après 5 secondes si la connexion AP est perdue.\n" + + "

\n" + + "

\n" + + "Mode coexistence :\n" + + "Pratique mais réduit la stabilité et augmente la consommation d'énergie.\n" + + "

\n" + + "

\n" + + "Inconvénient du mode point d'accès seul :\n" + + "Pas de connexion réseau.\n" + + "

", + enabled: "Activé", + disabled: "Désactivé", + + stationInfo: "Info Terminal (STA)", + hotspotInfo: "Info Point d'Accès (AP)", + signalStrength: "Puissance du Signal", + gateway: "Passerelle", + netmask: "Masque de Sous-réseau", + primaryDNS: "DNS Primaire", + backupDNS: "DNS Secondaire", + IPmode: "Mode d'Attribution IP", + DNSmode: "Mode DNS", + internalAddress: "Adresse Interne", + + autoIP: "Automatique (DHCP)", + staticIP: "IP Statique", + autoDNS: "Automatique (gateway)", + staticDNS: "DNS Statique", + APauto_STA: "Point d'Accès Intelligent + Terminal Permanent (AP+STA)", + APonly: "Point d'Accès Seul (AP)", + AP_STA: "Point d'Accès Permanent + Terminal Permanent (AP+STA)", + + connectionSuccess: "Connexion Réussie", + enterAPName: "Entrez le nom du AP", + debuggerNotConnected: "Debugger non connecté", + } }; \ No newline at end of file diff --git a/src/locales/zh.ts b/src/locales/zh.ts index f8f19bb..cf92d72 100644 --- a/src/locales/zh.ts +++ b/src/locales/zh.ts @@ -6,6 +6,25 @@ export default { connected: "已连接", connecting: "连接中", use: "使用", + author: "作者", + studioYunSi: "允斯工作室", + authorEmail: "作者邮箱", + TencentQQGroup: "QQ群", + Discord: "Discord", + BiliBili: "哔哩哔哩", + + suggestion: "建议", + feature: "需求", + version: "版本", + releaseTime: "发布时间", + credit: "鸣谢", + aboutWebHost: "关于网页版上位机", + aboutDebugger: "关于调试器", + officialWebsite: "官网", + email: "邮箱", + note: "备注", + welcomeMessage: "欢迎来打扰啊~", + serialNumber: "序列号", ws: { disconnected: "未连接", @@ -127,5 +146,62 @@ export default { sendFormat: "发送格式", cachedFrame: "缓存帧数", format: "格式化", + }, + + wifi: { + settings: "配置", + setFailed: "设置失败", + setSuccess: "配置成功", + connection: "连接", + scanning: "扫描中", + scan: "扫描", + scanDone: "扫描成功", + warnWifiName: "请输入WIFI名", + password: "密码", + connectInfoHTML: "如果不是通过透传器的热点连接,更换Wi-Fi将导致此界面与透传器断开连接。", + connect: "连接", + mode: "模式", + save: "保存", + station: "终端", + intelligent: "智能", + APOnly: "仅开启热点", + disconnected: "未连接", + modeTipsHtml: "

\n" + + "智能模式:\n" + + "成功连接至Wi-Fi后,如果此设备的热点未被其他设备连接,将在30秒后自动关闭热点;如果此设备与AP断开连接,将在5秒后自动开启热点\n" + + "

\n" + + "

\n" + + "热点+终端共存模式:\n" + + "方便使用,但是影响稳定性,增加功耗\n" + + "

\n" + + "

\n" + + "单热点模式缺点:\n" + + "无网络\n" + + "

", + enabled: "已开启", + disabled: "未开启", + + stationInfo: "终端(STA)信息", + hotspotInfo: "自发热点(AP)信息", + signalStrength: "信号强度", + gateway: "网关", + netmask: "掩码", + primaryDNS: "首选DNS", + backupDNS: "备用DNS", + IPmode: "IP分配模式", + DNSmode: "DNS模式", + internalAddress: "内网地址", + + autoIP: "自动 (DHCP)", + staticIP: "静态IP", + autoDNS: "自动 (使用网关)", + staticDNS: "静态DNS", + APauto_STA: "智能热点+常开终端 (AP+STA)", + APonly: "仅开启热点 (AP)", + AP_STA: "常开热点+常开终端 (AP+STA)", + + connectionSuccess: "连接成功", + enterAPName: "请输入AP名", + debuggerNotConnected: "调试器未连接", } } \ No newline at end of file diff --git a/src/views/About.vue b/src/views/About.vue index d33f5c4..2f89f39 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -1,5 +1,6 @@ diff --git a/src/views/Wifi.vue b/src/views/Wifi.vue index 83cd59c..6d4d57f 100644 --- a/src/views/Wifi.vue +++ b/src/views/Wifi.vue @@ -1,17 +1,17 @@