Bladeren bron

feat(locale): add zh locale

RouRouX 3 jaren geleden
bovenliggende
commit
9d217ce5bd
4 gewijzigde bestanden met toevoegingen van 154 en 146 verwijderingen
  1. 18 10
      src/locales/en/blocks.json
  2. 21 21
      src/locales/zh/blocks.json
  3. 45 45
      src/locales/zh/common.json
  4. 70 70
      src/locales/zh/newtab.json

+ 18 - 10
src/locales/en/blocks.json

@@ -23,13 +23,21 @@
       "trigger": {
         "name": "Trigger",
         "description": "Block where the workflow will start executing",
-        "days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
+        "days": [
+          "Sunday",
+          "Monday",
+          "Tuesday",
+          "Wednesday",
+          "Thursday",
+          "Friday",
+          "Saturday"
+        ],
         "useRegex": "Use regex",
         "shortcut": {
           "tootlip": "Record shortcut",
           "checkboxTitle": "Execute shortcut even when you're in an input element",
           "checkbox": "Active while in input",
-          "note": "Note: keyboard shortcut only working when you're on a webpage",
+          "note": "Note: keyboard shortcut only working when you're on a webpage"
         },
         "forms": {
           "triggerWorkflow": "Trigger workflow",
@@ -47,7 +55,7 @@
           "specific-day": "On a specific day",
           "visit-web": "When visit a website",
           "keyboard-shortcut": "Keyboard shortcut"
-        },
+        }
       },
       "active-tab": {
         "name": "Active tab",
@@ -68,7 +76,7 @@
         "incognito": {
           "text": "Set as incognito window",
           "note": "You must enable 'Allow in incognito' for this extension to use the option"
-        },
+        }
       },
       "go-back": {
         "name": "Go back",
@@ -116,7 +124,7 @@
         "intoView": "Scroll into view",
         "smooth": "Smooth scroll",
         "incScrollX": "Increment horizontal scroll",
-        "incScrollY": "Increment vertical scroll",
+        "incScrollY": "Increment vertical scroll"
       },
       "new-tab": {
         "name": "New tab",
@@ -161,7 +169,7 @@
       },
       "repeat-task": {
         "name": "Repeat task",
-        "description": "",
+        "description": ""
       },
       "javascript-code": {
         "name": "JavaScript code",
@@ -221,12 +229,12 @@
           "maxFile": "Max file size is 1MB",
           "options": {
             "firstRow": "Use the first row as keys"
-          },
+          }
         },
         "buttons": {
           "clear": "Clear data",
           "insert": "Insert data",
-          "import": "Import file",
+          "import": "Import file"
         },
         "maxLoop": {
           "title": "Max numbers of data to loop",
@@ -237,7 +245,7 @@
           "options": {
             "data-columns": "Data columns",
             "custom-data": "Custom data"
-          },
+          }
         }
       },
       "loop-breakpoint": {
@@ -256,7 +264,7 @@
         "windowTypes": {
           "main": "Main window",
           "iframe": "Iframe"
-        },
+        }
       }
     }
   }

+ 21 - 21
src/locales/zh/blocks.json

@@ -3,7 +3,7 @@
     "blocks": {
       "export-result": {
         "name": "导出结果",
-        "description": "将结果导出为JSON"
+        "description": "将集合结果导出为JSON"
       }
     }
   },
@@ -37,7 +37,7 @@
           "tootlip": "录制快捷键",
           "checkboxTitle": "即使在输入框中也执行快捷键",
           "checkbox": "在输入框中执行快捷键",
