Browse Source

chore: update locale

MystiPanda 11 months ago
parent
commit
f6ba6d0310

+ 4 - 4
src/components/profile/profile-item.tsx

@@ -226,12 +226,12 @@ export const ProfileItem = (props: Props) => {
       disabled: option?.groups === null,
     },
     {
-      label: "Edit Merge",
+      label: "Extend Config",
       handler: onEditMerge,
       disabled: option?.merge === null,
     },
     {
-      label: "Edit Script",
+      label: "Extend Script",
       handler: onEditScript,
       disabled: option?.script === null,
     },
@@ -267,12 +267,12 @@ export const ProfileItem = (props: Props) => {
       disabled: option?.groups === null,
     },
     {
-      label: "Edit Merge",
+      label: "Extend Config",
       handler: onEditMerge,
       disabled: option?.merge === null,
     },
     {
-      label: "Edit Script",
+      label: "Extend Script",
       handler: onEditScript,
       disabled: option?.script === null,
     },

+ 3 - 12
src/components/profile/profile-more.tsx

@@ -104,8 +104,8 @@ export const ProfileMore = (props: Props) => {
         </Box>
 
         <Box sx={boxStyle}>
-          {id === "Script" ? (
-            hasError ? (
+          {id === "Script" &&
+            (hasError ? (
               <Badge color="error" variant="dot" overlap="circular">
                 <IconButton
                   size="small"
@@ -127,16 +127,7 @@ export const ProfileMore = (props: Props) => {
               >
                 <FeaturedPlayListRounded fontSize="inherit" />
               </IconButton>
-            )
-          ) : (
-            <Typography
-              noWrap
-              title={t(`${id} Description`)}
-              sx={i18n.language === "zh" ? { width: "calc(100% - 75px)" } : {}}
-            >
-              {t(`${id} Description`)}
-            </Typography>
-          )}
+            ))}
         </Box>
       </ProfileBox>
 

+ 4 - 2
src/locales/en.json

@@ -60,8 +60,10 @@
   "Add Append Rule": "Add Append Rule",
   "Delete Rule": "Delete Rule",
   "Edit Groups": "Edit Proxy Groups",
-  "Edit Merge": "Edit Merge",
-  "Edit Script": "Edit Script",
+  "Extend Config": "Extend Config",
+  "Extend Script": "Extend Script",
+  "Global Merge": "Global Extend Config",
+  "Global Script": "Global Extend Script",
   "Type": "Type",
   "Name": "Name",
   "Descriptions": "Descriptions",

+ 4 - 2
src/locales/fa.json

@@ -50,8 +50,10 @@
   "Expire Time": "زمان انقضا",
   "Create Profile": "ایجاد پروفایل",
   "Edit Profile": "ویرایش پروفایل",
-  "Edit Merge": "ادغام ویرایش",
-  "Edit Script": "ویرایش اسکریپت",
+  "Extend Config": "توسعه پیکربندی",
+  "Extend Script": "ادغام اسکریپت",
+  "Global Merge": "تنظیمات گسترده‌ی سراسری",
+  "Global Script": "اسکریپت گسترش سراسری",
   "Type": "نوع",
   "Name": "نام",
   "Descriptions": "توضیحات",

+ 4 - 2
src/locales/ru.json

@@ -50,8 +50,10 @@
   "Expire Time": "Время окончания",
   "Create Profile": "Создать профиль",
   "Edit Profile": "Изменить профиль",
-  "Edit Merge": "Изменить Merge.",
-  "Edit Script": "Изменить Script",
+  "Extend Config": "Изменить Merge.",
+  "Extend Script": "Изменить Script",
+  "Global Merge": "Глобальный расширенный Настройки",
+  "Global Script": "Глобальный расширенный скрипт",
   "Type": "Тип",
   "Name": "Название",
   "Descriptions": "Описания",

+ 7 - 5
src/locales/zh.json

@@ -50,8 +50,8 @@
   "Expire Time": "到期时间",
   "Create Profile": "新建配置",
   "Edit Profile": "编辑配置",
-  "Edit Proxies": "添加/删除 节点",
-  "Edit Rules": "添加/删除 规则",
+  "Edit Proxies": "编辑节点",
+  "Edit Rules": "编辑规则",
   "Rule Type": "规则类型",
   "Rule Content": "规则内容",
   "Proxy Policy": "代理策略",
@@ -59,9 +59,11 @@
   "Add Prepend Rule": "添加前置规则",
   "Add Append Rule": "添加后置规则",
   "Delete Rule": "删除规则",
-  "Edit Groups": "添加/删除 代理组",
-  "Edit Merge": "微调配置 (yaml)",
-  "Edit Script": "微调配置 (js)",
+  "Edit Groups": "编辑代理组",
+  "Extend Config": "扩展配置",
+  "Extend Script": "扩展脚本",
+  "Global Merge": "全局扩展配置",
+  "Global Script": "全局扩展脚本",
   "Type": "类型",
   "Name": "名称",
   "Descriptions": "描述",

+ 2 - 2
src/pages/profiles.tsx

@@ -398,7 +398,7 @@ const ProfilePage = () => {
         ></Divider>
         <Box sx={{ mt: 1.5 }}>
           <Grid container spacing={{ xs: 1, lg: 1 }}>
-            <Grid item sm={6} md={6} lg={6}>
+            <Grid item xs={12} sm={6} md={6} lg={6}>
               <ProfileMore
                 id="Merge"
                 onChange={async (prev, curr) => {
@@ -408,7 +408,7 @@ const ProfilePage = () => {
                 }}
               />
             </Grid>
-            <Grid item sm={6} md={6} lg={6}>
+            <Grid item xs={12} sm={6} md={6} lg={6}>
               <ProfileMore
                 id="Script"
                 logInfo={chainLogs["Script"]}