From 6f6d254cfabb7344a23bef5388cfbc7763a20ee5 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Wed, 10 Jan 2024 22:55:57 +0800 Subject: [PATCH] docs: translate text --- src/i18n/en-UK/translation.json | 3 ++- src/i18n/zh-Hans/translation.json | 3 ++- src/options/Servers.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/i18n/en-UK/translation.json b/src/i18n/en-UK/translation.json index f36603b..d2ee905 100644 --- a/src/i18n/en-UK/translation.json +++ b/src/i18n/en-UK/translation.json @@ -49,5 +49,6 @@ "WebServerCORS": "错误CORS:你的浏览器擅自把请求改为了HTTPS,导致请求失败", "WebServerUnknown": "错误:未知的请求错误", "GetUserName": "Error: Get user name" - } + }, + "ClearAllServersConfirmQuestion": "Are you sure you want to clear all servers?" } diff --git a/src/i18n/zh-Hans/translation.json b/src/i18n/zh-Hans/translation.json index bbf0b18..1c090a6 100644 --- a/src/i18n/zh-Hans/translation.json +++ b/src/i18n/zh-Hans/translation.json @@ -49,5 +49,6 @@ "WebServerCORS": "ErrorCORS: Your browsr turn request to HTTPS cuase it failed", "WebServerUnknown": "Error: Unknown request error", "GetUserName": "错误:获取用户名" - } + }, + "ClearAllServersConfirmQuestion": "你确定要清除所有服务器吗?" } diff --git a/src/options/Servers.tsx b/src/options/Servers.tsx index f6e2cb8..563c91a 100644 --- a/src/options/Servers.tsx +++ b/src/options/Servers.tsx @@ -141,7 +141,7 @@ export function ServersOptions() { {isConfirmDialogVisible && (
-

Are you sure you want to clear all servers?

+

{t('ClearAllServersConfirmQuestion')}