Skip to content

Commit

Permalink
Add English translations for MacroImporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Oct 29, 2024
1 parent ca85125 commit 5ef0169
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/designer/MacroExporter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ copy-failed = 复制失败:{ $err }

<fluent locale="en-US">
has-notify = Notification
has-lock = Lock Macro
has-lock = Macro Lock
avg-size = Equalize
oneclick-copy = Oneclick Copy

Expand Down
25 changes: 23 additions & 2 deletions src/components/designer/MacroImporter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function trimQuotation(v: string): string {
<el-button type="primary" @click="confirm" :disabled="inputText.length == 0">
{{ $t('confirm') }}
</el-button>
<el-checkbox v-model="strictMode" label="严格模式" />
<el-checkbox v-model="strictMode" :label="$t('strict-mode')" />
<el-switch v-model="strictMode" />
</el-space>
</template>
Expand All @@ -173,6 +173,7 @@ function trimQuotation(v: string): string {
<fluent locale="zh-CN">
auto-recognize = 粘贴自动识别
confirm = 确认
strict-mode = 严格模式

err-parse-json = 尝试解析 JSON 失败:{ $err }
err-not-an-array = 输入的 JSON 不是一个数组
Expand All @@ -184,4 +185,24 @@ err-parse-line-error = 导入第 { $n } 行失败

warn-action-not-found = 没有识别到技能
recognize-success = 识别成功,一共导入了 { $n } 个技能
</fluent>
</fluent>

<fluent locale="en-US">
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
</fluent>

0 comments on commit 5ef0169

Please sign in to comment.