Ver Fonte

fix: missing locale

dongchengjie há 1 ano atrás
pai
commit
ffbc892e44

+ 1 - 1
src/components/profile/editor-viewer.tsx

@@ -129,7 +129,7 @@ export const EditorViewer = (props: Props) => {
       <DialogTitle>{t("Edit File")}</DialogTitle>
 
       <DialogContent
-        sx={{ width: "94%", height: "100vh", pb: 1, userSelect: "text" }}
+        sx={{ width: "auto", height: "100vh", pb: 1, userSelect: "text" }}
       >
         <div style={{ width: "100%", height: "100%" }} ref={editorRef} />
       </DialogContent>

+ 2 - 2
src/components/profile/profile-more.tsx

@@ -166,7 +166,7 @@ export const ProfileMore = (props: Props) => {
                   size="small"
                   edge="start"
                   color="error"
-                  title="Console"
+                  title={t("Script Console")}
                   onClick={() => setLogOpen(true)}
                 >
                   <FeaturedPlayListRounded fontSize="inherit" />
@@ -177,7 +177,7 @@ export const ProfileMore = (props: Props) => {
                 size="small"
                 edge="start"
                 color="inherit"
-                title="Console"
+                title={t("Script Console")}
                 onClick={() => setLogOpen(true)}
               >
                 <FeaturedPlayListRounded fontSize="inherit" />

+ 2 - 0
src/locales/en.json

@@ -30,6 +30,7 @@
   "Import": "Import",
   "New": "New",
   "Create Profile": "Create Profile",
+  "Edit Profile": "Edit Profile",
   "Choose File": "Choose File",
   "Close": "Close",
   "Close All": "Close All",
@@ -51,6 +52,7 @@
   "Reactivate Profiles": "Reactivate Profiles",
   "Confirm deletion": "Confirm deletion",
   "This operation is not reversible": "This operation is not reversible",
+  "Script Console": "Script Console",
 
   "Location": "Location",
   "Delay check": "Delay check",

+ 2 - 0
src/locales/ru.json

@@ -30,6 +30,7 @@
   "Import": "Импорт",
   "New": "Новый",
   "Create Profile": "Создать профиль",
+  "Edit Profile": "Изменить профиль",
   "Choose File": "Выбрать файл",
   "Close": "Закрыть",
   "Close All": "Закрыть всё",
@@ -51,6 +52,7 @@
   "Reactivate Profiles": "Реактивировать профили",
   "Confirm deletion": "Подтвердите удаление",
   "This operation is not reversible": "Эта операция необратима",
+  "Script Console": "Консоль скрипта",
 
   "Location": "Местоположение",
   "Delay check": "Проверка задержки",

+ 3 - 1
src/locales/zh.json

@@ -29,7 +29,8 @@
   "Profile URL": "订阅文件链接",
   "Import": "导入",
   "New": "新建",
-  "Create Profile": "新建订阅",
+  "Create Profile": "新建配置",
+  "Edit Profile": "编辑配置",
   "Choose File": "选择文件",
   "Close": "关闭",
   "Close All": "关闭全部",
@@ -51,6 +52,7 @@
   "Reactivate Profiles": "重新激活订阅",
   "Confirm deletion": "确认删除",
   "This operation is not reversible": "此操作不可逆",
+  "Script Console": "脚本控制台输出",
 
   "Location": "当前节点",
   "Delay check": "延迟测试",