diff --git a/src/components/profile/profile-item.tsx b/src/components/profile/profile-item.tsx
index 38868e59..7feaab2e 100644
--- a/src/components/profile/profile-item.tsx
+++ b/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,
},
diff --git a/src/components/profile/profile-more.tsx b/src/components/profile/profile-more.tsx
index 1603d766..25e543ed 100644
--- a/src/components/profile/profile-more.tsx
+++ b/src/components/profile/profile-more.tsx
@@ -104,8 +104,8 @@ export const ProfileMore = (props: Props) => {
- {id === "Script" ? (
- hasError ? (
+ {id === "Script" &&
+ (hasError ? (
{
>
- )
- ) : (
-
- {t(`${id} Description`)}
-
- )}
+ ))}
diff --git a/src/locales/en.json b/src/locales/en.json
index bf4da6ab..1d5094e4 100644
--- a/src/locales/en.json
+++ b/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",
diff --git a/src/locales/fa.json b/src/locales/fa.json
index e309a102..3f85e28b 100644
--- a/src/locales/fa.json
+++ b/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": "توضیحات",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 5ebcf7d0..95a60421 100644
--- a/src/locales/ru.json
+++ b/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": "Описания",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 292565ed..ddd9b3c4 100644
--- a/src/locales/zh.json
+++ b/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": "描述",
diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx
index 52914c15..dedfbee9 100644
--- a/src/pages/profiles.tsx
+++ b/src/pages/profiles.tsx
@@ -398,7 +398,7 @@ const ProfilePage = () => {
>
-
+
{
@@ -408,7 +408,7 @@ const ProfilePage = () => {
}}
/>
-
+