From 622b8e69a0c7866e423f33a89118e6af9a0d4fe3 Mon Sep 17 00:00:00 2001 From: Ocyss Date: Fri, 12 Jan 2024 17:00:00 +0800 Subject: [PATCH] =?UTF-8?q?style(PDFToolkit):=20=F0=9F=8C=88=20I18N?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.ts | 1 - src/views/PDFToolkit/index.vue | 38 ++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 65090e5..38fe4cf 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,6 +1,5 @@ import type { RouteRecordRaw } from 'vue-router/auto' - export class EventBucket { value: ((...args: any[]) => any)[] = [] get length() { diff --git a/src/views/PDFToolkit/index.vue b/src/views/PDFToolkit/index.vue index 299a517..3dc821e 100644 --- a/src/views/PDFToolkit/index.vue +++ b/src/views/PDFToolkit/index.vue @@ -3,7 +3,7 @@ name: PDFToolkit meta: title: PDFToolkit desc: PDFToolkit enables seamless splitting and merging operations on PDF files based on specified page numbers, offering convenient manipulation of PDF documents. - help: 很方便的将PDF文件按照页码进行拆分,也能很方便的将多个PDF附件合并成一个 + help: group: tags: - Audit @@ -65,7 +65,7 @@ const disableds = computed>(() => [ ], [ !modelData.model && !modelData.pages, - t('拆分符不能为空'), + t('The split notes cannot be empty'), ], ]) @@ -115,7 +115,7 @@ function start(records: IRecord[], pr: Progress, inField: IAttachmentField, outF await outField.setValue(record.recordId, files) } catch (e) { - layout.value?.error('未知错误', { + layout.value?.error(t('unknown mistake'), { recordId: record.recordId, tableId: tableId.value, viewId: viewId.value, @@ -132,7 +132,7 @@ function start(records: IRecord[], pr: Progress, inField: IAttachmentField, outF async function main(all?: boolean) { if (!table.value || !modelData.input || !modelData.output) return - layout.value?.update(true, '获取字段信息') + layout.value?.update(true, t('Get field information')) const [ inField, outField, @@ -169,10 +169,10 @@ onMounted(() => { { @@ -211,7 +211,19 @@ onMounted(() => { -{} +{ + "Merge Mode": "合并模式", + "Split Mode": "拆分模式", + "Can be entered manually or specified by fields": "可以手动输入,也可以指定字段", + "Use `,` to separate individual page numbers, such as 3,5,8, to split and merge into one file for pages 3, 5, and 8.": "使用`,`来分隔单个页码,如 3,5,8 将按3,5,8页进行拆分合并为一个文件。", + "Use `-` or `to` to indicate a range, such as 3-7, to split and merge into one file from page 3 to page 7.": "使用`-`或`to`来表示一个区间,如 3-7 将从第3页开始到第7页进行拆分合并为一个文件。", + "Use `/` to create an additional file, such as 1/2-5, to split into two files, the first with only page 1, and the second from page 2 to page 5.": "使用`/`额外创建一个文件,如 1/2-5 将拆分为两个文件,第一个文件只有第一页,第二个文件从第2页到第5页。", + "Use `start/s` or `end/e` to represent the starting page or ending page, such as 5-end, to split from page 5 to the last page, and start-5, to split from the first page to page 5.": "使用`start/s`或`end/e`来代表起始页码或结束页码,如 5-end 将从第5页拆分到最后一页,start-5 将从第1页拆分到第5页。", + "Configuration split":"配置拆分符", + "The split notes cannot be empty":"拆分符不能为空", + "unknown mistake":"未知错误", + "Get field information":"获取字段信息" +}