From c365f2143e5bf67bc8df18e592f76ab7ac694831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Fri, 25 Mar 2022 19:17:13 +0800 Subject: [PATCH 1/7] Update blocks.json --- src/locales/zh/blocks.json | 471 +++++++++++++++++++++++++++---------- 1 file changed, 342 insertions(+), 129 deletions(-) diff --git a/src/locales/zh/blocks.json b/src/locales/zh/blocks.json index 53dc0b451..91b6d60e3 100644 --- a/src/locales/zh/blocks.json +++ b/src/locales/zh/blocks.json @@ -3,26 +3,113 @@ "blocks": { "export-result": { "name": "导出结果", - "description": "将集合结果导出为JSON" + "description": "将集合结果导出为 JSON" } } }, "workflow": { "blocks": { "base": { + "moveToGroup": "移动模块到模块组", "selector": "元素选择器", + "table": { + "checkbox": "插入表格", + "select": "选择列", + "extraRow": { + "checkbox": "添加额外的行", + "placeholder": "值", + "title": "额外行的值" + } + }, + "findElement": { + "placeholder": "查找元素依据", + "options": { + "cssSelector": "CSS Selector", + "xpath": "XPath" + } + }, "markElement": { - "title": "一个元素如果之前被标记过,则不再标记", + "title": "如果之前已经选择过元素,则不会被选择", "text": "标记元素" }, "multiple": { "title": "选择多个元素", - "text": "选择多个元素" + "text": "多选" + }, + "waitSelector": { + "title": "等待选择器", + "timeout": "选择器超时 (ms)" + }, + "downloads": { + "onConflict": { + "uniquify": "唯一", + "overwrite": "覆盖", + "prompt": "询问" + } + } + }, + "handle-dialog": { + "name": "处理对话框", + "description": "接受或取消JavaScript启动的对话框(警报、确认、提示或卸载前)。", + "accept": "接受对话框", + "promptText": { + "label": "提示文本 (可选项)", + "description": "接受前要输入对话框提示的文本" } }, + "handle-download": { + "name": "处理下载", + "description": "处理下载文件", + "timeout": "超时 (毫秒)", + "noPermission": "没有访问下载的权限", + "onConflict": "冲突时", + "waitFile": "等待下载文件" + }, + "insert-data": { + "name": "插入数据", + "description": "将数据插入表或变量" + }, + "clipboard": { + "name": "剪贴板", + "description": "从剪贴板获取复制的文本", + "data": "剪贴板数据", + "noPermission": "没有访问剪贴板的权限", + "grantPermission": "授予权限" + }, + "hover-element": { + "name": "悬停元素", + "description": "悬停在一个元素上" + }, + "upload-file": { + "name": "上传文件", + "description": "上传文件到 元素", + "filePath": "URL 或 文件路径", + "addFile": "添加文件", + "requirement": "使用本模块前,请参看要求", + "noFileAccess": "Automa 没有文件访问权限" + }, + "browser-event": { + "name": "浏览器事件", + "description": "触发事件时执行下一个模块", + "events": "事件", + "timeout": "超时 (毫秒)", + "activeTabLoaded": "激活标签", + "setAsActiveTab": "设为激活标签" + }, + "blocks-group": { + "name": "模块组", + "groupName": "组名", + "description": "分组模块", + "dropText": "拖放模块到此处", + "cantAdd": "无法添加 \"{blockName}\" 模块到此组." + }, "trigger": { "name": "触发器", "description": "工作流从这里开始执行", + "addTime": "添加时间", + "selectDay": "选择日", + "timeExist": "你已经添加 {time} 在 {day}", + "fixedDelay": "固定延迟", "days": [ "星期日", "星期一", @@ -35,240 +122,366 @@ "useRegex": "使用正则表达式", "shortcut": { "tooltip": "录制快捷键", - "checkboxTitle": "即使在输入框中也执行快捷键", - "checkbox": "在输入框中执行快捷键", - "note": "提示: 键盘快捷键仅在你访问网页时有效" + "stopRecord": "停止录制", + "checkboxTitle": "即使在输入元素中也执行快捷键", + "checkbox": "输入时激活", + "note": "注意:键盘快捷键仅在您访问网页时有效" }, "forms": { - "triggerWorkflow": "触发工作流", - "interval": "间隔 (分钟)", - "delay": "延迟 (分钟)", - "date": "日期", - "time": "时间", - "url": "网址或正则表达式", - "shortcut": "快捷键" + "triggerWorkflow": "Trigger workflow", + "interval": "Interval (minutes)", + "delay": "Delay (minutes)", + "date": "Date", + "time": "Time", + "url": "URL or Regex", + "shortcut": "Shortcut" }, "items": { - "manual": "手动", - "interval": "一定时间间隔", - "date": "在特定日期", - "specific-day": "在特定的星期几", - "visit-web": "当你访问一个网页", - "keyboard-shortcut": "键盘快捷键" + "manual": "Manually", + "interval": "Interval", + "date": "On a specific date", + "specific-day": "On a specific day", + "visit-web": "When visit a website", + "on-startup": "On browser startup", + "keyboard-shortcut": "Keyboard shortcut" + } + }, + "execute-workflow": { + "name": "Execute workflow", + "overwriteNote": "This will overwrite the global data of the selected workflow", + "select": "Select workflow", + "executeId": "Execute Id", + "description": "" + }, + "google-sheets": { + "name": "Google sheets", + "description": "Read or update Google Sheets data", + "previewData": "Preview data", + "firstRow": "Use the first row as keys", + "keysAsFirstRow": "Use keys as the first row", + "insertData": "Insert data", + "valueInputOption": "Value input option", + "dataFrom": { + "label": "Data from", + "options": { + "data-columns": "Table", + "custom": "Custom" + } + }, + "refKey": { + "label": "Reference key (optional)", + "placeholder": "Key name" + }, + "spreadsheetId": { + "label": "Spreadsheet Id", + "link": "See how to get spreadsheet Id" + }, + "range": { + "label": "Range", + "link": "Click to see more example" + }, + "select": { + "get": "Get spreadsheet cell values", + "update": "Update spreadsheet cell values" } }, "active-tab": { - "name": "活动选项卡", - "description": "将您所在的当前选项卡设置为活动选项卡" + "name": "Active tab", + "description": "Set current tab that you're in as an active tab" + }, + "proxy": { + "name": "Proxy", + "description": "Set the proxy of the browser", + "clear": "Clear all proxy", + "bypass": { + "label": "Bypass list", + "note": "Use commas (,) to separate URL" + } }, "new-window": { - "name": "新窗口", - "description": "创建一个新窗口", + "name": "New window", + "description": "Create a new window", + "top": "Top", + "left": "Left", + "height": "Height", + "width": "Width", + "note": "Note: use 0 to disable", + "position": "Window position", + "size": "Window size", "windowState": { - "placeholder": "窗口状态", + "placeholder": "Window state", "options": { - "normal": "标准", - "minimized": "最小化", - "maximized": "最大化", - "fullscreen": "全屏" + "normal": "Normal", + "minimized": "Minimized", + "maximized": "Maximized", + "fullscreen": "Fullscreen" } }, "incognito": { - "text": "设为无痕窗口", - "note": "您必须为此扩展程序启用“在无痕模式下启用”才能使用该选项" + "text": "Set as incognito window", + "note": "You must enable 'Allow in incognito' for this extension to use the option" } }, "go-back": { - "name": "返回", - "description": "返回到上一页" + "name": "Go back", + "description": "Go back to the previous page" }, "forward-page": { - "name": "前进", - "description": "前进到下一页" + "name": "Go forward", + "description": "Go forward to the next page" }, "close-tab": { - "name": "关闭选项卡", + "name": "Close tab/window", "description": "", - "activeTab": "关闭活动选项卡", - "url": "网址或匹配模式" + "url": "Match Patterns", + "activeTab": "Close active tab", + "allWindows": "Close all windows" }, "event-click": { - "name": "点击元素", + "name": "Click element", "description": "" }, "delay": { - "name": "延迟", - "description": "在执行下一个块之前添加延迟" + "name": "Delay", + "description": "Add delay before executing the next block", + "input": { + "title": "Delay in millisecond", + "placeholder": "(millisecond)" + } }, "get-text": { - "name": "获取文本", - "description": "从元素中获取文本", + "name": "Get text", + "description": "Get text from an element", + "checkbox": "Insert to table", + "includeTags": "Include HTML tags", "prefixText": { - "placeholder": "文本前缀", - "title": "为文本添加前缀" + "placeholder": "Text prefix", + "title": "Add prefix to the text" }, "suffixText": { - "placeholder": "文本后缀", - "title": "为文本添加后缀" + "placeholder": "Text suffix", + "title": "Add suffix to the text" } }, "export-data": { - "name": "导出数据", - "description": "导出工作流数据列" + "name": "Export data", + "description": "Export workflow data", + "exportAs": "Export as", + "refKey": "Reference key", + "bomHeader": "Add UTF-8 BOM", + "dataToExport": { + "placeholder": "Data to export", + "options": { + "data-columns": "Table", + "google-sheets": "Google sheets", + }, + } }, "element-scroll": { - "name": "滚动元素", + "name": "Scroll element", "description": "", - "scrollY": "垂直滚动", - "scrollX": "水平滚动", - "intoView": "滚动到视图中", - "smooth": "平滑滚动", - "incScrollX": "递增水平滚动", - "incScrollY": "递增垂直滚动" + "scrollY": "Scroll vertical", + "scrollX": "Scroll horizontal", + "intoView": "Scroll into view", + "smooth": "Smooth scroll", + "incScrollX": "Increment horizontal scroll", + "incScrollY": "Increment vertical scroll" + }, + "switch-tab": { + "name": "Switch tab", + "description": "Switch between tab", + "matchPattern": "Match Patterns", + "url": "URL for the new tab", + "createIfNoMatch": "Create if there's no match" }, "new-tab": { - "name": "新建选项卡", + "name": "New tab", "description": "", - "activeTab": "设置为活动选项卡", - "tabToGroup": "添加到选项卡组", + "url": "New Tab URL", + "customUserAgent": "Use custom User-Agent", + "activeTab": "Set as active tab", + "tabToGroup": "Add tab to group", "updatePrevTab": { - "title": "使用之前打开的新选项卡而不是创建一个选项卡", - "text": "更新之前打开的选项卡" + "title": "Use the previously opened new tab instead of creating a new one", + "text": "Update previously opened tab" } }, "link": { - "name": "链接", - "description": "打开链接元素" + "name": "Link", + "description": "Open link element" }, "attribute-value": { - "name": "属性值", - "description": "获取一个元素属性的值", + "name": "Attribute value", + "description": "Get value of an element attribute", "forms": { - "name": "属性名称", - "checkbox": "保存数据", - "column": "选择列" + "name": "Attribute name", + "checkbox": "Insert to table", + "column": "Select column", + "extraRow": { + "checkbox": "Add extra row", + "placeholder": "Value", + "title": "Value of the extra row" + } } }, "forms": { - "name": "表单", + "name": "Forms", "description": "", - "selected": "选中", - "type": "表单类型", + "selected": "Selected", + "type": "Form type", + "getValue": "Get form value", "text-field": { - "name": "文本框", - "value": "值", - "clearValue": "清除表单值", + "name": "Text field", + "value": "Value", + "clearValue": "Clear form value", "delay": { - "placeholder": "延迟", - "label": "输入延迟(ms)(0为禁用)" + "placeholder": "Delay", + "label": "Typing delay (millisecond)(0 to disable)" } }, - "select": { "name": "下拉列表" }, - "radio": { "name": "单选框" }, - "checkbox": { "name": "复选框" } + "select": { + "name": "Select" + }, + "radio": { + "name": "Radio" + }, + "checkbox": { + "name": "Checkbox" + } }, "repeat-task": { - "name": "重复任务", - "description": "" + "name": "Repeat task", + "description": "", + "times": "times", + "repeatFrom": "Repeat from" }, "javascript-code": { - "name": "JavaScript 代码", - "description": "在网页中执行你的 javascript 代码", + "name": "JavaScript code", + "description": "Execute your javascript code in the web page", + "availabeFuncs": "Available functions:", + "removeAfterExec": "Remove after block executed", "modal": { "tabs": { - "code": "JavaScript 代码", + "code": "JavaScript code", "preloadScript": "Preload script" } }, - "availabeFuncs": "可用的函数:", "timeout": { - "placeholder": "超时", - "title": "Javascript代码执行超时" + "placeholder": "Timeout (milliseconds)", + "title": "Javascript code execution timeout" } }, "trigger-event": { - "name": "触发事件", + "name": "Trigger event", "description": "", - "selectEvent": "选择事件" + "selectEvent": "Select event" }, "conditions": { - "name": "条件", - "description": "条件单元" + "name": "Conditions", + "add": "Add condition", + "description": "Conditional block", + "fallbackTitle": "Execute when all comparisons don't meet the requirement", + "equals": "Equals", + "gt": "Greater than", + "gte": "Greater than or equal", + "lt": "Less than", + "lte": "Less than or equal", + "ne": "Not equals", + "contains": "Contains" }, "element-exists": { - "name": "元素存在", - "description": "检查元素是否存在", - "selector": "元素选择器", + "name": "Element exists", + "description": "Check if an element is exists", + "selector": "Element selector", + "fallbackTitle": "Execute when element doesn't exists", + "throwError": "Throw an error if doesn't exist", "tryFor": { - "title": "检查元素是否存在", - "label": "检查" + "title": "How many times to try to check if element exist", + "label": "Try for" }, "timeout": { - "label": "超时 (毫秒)", - "title": "每次检查元素的超时时间" + "label": "Timeout (milliseconds)", + "title": "Timeout for each try" } }, "webhook": { - "name": "Webhook", - "description": "Webhook 允许通知外部服务", - "url": "接收POST请求的URL", - "contentType": "选择content type", + "name": "HTTP request", + "description": "Make an HTTP Request", + "url": "The Post receive URL", + "contentType": "Content type", + "method": "Request method", + "url": "Request URL", + "fallback": "Execute when failed or error making an HTTP request", "buttons": { - "header": "添加请求头" + "header": "Add header" }, "timeout": { - "placeholder": "超时", - "title": "Http请求执行超时(ms)" + "placeholder": "Timeout", + "title": "Http request execution timeout(ms)" }, "tabs": { "headers": "Headers", - "body": "Content body" + "body": "Body", + "response": "Response" } }, "loop-data": { - "name": "循环数据", - "description": "遍历数据列或你的自定义数据", - "loopId": "循环 ID", + "name": "Loop data", + "description": "Iterate through table or your custom data", + "loopId": "Loop id", + "refKey": "Reference key", + "startIndex": "Start from index", + "resumeLastWorkflow": "Resume last workflow", "modal": { - "fileTooLarge": "文件太大无法编辑", - "maxFile": "最大文件大小为 1MB", + "fileTooLarge": "File too large to edit", + "maxFile": "Max file size is 1MB", "options": { - "firstRow": "使用第一个 row 作为 keys" + "firstRow": "Use the first row as keys" } }, "buttons": { - "clear": "清除数据", - "insert": "插入数据", - "import": "导入文件" + "clear": "Clear data", + "insert": "Insert data", + "import": "Import file" }, "maxLoop": { - "title": "循环数据的最大值", - "label": "循环数据的最大值(0为禁用)" + "title": "Max numbers of data to loop", + "label": "Max data to loop (0 to disable)" }, "loopThrough": { - "placeholder": "循环数据源", + "placeholder": "Loop through", + "fromNumber": "From number", + "toNumber": "To number", "options": { - "data-columns": "数据列", - "custom-data": "自定义数据" + "numbers": "Numbers", + "variable": "Variable", + "data-columns": "Table", + "table": "Table", + "custom-data": "Custom data", + "google-sheets": "Google sheets", + "elements": "Elements" } } }, "loop-breakpoint": { - "name": "循环断点", - "description": "告诉循环数据单元在哪里停止" + "name": "Loop breakpoint", + "description": "To tell where loop data block must stop" }, "take-screenshot": { - "name": "截屏", - "description": "对当前活动选项卡截屏", - "imageQuality": "图像质量" + "name": "Take screenshot", + "fullPage": "Take full page screenshot", + "description": "Take a screenshot of current active tab", + "imageQuality": "Image quality", + "saveToColumn": "Insert screenshot to table", + "saveToComputer": "Save screenshot to computer" }, "switch-to": { - "name": "切换到", - "description": "在主窗口和iframe之间切换", - "iframeSelector": "iframe元素选择器", + "name": "Switch frame", + "description": "Switch between main window and iframe", + "iframeSelector": "Iframe element selector", "windowTypes": { - "main": "主窗口", - "iframe": "iframe" + "main": "Main window", + "iframe": "Iframe" } } } From 37eaf4b86316f1a1ed1048bd324e368a4ccae108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Fri, 25 Mar 2022 19:24:58 +0800 Subject: [PATCH 2/7] Update blocks.json --- src/locales/zh/blocks.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/locales/zh/blocks.json b/src/locales/zh/blocks.json index 91b6d60e3..a1ad0d652 100644 --- a/src/locales/zh/blocks.json +++ b/src/locales/zh/blocks.json @@ -107,7 +107,7 @@ "name": "触发器", "description": "工作流从这里开始执行", "addTime": "添加时间", - "selectDay": "选择日", + "selectDay": "选择星期几", "timeExist": "你已经添加 {time} 在 {day}", "fixedDelay": "固定延迟", "days": [ @@ -128,19 +128,19 @@ "note": "注意:键盘快捷键仅在您访问网页时有效" }, "forms": { - "triggerWorkflow": "Trigger workflow", - "interval": "Interval (minutes)", - "delay": "Delay (minutes)", - "date": "Date", - "time": "Time", - "url": "URL or Regex", - "shortcut": "Shortcut" + "triggerWorkflow": "触发工作流", + "interval": "间隔 (分钟)", + "delay": "延迟 (分钟)", + "date": "日期", + "time": "时间", + "url": "URL 或 正则表达式", + "shortcut": "快捷键" }, "items": { - "manual": "Manually", - "interval": "Interval", - "date": "On a specific date", - "specific-day": "On a specific day", + "manual": "手动", + "interval": "间隔", + "date": "在特定日期", + "specific-day": "在特定的星期几", "visit-web": "When visit a website", "on-startup": "On browser startup", "keyboard-shortcut": "Keyboard shortcut" From d4e6a107c16ee2b2da944fb6d022da03d6d0b73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Fri, 25 Mar 2022 20:55:13 +0800 Subject: [PATCH 3/7] Update blocks.json --- src/locales/zh/blocks.json | 340 ++++++++++++++++++------------------- 1 file changed, 170 insertions(+), 170 deletions(-) diff --git a/src/locales/zh/blocks.json b/src/locales/zh/blocks.json index a1ad0d652..a7fad928a 100644 --- a/src/locales/zh/blocks.json +++ b/src/locales/zh/blocks.json @@ -93,8 +93,8 @@ "description": "触发事件时执行下一个模块", "events": "事件", "timeout": "超时 (毫秒)", - "activeTabLoaded": "激活标签", - "setAsActiveTab": "设为激活标签" + "activeTabLoaded": "活动标签页", + "setAsActiveTab": "设为活动标签页" }, "blocks-group": { "name": "模块组", @@ -141,302 +141,302 @@ "interval": "间隔", "date": "在特定日期", "specific-day": "在特定的星期几", - "visit-web": "When visit a website", - "on-startup": "On browser startup", - "keyboard-shortcut": "Keyboard shortcut" + "visit-web": "访问网页时", + "on-startup": "浏览器启动时", + "keyboard-shortcut": "键盘快捷键" } }, "execute-workflow": { - "name": "Execute workflow", - "overwriteNote": "This will overwrite the global data of the selected workflow", - "select": "Select workflow", - "executeId": "Execute Id", + "name": "执行工作流", + "overwriteNote": "这将覆盖所选工作流的全局数据", + "select": "选择工作流", + "executeId": "执行 Id", "description": "" }, "google-sheets": { "name": "Google sheets", - "description": "Read or update Google Sheets data", - "previewData": "Preview data", - "firstRow": "Use the first row as keys", - "keysAsFirstRow": "Use keys as the first row", - "insertData": "Insert data", - "valueInputOption": "Value input option", + "description": "读取或更新 Google sheets 数据", + "previewData": "预览数据", + "firstRow": "使用第一行作为主键", + "keysAsFirstRow": "使用主键作为第一行", + "insertData": "插入数据", + "valueInputOption": "输入选项值", "dataFrom": { - "label": "Data from", + "label": "数据来自", "options": { - "data-columns": "Table", - "custom": "Custom" + "data-columns": "表格", + "custom": "自定义" } }, "refKey": { - "label": "Reference key (optional)", - "placeholder": "Key name" + "label": "参考键 (可选项)", + "placeholder": "键名称" }, "spreadsheetId": { - "label": "Spreadsheet Id", - "link": "See how to get spreadsheet Id" + "label": "电子表格 Id", + "link": "查看如何获取电子表格 ID" }, "range": { - "label": "Range", - "link": "Click to see more example" + "label": "范围", + "link": "点击查看更多示例" }, "select": { - "get": "Get spreadsheet cell values", - "update": "Update spreadsheet cell values" + "get": "获取电子表格单元格值", + "update": "更新电子表格单元格值" } }, "active-tab": { - "name": "Active tab", - "description": "Set current tab that you're in as an active tab" + "name": "活动标签页", + "description": "将您所在的当前标签页设置为活动标签页" }, "proxy": { "name": "Proxy", - "description": "Set the proxy of the browser", - "clear": "Clear all proxy", + "description": "设置浏览器的代理", + "clear": "清除所有代理", "bypass": { - "label": "Bypass list", - "note": "Use commas (,) to separate URL" + "label": "免过滤清单", + "note": "使用英文逗号 (,) 分隔 URL" } }, "new-window": { - "name": "New window", - "description": "Create a new window", - "top": "Top", - "left": "Left", - "height": "Height", - "width": "Width", - "note": "Note: use 0 to disable", - "position": "Window position", - "size": "Window size", + "name": "新建窗口", + "description": "创建一个新窗口", + "top": "上", + "left": "左", + "height": "高度", + "width": "宽度", + "note": "注意:使用 0 禁用", + "position": "窗口位置", + "size": "窗口尺寸", "windowState": { - "placeholder": "Window state", + "placeholder": "窗口状态", "options": { - "normal": "Normal", - "minimized": "Minimized", - "maximized": "Maximized", - "fullscreen": "Fullscreen" + "normal": "常规", + "minimized": "最小化", + "maximized": "最大化", + "fullscreen": "全屏" } }, "incognito": { - "text": "Set as incognito window", - "note": "You must enable 'Allow in incognito' for this extension to use the option" + "text": "设置为无痕窗口", + "note": "您必须为此扩展启用“在无痕模式下启用”才能使用该选项" } }, "go-back": { - "name": "Go back", - "description": "Go back to the previous page" + "name": "返回", + "description": "返回到上一页" }, "forward-page": { - "name": "Go forward", - "description": "Go forward to the next page" + "name": "前进", + "description": "前进到下一页" }, "close-tab": { - "name": "Close tab/window", + "name": "关闭 标签页/窗口", "description": "", - "url": "Match Patterns", - "activeTab": "Close active tab", - "allWindows": "Close all windows" + "url": "匹配模式", + "activeTab": "关闭活动标签页", + "allWindows": "关闭所有窗口" }, "event-click": { - "name": "Click element", + "name": "点击元素", "description": "" }, "delay": { - "name": "Delay", - "description": "Add delay before executing the next block", + "name": "延迟", + "description": "在执行下一个模块之前添加延迟", "input": { - "title": "Delay in millisecond", - "placeholder": "(millisecond)" + "title": "延迟毫秒", + "placeholder": "(毫秒)" } }, "get-text": { - "name": "Get text", - "description": "Get text from an element", - "checkbox": "Insert to table", - "includeTags": "Include HTML tags", + "name": "获取文本", + "description": "从元素中获取文本", + "checkbox": "插入到表格", + "includeTags": "包含 HTML 标记", "prefixText": { - "placeholder": "Text prefix", - "title": "Add prefix to the text" + "placeholder": "文本前缀", + "title": "为文本添加前缀" }, "suffixText": { - "placeholder": "Text suffix", - "title": "Add suffix to the text" + "placeholder": "文本后缀", + "title": "为文本添加后缀" } }, "export-data": { - "name": "Export data", - "description": "Export workflow data", - "exportAs": "Export as", - "refKey": "Reference key", - "bomHeader": "Add UTF-8 BOM", + "name": "导出数据", + "description": "导出工作流数据", + "exportAs": "导出为", + "refKey": "参考键", + "bomHeader": "添加 UTF-8 BOM", "dataToExport": { - "placeholder": "Data to export", + "placeholder": "要导出的数据", "options": { - "data-columns": "Table", + "data-columns": "表格", "google-sheets": "Google sheets", }, } }, "element-scroll": { - "name": "Scroll element", + "name": "滚动元素", "description": "", - "scrollY": "Scroll vertical", - "scrollX": "Scroll horizontal", - "intoView": "Scroll into view", - "smooth": "Smooth scroll", - "incScrollX": "Increment horizontal scroll", - "incScrollY": "Increment vertical scroll" + "scrollY": "垂直滚动", + "scrollX": "水平滚动", + "intoView": "滚动查看", + "smooth": "平滑滚动", + "incScrollX": "增加水平滚动", + "incScrollY": "递增垂直滚动" }, "switch-tab": { - "name": "Switch tab", - "description": "Switch between tab", - "matchPattern": "Match Patterns", - "url": "URL for the new tab", - "createIfNoMatch": "Create if there's no match" + "name": "切换标签页", + "description": "在标签页之间切换", + "matchPattern": "匹配模式", + "url": "新建标签页的 URL", + "createIfNoMatch": "如果没有匹配则创建" }, "new-tab": { - "name": "New tab", + "name": "新建标签页", "description": "", - "url": "New Tab URL", - "customUserAgent": "Use custom User-Agent", - "activeTab": "Set as active tab", - "tabToGroup": "Add tab to group", + "url": "新建标签页 URL", + "customUserAgent": "使用自定义 User-Agent", + "activeTab": "设为活动标签页", + "tabToGroup": "标签页分组", "updatePrevTab": { - "title": "Use the previously opened new tab instead of creating a new one", - "text": "Update previously opened tab" + "title": "使用之前打开的新标签页而不是新建标签页", + "text": "更新之前打开的标签页" } }, "link": { - "name": "Link", - "description": "Open link element" + "name": "链接", + "description": "打开链接元素" }, "attribute-value": { - "name": "Attribute value", - "description": "Get value of an element attribute", + "name": "属性值", + "description": "获取元素属性的值", "forms": { - "name": "Attribute name", - "checkbox": "Insert to table", - "column": "Select column", + "name": "属性名称", + "checkbox": "插入到表格", + "column": "选择列", "extraRow": { - "checkbox": "Add extra row", - "placeholder": "Value", - "title": "Value of the extra row" + "checkbox": "添加额外的行", + "placeholder": "值", + "title": "额外行的值" } } }, "forms": { - "name": "Forms", + "name": "表单", "description": "", - "selected": "Selected", - "type": "Form type", - "getValue": "Get form value", + "selected": "已选择", + "type": "表单类型", + "getValue": "获取表单值", "text-field": { - "name": "Text field", - "value": "Value", - "clearValue": "Clear form value", + "name": "文本域", + "value": "值", + "clearValue": "清除表单值", "delay": { - "placeholder": "Delay", - "label": "Typing delay (millisecond)(0 to disable)" + "placeholder": "延迟", + "label": "输入延迟(毫秒)(0 为禁用)" } }, "select": { - "name": "Select" + "name": "下拉列表" }, "radio": { - "name": "Radio" + "name": "单选框" }, "checkbox": { - "name": "Checkbox" + "name": "复选框" } }, "repeat-task": { - "name": "Repeat task", + "name": "重复任务", "description": "", - "times": "times", - "repeatFrom": "Repeat from" + "times": "次数", + "repeatFrom": "重复自" }, "javascript-code": { - "name": "JavaScript code", - "description": "Execute your javascript code in the web page", - "availabeFuncs": "Available functions:", - "removeAfterExec": "Remove after block executed", + "name": "JavaScript 代码", + "description": "在网页中执行您的 javascript 代码", + "availabeFuncs": "可用函数:", + "removeAfterExec": "模块执行后移除", "modal": { "tabs": { - "code": "JavaScript code", - "preloadScript": "Preload script" + "code": "JavaScript 代码", + "preloadScript": "预加载脚本" } }, "timeout": { - "placeholder": "Timeout (milliseconds)", - "title": "Javascript code execution timeout" + "placeholder": "超时(毫秒)", + "title": "Javascript 代码执行超时" } }, "trigger-event": { - "name": "Trigger event", + "name": "触发器事件", "description": "", - "selectEvent": "Select event" + "selectEvent": "选择事件" }, "conditions": { - "name": "Conditions", - "add": "Add condition", - "description": "Conditional block", - "fallbackTitle": "Execute when all comparisons don't meet the requirement", - "equals": "Equals", - "gt": "Greater than", - "gte": "Greater than or equal", - "lt": "Less than", - "lte": "Less than or equal", - "ne": "Not equals", - "contains": "Contains" + "name": "条件", + "add": "添加条件", + "description": "条件模块", + "fallbackTitle": "当所有比较不满足要求时执行", + "equals": "等于", + "gt": "大于", + "gte": "大于或等于", + "lt": "小于", + "lte": "小于或等于", + "ne": "不等于", + "contains": "包含" }, "element-exists": { - "name": "Element exists", - "description": "Check if an element is exists", - "selector": "Element selector", - "fallbackTitle": "Execute when element doesn't exists", - "throwError": "Throw an error if doesn't exist", + "name": "元素存在", + "description": "检查元素是否存在", + "selector": "元素选择器", + "fallbackTitle": "当元素不存在时执行", + "throwError": "如果不存在抛出一个错误", "tryFor": { - "title": "How many times to try to check if element exist", - "label": "Try for" + "title": "检查元素是否存在的尝试次数", + "label": "尝试" }, "timeout": { - "label": "Timeout (milliseconds)", - "title": "Timeout for each try" + "label": "超时(毫秒)", + "title": "每次尝试超时" } }, "webhook": { - "name": "HTTP request", - "description": "Make an HTTP Request", - "url": "The Post receive URL", - "contentType": "Content type", - "method": "Request method", - "url": "Request URL", - "fallback": "Execute when failed or error making an HTTP request", + "name": "HTTP 请求", + "description": "发出 HTTP 请求", + "url": "接收 POST 请求的 URL", + "contentType": "内容类型", + "method": "请求方法", + "url": "请求 URL", + "fallback": "在发出 HTTP 请求失败或错误时执行", "buttons": { - "header": "Add header" + "header": "添加 header" }, "timeout": { - "placeholder": "Timeout", - "title": "Http request execution timeout(ms)" + "placeholder": "超时", + "title": "Http 请求执行超时(ms)" }, "tabs": { "headers": "Headers", "body": "Body", - "response": "Response" + "response": "响应" } }, "loop-data": { - "name": "Loop data", - "description": "Iterate through table or your custom data", - "loopId": "Loop id", - "refKey": "Reference key", - "startIndex": "Start from index", - "resumeLastWorkflow": "Resume last workflow", + "name": "循环数据", + "description": "遍历表格或您的自定义数据", + "loopId": "循环 id", + "refKey": "参考键", + "startIndex": "从索引开始", + "resumeLastWorkflow": "恢复上次工作流", "modal": { - "fileTooLarge": "File too large to edit", - "maxFile": "Max file size is 1MB", + "fileTooLarge": "文件太大,无法编辑", + "maxFile": "最大文件尺寸为 1MB", "options": { - "firstRow": "Use the first row as keys" + "firstRow": "使用第一行作为主键" } }, "buttons": { From 82a442025f6e76948cd180eef1d37ae84d5e241b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Sun, 27 Mar 2022 23:33:54 +0800 Subject: [PATCH 4/7] =?UTF-8?q?1.51=E6=9C=80=E6=96=B0=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/zh/blocks.json | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/locales/zh/blocks.json b/src/locales/zh/blocks.json index a7fad928a..86306430c 100644 --- a/src/locales/zh/blocks.json +++ b/src/locales/zh/blocks.json @@ -24,7 +24,7 @@ "findElement": { "placeholder": "查找元素依据", "options": { - "cssSelector": "CSS Selector", + "cssSelector": "CSS 选择器", "xpath": "XPath" } }, @@ -440,47 +440,47 @@ } }, "buttons": { - "clear": "Clear data", - "insert": "Insert data", - "import": "Import file" + "clear": "清除数据", + "insert": "插入数据", + "import": "导入文件" }, "maxLoop": { - "title": "Max numbers of data to loop", - "label": "Max data to loop (0 to disable)" + "title": "要循环的最大数据数", + "label": "要循环的最大数据(0 禁用)" }, "loopThrough": { - "placeholder": "Loop through", - "fromNumber": "From number", - "toNumber": "To number", + "placeholder": "依次通过", + "fromNumber": "从数字", + "toNumber": "到数字", "options": { - "numbers": "Numbers", - "variable": "Variable", - "data-columns": "Table", - "table": "Table", - "custom-data": "Custom data", + "numbers": "数字", + "variable": "变量", + "data-columns": "表格", + "table": "表格", + "custom-data": "自定义数据", "google-sheets": "Google sheets", - "elements": "Elements" + "elements": "元素" } } }, "loop-breakpoint": { - "name": "Loop breakpoint", - "description": "To tell where loop data block must stop" + "name": "循环断点", + "description": "告诉循环数据块必须在哪里停止" }, "take-screenshot": { - "name": "Take screenshot", - "fullPage": "Take full page screenshot", - "description": "Take a screenshot of current active tab", - "imageQuality": "Image quality", - "saveToColumn": "Insert screenshot to table", - "saveToComputer": "Save screenshot to computer" + "name": "截屏", + "fullPage": "截取整页截图", + "description": "截取当前活动标签页的屏幕截图", + "imageQuality": "图像质量", + "saveToColumn": "将屏幕截图插入表格", + "saveToComputer": "将屏幕截图保存到计算机" }, "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", + "main": "主窗口", "iframe": "Iframe" } } From dfb4b461409b94660ab8bf8a056e646436badb05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Sun, 27 Mar 2022 23:46:15 +0800 Subject: [PATCH 5/7] =?UTF-8?q?1.51=E4=B8=AD=E6=96=87=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/zh/common.json | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/locales/zh/common.json b/src/locales/zh/common.json index 294a77a20..3545b9f6d 100644 --- a/src/locales/zh/common.json +++ b/src/locales/zh/common.json @@ -7,6 +7,7 @@ "block": "单元 | 单元", "docs": "文档", "search": "搜索", + "example": "示例 | 示例", "import": "导入", "export": "导出", "rename": "重命名", @@ -29,26 +30,34 @@ "description": "描述", "disable": "禁用", "disabled": "已禁用", - "enable": "启用" + "enable": "启用", + "fallback": "反馈", + "update": "更新", + "duplicate": "副本", + "password": "密码", + "category": "分类", + "optional": "可选" }, "message": { - "noBlock": "没有工作单元", + "noBlock": "没有模块", "noData": "没有数据可以展示", - "noTriggerBlock": "没有触发器", + "noTriggerBlock": "没有找到触发器模块", "useDynamicData": "了解如何添加动态数据", "delete": "确定要删除\"{name}\"?", "empty": "哎呀……你好像没有任何项目", + "maxSizeExceeded": "文件大小超出了允许的最大值", "notSaved": "你真的要退出吗? 你有未保存的更改!", - "maxSizeExceeded": "文件大小超出了允许的最大值" - }, + "somethingWrong": "出现错误", + "limitExceeded": "您已超出限制" + }, "sort": { "sortBy": "排序方式", "name": "名称", - "createdAt": "创建时间" + "createdAt": "创建日期" }, "logStatus": { "stopped": "停止", "error": "错误", "success": "成功" - } + }, } From f9e070e3a2d7b4fc5cd12f82bc7edc5b7c9adf0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Mon, 28 Mar 2022 10:18:35 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B01.51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据谷歌浏览器的官方翻译词汇, tab从 "选项卡"更改为"标签页" --- src/locales/zh/newtab.json | 216 ++++++++++++++++++++++++++++++++----- 1 file changed, 187 insertions(+), 29 deletions(-) diff --git a/src/locales/zh/newtab.json b/src/locales/zh/newtab.json index 72a009662..385d50e15 100644 --- a/src/locales/zh/newtab.json +++ b/src/locales/zh/newtab.json @@ -2,24 +2,144 @@ "home": { "viewAll": "查看全部" }, + "welcome": { + "title": "欢迎使用 Automa! 🎉", + "text": "从阅读文档或浏览 Automa 市场中的工作流开始.", + "marketplace": "市场" + }, + "updateMessage": { + "text1": "Automa 已更新为 v{version},", + "text2": "看看有什么新东西." + }, + "auth": { + "title": "作者", + "signIn": "登录", + "username": "您需要先设置您的用户名", + "clickHere": "点击这里", + "text": "您需要先登录才能执行此操作" + }, "settings": { + "theme": "主题", + "shortcuts": { + "duplicate": "快捷方式已被 \"{name}\" 占用" + }, "language": { "label": "语言", - "helpTranslate": "找不到你的语言? 帮忙翻译。", + "helpTranslate": "找不到您的语言? 帮助翻译.", "reloadPage": "重新加载页面生效" + }, + "menu": { + "backup": "备份工作流", + "general": "常规", + "shortcuts": "快捷键", + "about": "关于" + }, + "backupWorkflows": { + "title": "本地备份", + "invalidPassword": "无效密码", + "workflowsAdded": "{count} 个工作流已被添加", + "name": "备份工作流", + "backup": { + "button": "备份", + "encrypt": "用密码加密" + }, + "restore": { + "title": "恢复工作流", + "button": "恢复", + "update": "如果工作流存在则更新" + }, + "cloud": { + "buttons": { + "local": "本地", + "cloud": "云端" + }, + "delete": "删除备份", + "title": "云端备份", + "sync": "同步", + "lastSync": "上次同步", + "lastBackup": "上次备份", + "select": "选择工作流", + "storedWorkflows": "存储在云中的工作流", + "selected": "已选择", + "selectText": "选择要备份的工作流", + "selectAll": "选择全部", + "deselectAll": "取消全选", + "needSelectWorkflow": "您需要选择要备份的工作流" + } } }, "workflow": { "import": "导入工作流", "new": "新建工作流", "delete": "删除工作流", + "browse": "浏览工作流", "name": "工作流名称", "rename": "重命名工作流", "add": "添加工作流", - "clickToEnable": "点击启用", - "dataColumns": { - "title": "数据列", - "placeholder": "搜索或者添加数据列", + "clickToEnable": "单击启用", + "toggleSidebar": "切换侧栏", + "cantEdit": "无法编辑共享的工作流", + "host": { + "title": "主机工作流程", + "set": "设为主机工作流", + "id": "主机 Id", + "add": "添加托管工作流", + "sync": { + "title": "同步", + "description": "与主机工作流同步" + }, + "messages": { + "hostExist": "您已添加此主机", + "notFound": "找不到托管工作流 \"{id}\" id" + }, + }, + "type": { + "local": "本地", + "shared": "共享", + "host": "主机", + }, + "unpublish": { + "title": "取消发布工作流", + "button": "取消发布", + "body": "您确定要取消发布 \"{name}\" 工作流吗?" + }, + "share": { + "url": "共享 URL", + "publish": "发布", + "sharedAs": "共享为 \"{name}\"", + "title": "共享工作流", + "download": "添加工作流到本地", + "edit": "编辑详细描述", + "fetchLocal": "获取本地工作流", + "update": "更新", + "unpublish": "取消发布" + }, + "variables": { + "title": "变量 | 变量", + "name": "变量名称", + "assign": "分配给变量" + }, + "protect": { + "title": "保护工作流", + "remove": "移除保护", + "button": "保护", + "note": "注意:您必须记住此密码,以后编辑和删除工作流时需要此密码。" + }, + "locked": { + "title": "此工作流已被保护", + "body": "输入密码解锁", + "unlock": "解锁", + "messages": { + "incorrect-password": "密码错误" + } + }, + "state": { + "executeBy": "执行于: \"{name}\"" + }, + "table": { + "title": "表格", + "placeholder": "搜索或添加列", + "select": "选择列", "column": { "name": "列名称", "type": "数据类型" @@ -29,36 +149,49 @@ "workflowIcon": "工作流图标" }, "editor": { - "zoomIn": "缩小", - "zoomOut": "放大", + "zoomIn": "放大", + "zoomOut": "缩小", "resetZoom": "重置缩放", - "duplicate": "创建副本" + "duplicate": "副本" }, "settings": { + "saveLog": "保存工作流日志", + "reuseLastState": "重用上一个工作流状态", + "executedBlockOnWeb": "在网页上显示已执行的模块", + "debugMode": "调试模式", + "restartWorkflow": { + "for": "重新启动", + "times": "次数" + }, "onError": { - "title": "工作流出错", + "title": "工作流出错时", "items": { "keepRunning": "继续运行", - "stopWorkflow": "停止工作流" + "stopWorkflow": "停止工作流", + "restartWorkflow": "重启工作流" } }, "timeout": { - "title": "工作流超时 (毫秒)" + "title": "工作流超时(毫秒)" + }, + "blockDelay": { + "title": "模块延迟(毫秒)", + "description": "在执行每个块之前添加延迟" } } }, "collection": { - "description": "按顺序执行工作流", + "description": "按顺序执行您的工作流", "new": "新建集合", "delete": "删除集合", "add": "添加集合", "rename": "重命名集合", - "flow": "流程", - "dragDropText": "拖放工作流或者单元到这里", + "flow": "流", + "dragDropText": "拖放工作流或模块到此处", "options": { "atOnce": { "title": "一次执行集合中的所有工作流", - "description": "使用此选项时不会执行单元下的项目" + "description": "使用此选项时不会执行模块" } }, "globalData": { @@ -66,24 +199,49 @@ } }, "log": { - "goBack": "返回到\"{name}\"的日志", - "startedDate": "开始日期", - "duration": "持续时间", - "selectAll": "全选", + "goBack": "返回到 \"{name}\" 日志", + "startedDate": "启动日期", + "duration": "期间", + "selectAll": "选择全部", "deselectAll": "取消全选", - "deleteSelected": "删除选定的日志", + "deleteSelected": "删除已选日志", + "clearLogs": { + "title": "清除日志", + "description": "您确定清除所有日志吗?" + }, "types": { "stop": "工作流已停止", "finish": "完成" }, "messages": { - "workflow-disabled": "工作流被禁用", - "stop-timeout": "工作流因超时而停止", - "no-iframe-id": "找不到\"{selector}\"选择的iframe", - "no-tab": "无法连接到选项卡,请在使用 \"{name}\" 单元之前使用 \"新建选项卡\" 或 \"活动选项卡\" 单元。" + "url-empty": "URL 为空", + "invalid-url": "URL 无效", + "conditions-empty": "条件为空", + "invalid-proxy-host": "无效的代理主机", + "workflow-disabled": "工作流已禁用", + "selector-empty": "元素选择器为空", + "invalid-body": "内容正文不是有效的 JSON", + "invalid-active-tab": "\"{url}\" 是无效 URL", + "empty-spreadsheet-id": "电子表格 ID 为空", + "invalid-loop-data": "要循环的数据无效", + "empty-workflow": "您必须先选择工作流", + "active-tab-removed": "工作流活动标签页已删除", + "empty-spreadsheet-range": "电子表格范围为空", + "stop-timeout": "工作流程因超时而停止", + "no-file-access": "Automa 无权访问该文件", + "no-workflow": "找不到含 \"{workflowId}\" ID 的工作流", + "no-match-tab": "找不到含 \"{pattern}\" 参数的标签页", + "no-clipboard-acces": "无权访问剪贴板", + "element-not-found": "找不到含 \"{selector}\" 选择器的元素.", + "not-iframe": "含 \"{selector}\" 选择器的元素并不是一个 Iframe 元素", + "iframe-not-found": "找不到含 \"{selector}\" 选择器的 Iframe 元素.", + "workflow-infinite-loop": "无法执行工作流以防止无限循环", + "not-debug-mode": "工作流必须在调试模式下运行,此模块才能正常工作", + "no-iframe-id": "找不到含 \"{selector}\" 选择器的 iframe 元素 ID ", + "no-tab": "无法连接到标签页,请在使用 \"{name}\" 模块之前使用 \"新建标签页\" 或 \"活动标签页\" 模块。" }, "description": { - "text": "在{date}用了{duration}执行{status} ", + "text": "在{date}用了{duration}执行{status}", "status": { "success": "成功", "error": "失败", @@ -92,7 +250,7 @@ }, "delete": { "title": "删除日志", - "description": "你确定要删除选定的日志吗?" + "description": "您确定要删除所有选定的日志吗?" }, "exportData": { "title": "导出数据", @@ -108,7 +266,7 @@ "byDate": { "title": "按日期", "items": { - "lastDay": "最近一天", + "lastDay": "最近1天", "last7Days": "最近7天", "last30Days": "最近30天" } @@ -118,11 +276,11 @@ "components": { "pagination": { "text1": "显示", - "text2": "条 共{count}条", + "text2": "条 共 {count} 条", "nextPage": "下一页", "currentPage": "当前页", "prevPage": "上一页", - "of": "共{page}页" + "of": "共 {page} 页" } } } From cfb3757a8101490d47f8a5925bf07432707d4585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=81=90=E9=BE=99?= Date: Mon, 28 Mar 2022 10:21:47 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=201.51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/zh/popup.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/locales/zh/popup.json b/src/locales/zh/popup.json index e0cdf360a..79ed875f2 100644 --- a/src/locales/zh/popup.json +++ b/src/locales/zh/popup.json @@ -1,5 +1,14 @@ { + "recording": { + "stop": "停止录制", + "title": "录制中" + }, "home": { + "record": { + "title": "录制工作流", + "button": "录制", + "name": "工作流名称" + }, "elementSelector": { "name": "元素选择器", "noAccess": "您没有权限访问此站点" @@ -8,6 +17,6 @@ "new": "新建工作流", "rename": "重命名工作流", "delete": "删除工作流" - } + }, } }