-          "note": "提示: 键盘快捷键仅在访问网页时有效"
+          "note": "提示: 键盘快捷键仅在访问网页时有效"
         },
         "forms": {
           "triggerWorkflow": "触发工作流",
@@ -45,7 +45,7 @@
           "delay": "延迟 (分钟)",
           "date": "日期",
           "time": "时间",
-          "url": "网址  正则表达式",
+          "url": "网址或正则表达式",
           "shortcut": "快捷键"
         },
         "items": {
@@ -75,12 +75,12 @@
         },
         "incognito": {
           "text": "设为无痕窗口",
-          "note": "您必须为此扩展程序启用“允许隐身”才能使用该选项"
+          "note": "您必须为此扩展程序启用“在无痕模式下启用”才能使用该选项"
         }
       },
       "go-back": {
         "name": "返回",
-        "description": "返回上一"
+        "description": "返回上一页"
       },
       "forward-page": {
         "name": "前进",
@@ -90,7 +90,7 @@
         "name": "关闭选项卡",
         "description": "",
         "activeTab": "关闭活动选项卡",
-        "url": "网址  匹配模式"
+        "url": "网址或匹配模式"
       },
       "event-click": {
         "name": "点击元素",
@@ -152,7 +152,7 @@
       "forms": {
         "name": "表单",
         "description": "",
-        "selected": "Selected",
+        "selected": "选中",
         "type": "表单类型",
         "text-field": {
           "name": "文本框",
@@ -199,7 +199,7 @@
           "label": "检查"
         },
         "timeout": {
-          "label": "超时 (ms)",
+          "label": "超时 (毫秒)",
           "title": "每次检查元素的超时时间"
         }
       },
@@ -241,29 +241,29 @@
           "label": "循环数据的最大值(0为禁用)"
         },
         "loopThrough": {
-          "placeholder": "Loop through",
+          "placeholder": "循环数据源",
           "options": {
-            "data-columns": "Data columns",
-            "custom-data": "Custom data"
+            "data-columns": "数据列",
+            "custom-data": "自定义数据"
           }
         }
       },
       "loop-breakpoint": {
-        "name": "Loop breakpoint",
-        "description": "To tell where loop data block must stop"
+        "name": "循环断点",
+        "description": "告诉循环数据单元在哪里停止"
       },
       "take-screenshot": {
-        "name": "Take screenshot",
-        "description": "Take a screenshot of current active tab",
-        "imageQuality": "Image quality"
+        "name": "截屏",
+        "description": "对当前活动选项卡截屏",
+        "imageQuality": "图像质量"
       },
       "switch-to": {
-        "name": "Switch frame",
-        "description": "Switch between main window and iframe",
-        "iframeSelector": "Iframe element selector",
+        "name": "切换到",
+        "description": "在主窗口和iframe之间切换",
+        "iframeSelector": "iframe元素选择器",
         "windowTypes": {
-          "main": "Main window",
-          "iframe": "Iframe"
+          "main": "主窗口",
+          "iframe": "iframe"
         }
       }
     }

+ 45 - 45
src/locales/zh/common.json

