Procházet zdrojové kódy

chore: missing locale

dongchengjie před 1 rokem
rodič
revize
fb6ffd8e09

+ 2 - 2
src/components/proxy/provider-button.tsx

@@ -69,7 +69,7 @@ export const ProviderButton = () => {
         sx={{ textTransform: "capitalize" }}
         onClick={() => setOpen(true)}
       >
-        {t("Provider")}
+        {t("Proxy Provider")}
       </Button>
 
       <BaseDialog
@@ -171,7 +171,7 @@ export const ProviderButton = () => {
                   <IconButton
                     size="small"
                     color="inherit"
-                    title="Update Provider"
+                    title={`${t("Update")}${t("Proxy Provider")}`}
                     onClick={() => handleUpdate(key, index)}
                     sx={{
                       animation: updating[index]

+ 2 - 2
src/components/rule/provider-button.tsx

@@ -67,7 +67,7 @@ export const ProviderButton = () => {
         sx={{ textTransform: "capitalize" }}
         onClick={() => setOpen(true)}
       >
-        {t("Provider")}
+        {t("Rule Provider")}
       </Button>
 
       <BaseDialog
@@ -145,7 +145,7 @@ export const ProviderButton = () => {
                   <IconButton
                     size="small"
                     color="inherit"
-                    title="Update Provider"
+                    title={`${t("Update")}${t("Rule Provider")}`}
                     onClick={() => handleUpdate(key, index)}
                     sx={{
                       animation: updating[index]

+ 6 - 2
src/locales/en.json

@@ -21,6 +21,9 @@
 
   "Proxies": "Proxies",
   "Proxy Groups": "Proxy Groups",
+  "Proxy Provider": "Proxy Provider",
+  "Update All": "Update All",
+  "Update At": "Update At",
   "rule": "rule",
   "global": "global",
   "direct": "direct",
@@ -68,6 +71,8 @@
   "To End": "To End",
 
   "Connections": "Connections",
+  "Table View": "Table View",
+  "List View": "List View",
   "Close All": "Close All",
   "Default": "Default",
   "Download Speed": "Download Speed",
@@ -86,8 +91,7 @@
   "Close Connection": "Close Connection",
 
   "Rules": "Rules",
-  "Update All": "Update All",
-  "Update At": "Update At",
+  "Rule Provider": "Rule Provider",
 
   "Logs": "Logs",
   "Pause": "Pause",

+ 6 - 2
src/locales/fa.json

@@ -21,6 +21,9 @@
 
   "Proxies": "پراکسی‌ها",
   "Proxy Groups": "گروه‌های پراکسی",
+  "Proxy Provider": "تأمین‌کننده پروکسی",
+  "Update All": "به‌روزرسانی همه",
+  "Update At": "به‌روزرسانی در",
   "rule": "قانون",
   "global": "جهانی",
   "direct": "مستقیم",
@@ -68,6 +71,8 @@
   "To End": "به پایان",
 
   "Connections": "اتصالات",
+  "Table View": "نمای جدولی",
+  "List View": "نمای لیستی",
   "Close All": "بستن همه",
   "Default": "پیش‌فرض",
   "Download Speed": "سرعت دانلود",
@@ -86,8 +91,7 @@
   "Close Connection": "بستن اتصال",
 
   "Rules": "قوانین",
-  "Update All": "به‌روزرسانی همه",
-  "Update At": "به‌روزرسانی در",
+  "Rule Provider": "تأمین‌کننده قانون",
 
   "Logs": "لاگ‌ها",
   "Pause": "توقف",

+ 6 - 2
src/locales/ru.json

@@ -21,6 +21,9 @@
 
   "Proxies": "Прокси",
   "Proxy Groups": "Группы прокси",
+  "Proxy Provider": "Провайдер прокси",
+  "Update All": "Обновить все",
+  "Update At": "Обновлено в",
   "rule": "правила",
   "global": "глобальный",
   "direct": "прямой",
@@ -68,6 +71,8 @@
   "To End": "Вниз",
 
   "Connections": "Соединения",
+  "Table View": "Tablichnyy vid",
+  "List View": "Spiskovyy vid",
   "Close All": "Закрыть всё",
   "Default": "По умолчанию",
   "Download Speed": "Скорость загрузки",
@@ -86,8 +91,7 @@
   "Close Connection": "Закрыть соединение",
 
   "Rules": "Правила",
-  "Update All": "Обновить все",
-  "Update At": "Обновлено в",
+  "Rule Provider": "Провайдер правило",
 
   "Logs": "Логи",
   "Pause": "Пауза",

+ 6 - 2
src/locales/zh.json

@@ -21,6 +21,9 @@
 
   "Proxies": "代理",
   "Proxy Groups": "代理组",
+  "Proxy Provider": "代理集合",
+  "Update All": "更新全部",
+  "Update At": "更新于",
   "rule": "规则",
   "global": "全局",
   "direct": "直连",
@@ -68,6 +71,8 @@
   "To End": "移到末尾",
 
   "Connections": "连接",
+  "Table View": "表格视图",
+  "List View": "列表视图",
   "Close All": "关闭全部",
   "Default": "默认",
   "Download Speed": "下载速度",
@@ -86,8 +91,7 @@
   "Close Connection": "关闭连接",
 
   "Rules": "规则",
-  "Update All": "更新全部",
-  "Update At": "更新于",
+  "Rule Provider": "规则集合",
 
   "Logs": "日志",
   "Pause": "暂停",

+ 6 - 2
src/pages/connections.tsx

@@ -143,9 +143,13 @@ const ConnectionsPage = () => {
             }
           >
             {isTableLayout ? (
-              <TableChartRounded fontSize="inherit" />
+              <span title={t("List View")}>
+                <TableRowsRounded fontSize="inherit" />
+              </span>
             ) : (
-              <TableRowsRounded fontSize="inherit" />
+              <span title={t("Table View")}>
+                <TableChartRounded fontSize="inherit" />
+              </span>
             )}
           </IconButton>