From 5ef016985dfe2acc052f345c40784445c4a7139b Mon Sep 17 00:00:00 2001 From: Tnze Date: Tue, 29 Oct 2024 20:14:46 +0800 Subject: [PATCH] Add English translations for MacroImporter --- src/components/designer/MacroExporter.vue | 2 +- src/components/designer/MacroImporter.vue | 25 +++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/components/designer/MacroExporter.vue b/src/components/designer/MacroExporter.vue index 5972a340..9e3fc9bf 100644 --- a/src/components/designer/MacroExporter.vue +++ b/src/components/designer/MacroExporter.vue @@ -185,7 +185,7 @@ copy-failed = 复制失败:{ $err } has-notify = Notification -has-lock = Lock Macro +has-lock = Macro Lock avg-size = Equalize oneclick-copy = Oneclick Copy diff --git a/src/components/designer/MacroImporter.vue b/src/components/designer/MacroImporter.vue index 8cffe92c..12f07dbb 100644 --- a/src/components/designer/MacroImporter.vue +++ b/src/components/designer/MacroImporter.vue @@ -159,7 +159,7 @@ function trimQuotation(v: string): string { {{ $t('confirm') }} - + @@ -173,6 +173,7 @@ function trimQuotation(v: string): string { auto-recognize = 粘贴自动识别 confirm = 确认 +strict-mode = 严格模式 err-parse-json = 尝试解析 JSON 失败:{ $err } err-not-an-array = 输入的 JSON 不是一个数组 @@ -184,4 +185,24 @@ err-parse-line-error = 导入第 { $n } 行失败 warn-action-not-found = 没有识别到技能 recognize-success = 识别成功,一共导入了 { $n } 个技能 - \ No newline at end of file + + + +auto-recognize = Paste macros or JSON here +confirm = Confirm +strict-mode = Strict mode + +err-parse-json = Try parsing JSON failed: { $err } +err-not-an-array = Input JSON is not an array +err-not-a-string = Element { $elem } is not a string +err-invalid-action = Invalid action: { $action } + +err-parse-strict = Try parsing in strict mode failed: { $err } +err-parse-line-error = Parsing line { $n } failed + +warn-action-not-found = No action is found +recognize-success = Recognize successed, { $n -> + [one] one action is + *[other] {$n} actions are +} imported +