@@ -1,54 +1,54 @@
 {
   "common": {
-    "dashboard": "Dashboard",
-    "workflow": "Workflow | Workflows",
-    "collection": "Collection | Collections",
-    "log": "Log | Logs",
-    "block": "Block | Blocks",
-    "docs": "Documentation",
-    "search": "Search",
-    "import": "Import",
-    "export": "Export",
-    "rename": "Rename",
-    "execute": "Execute",
-    "delete": "Delete",
-    "cancel": "Cancel",
-    "settings": "Settings",
-    "options": "Options",
-    "confirm": "Confirm",
-    "name": "Name",
-    "all": "All",
-    "add": "Add",
-    "save": "Save",
-    "data": "data",
-    "stop": "Stop",
-    "editor": "Editor",
-    "running": "Running",
-    "globalData": "Global data",
-    "fileName": "File name",
-    "description": "Description",
-    "disable": "Disable",
-    "disabled": "Disabled",
-    "enable": "Enable",
+    "dashboard": "主面板",
+    "workflow": "工作流 | 工作流",
+    "collection": "集合 | 集合",
+    "log": "日志 | 日志",
+    "block": "单元 | 单元",
+    "docs": "文档",
+    "search": "搜索",
+    "import": "导入",
+    "export": "导出",
+    "rename": "重命名",
+    "execute": "执行",
+    "delete": "删除",
+    "cancel": "取消",
+    "settings": "设置",
+    "options": "选项",
+    "confirm": "确认",
+    "name": "名称",
+    "all": "全部",
+    "add": "添加",
+    "save": "保存",
+    "data": "数据",
+    "stop": "停止",
+    "editor": "编辑器",
+    "running": "运行",
+    "globalData": "全局数据",
+    "fileName": "文件名",
+    "description": "描述",
+    "disable": "禁用",
+    "disabled": "已禁用",
+    "enable": "启用"
   },
   "message": {
-    "noBlock": "No block",
-    "noData": "No data to show",
-    "noTriggerBlock": "Can't find a trigger block",
-    "useDynamicData": "Learn how to add dynamic data",
-    "delete": "Are you sure want to delete \"{name}\"?",
-    "empty": "Oppss... It's looks like you don't have any items",
-    "notSaved": "Do you really want to leave? you have unsaved changes!",
-    "maxSizeExceeded": "The file size is the exceeded maximum allowed",
+    "noBlock": "没有工作单元",
+    "noData": "没有数据可以展示",
+    "noTriggerBlock": "没有触发器",
+    "useDynamicData": "了解如何添加动态数据",
+    "delete": "确定要删除\"{name}\"?",
+    "empty": "哎呀……你好像没有任何项目",
+    "notSaved": "你真的要退出吗? 你有未保存的更改!",
+    "maxSizeExceeded": "文件大小超出了允许的最大值"
   },
   "sort": {
-    "sortBy": "Sort by",
-    "name": "Name",
-    "createdAt": "Created date"
+    "sortBy": "排序方式",
+    "name": "名称",
+    "createdAt": "创建时间"
   },
   "logStatus": {
-    "stopped": "stopped",
-    "error": "error",
-    "success": "success"
-  },
+    "stopped": "停止",
+    "error": "错误",
+    "success": "成功"
+  }
 }

+ 70 - 70
src/locales/zh/newtab.json

@@ -1,128 +1,128 @@
 {
   "home": {
-    "viewAll": "View all"
+    "viewAll": "查看全部"
   },
   "settings": {
     "language": {
-      "label": "Language",
-      "helpTranslate": "Can't find your language? Help translate.",
-      "reloadPage": "Reload the page to take effect"
-    },
+      "label": "语言",
+      "helpTranslate": "找不到你的语言? 帮忙翻译。",
+      "reloadPage": "重新加载页面生效"
+    }
   },
   "workflow": {
-    "import": "Import workflow",
-    "new": "New workflow",
-    "delete": "Delete workflow",
-    "name": "Workflow name",
-    "rename": "Rename workflow",
-    "add": "Add workflow",
-    "clickToEnable": "Click to enable",
+    "import": "导入工作流",
+    "new": "新建工作流",
+    "delete": "删除工作流",
+    "name": "工作流名称",
+    "rename": "重命名工作流",
+    "add": "添加工作流",
+    "clickToEnable": "点击启用",
     "dataColumns": {
-      "title": "Data columns",
-      "placeholder": "Search or add column",
+      "title": "数据列",
+      "placeholder": "搜索或者添加数据列",
       "column": {
-        "name": "Column name",
-        "type": "Data type"
+        "name": "列名称",
+        "type": "数据类型"
       }
     },
     "sidebar": {
-      "workflowIcon": "Workflow icon"
+      "workflowIcon": "工作流图标"
     },
     "editor": {
-      "zoomIn": "Zoom in",
-      "zoomOut": "Zoom out",
-      "resetZoom": "Reset zoom",
-      "duplicate": "Duplicate"
+      "zoomIn": "缩小",
+      "zoomOut": "放大",
+      "resetZoom": "重置缩放",
+      "duplicate": "创建副本"
     },
     "settings": {
       "onError": {
-        "title": "On workflow error",
+        "title": "工作流出错",
         "items": {
-          "keepRunning": "Keep running",
-          "stopWorkflow": "Stop workflow"
+          "keepRunning": "继续运行",
+          "stopWorkflow": "停止工作流"
         }
       },
       "timeout": {
-        "title": "Workflow timeout (milliseconds)"
+        "title": "工作流超时 (毫秒)"
       }
     }
   },
   "collection": {
-    "description": "Execute your workflows in sequence",
-    "new": "New collection",
-    "delete": "Delete collection",
-    "add": "Add collection",
-    "rename": "Rename collection",
-    "flow": "Flow",
-    "dragDropText": "Drop a workflow or block in here",
+    "description": "按顺序执行工作流",
+    "new": "新建集合",
+    "delete": "删除集合",
+    "add": "添加集合",
+    "rename": "重命名集合",
+    "flow": "流程",
+    "dragDropText": "拖放工作流或者单元到这里",
     "options": {
       "atOnce": {
-        "title": "Execute all workflows in the collection at once",
-        "description": "Block not gonna executed when using this option"
+        "title": "一次执行集合中的所有工作流",
+        "description": "使用此选项时不会执行单元下的项目"
       }
     },
     "globalData": {
-      "note": "This will overwrite the global data of the workflow"
+      "note": "这将覆盖工作流的全局数据"
     }
   },
   "log": {
-    "goBack": "Go back to \"{name}\" log",
-    "startedDate": "Started date",
-    "duration": "Duration",
-    "selectAll": "Select all",
-    "deselectAll": "Deselect all",
-    "deleteSelected": "Delete selected logs",
+    "goBack": "返回到\"{name}\"的日志",
+    "startedDate": "开始日期",
+    "duration": "持续时间",
+    "selectAll": "全选",
+    "deselectAll": "取消全选",
+    "deleteSelected": "删除选定的日志",
     "types": {
-      "stop": "Workflow is stopped",
-      "finish": "Finish"
+      "stop": "工作流已停止",
+      "finish": "完成"
     },
     "messages": {
-      "workflow-disabled": "Workflow is disabled",
-      "stop-timeout": "Workflow is stopped because of timeout",
-      "no-iframe-id": "Can't find Frame ID for the frame element with \"{selector}\" selector",
-      "no-tab": "Can't connect to a tab, use \"New tab\" or \"Active tab\" block before using the \"{name}\" block."
+      "workflow-disabled": "工作流被禁用",
+      "stop-timeout": "工作流因超时而停止",
+      "no-iframe-id": "找不到\"{selector}\"选择的iframe",
+      "no-tab": "无法连接到选项卡,请在使用 \"{name}\" 单元之前使用 \"新建选项卡\" 或 \"活动选项卡\" 单元。"
     },
     "description": {
-      "text": "{status} on {date} in {duration}",
+      "text": "在{date}用了{duration}执行{status} ",
       "status": {
-        "success": "Succeeded",
-        "error": "Failed",
-        "stopped": "Stopped"
+        "success": "成功",
+        "error": "失败",
+        "stopped": "停止"
       }
     },
     "delete": {
-      "title": "Delete log",
-      "description": "Are you sure want to delete all the selected logs?"
+      "title": "删除日志",
+      "description": "你确定要删除选定的日志吗?"
     },
     "exportData": {
-      "title": "Export data",
+      "title": "导出数据",
       "types": {
         "json": "JSON",
         "csv": "CSV",
         "plain-text": "Plain text"
-      },
+      }
     },
     "filter": {
-      "title": "Filter",
-      "byStatus": "By status",
+      "title": "筛选",
+      "byStatus": "按状态",
       "byDate": {
-        "title": "By date",
+        "title": "按日期",
         "items": {
-          "lastDay": "Last day",
-          "last7Days": "Last seven days",
-          "last30Days": "Last thirty days",
+          "lastDay": "最近一天",
+          "last7Days": "最近7天",
+          "last30Days": "最近30天"
         }
-      },
-    },
+      }
+    }
   },
   "components": {
     "pagination": {
-      "text1": "Showing",
-      "text2": "items out of {count}",
-      "nextPage": "Next page",
-      "currentPage": "Current page",
-      "prevPage": "Previous page",
-      "of": "of {page}"
+      "text1": "显示中",
+      "text2": "项目数超过{count}",
+      "nextPage": "下一页",
+      "currentPage": "当前页",
+      "prevPage": "上一页",
+      "of": "共{page}页"
     }
-  },
+  }
 }