@pdfme/ui 4.0.0 → 4.0.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +204 -60
- package/dist/index.umd.js +9 -9
- package/dist/types/class.d.ts +1 -1
- package/package.json +1 -1
- package/src/i18n.ts +120 -0
package/dist/types/class.d.ts
CHANGED
@@ -10,7 +10,7 @@ export declare abstract class BaseUIClass {
|
|
10
10
|
private readonly setSize;
|
11
11
|
resizeObserver: ResizeObserver;
|
12
12
|
constructor(props: UIProps);
|
13
|
-
protected getLang(): "en" | "th" | "pl" | "ja" | "ar" | "it" | "de" | "es" | "fr";
|
13
|
+
protected getLang(): "en" | "th" | "pl" | "zh" | "ja" | "ko" | "ar" | "it" | "de" | "es" | "fr";
|
14
14
|
protected getFont(): Record<string, {
|
15
15
|
data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
|
16
16
|
fallback?: boolean | undefined;
|
package/package.json
CHANGED
package/src/i18n.ts
CHANGED
@@ -61,6 +61,65 @@ const dictEn: { [key in keyof Dict]: string } = {
|
|
61
61
|
'schemas.table.columnStyle': 'Column Style',
|
62
62
|
};
|
63
63
|
|
64
|
+
const dictZh: { [key in keyof Dict]: string } = {
|
65
|
+
cancel: '取消',
|
66
|
+
field: '字段',
|
67
|
+
fieldName: '名称',
|
68
|
+
align: '对齐',
|
69
|
+
width: '宽度',
|
70
|
+
height: '高度',
|
71
|
+
opacity: '透明度',
|
72
|
+
rotate: '旋转',
|
73
|
+
edit: '编辑',
|
74
|
+
plsInputName: '请输入名称',
|
75
|
+
fieldMustUniq: '字段名称必须唯一',
|
76
|
+
notUniq: '(名称不唯一)',
|
77
|
+
noKeyName: '无名称',
|
78
|
+
fieldsList: '字段列表',
|
79
|
+
editField: '编辑字段',
|
80
|
+
type: '类型',
|
81
|
+
errorOccurred: '发生错误',
|
82
|
+
errorBulkUpdateFieldName: '由于项目数量已更改,无法提交更改。',
|
83
|
+
commitBulkUpdateFieldName: '提交更改',
|
84
|
+
bulkUpdateFieldName: '批量更新字段名称',
|
85
|
+
addPageAfter: '在之后添加页面',
|
86
|
+
removePage: '删除当前页面',
|
87
|
+
removePageConfirm: '您确定要删除此页面吗?此操作无法撤销。',
|
88
|
+
hexColorPrompt: '请输入有效的十六进制颜色代码。',
|
89
|
+
'schemas.color': '颜色',
|
90
|
+
'schemas.borderWidth': '边框宽度',
|
91
|
+
'schemas.borderColor': '边框颜色',
|
92
|
+
'schemas.backgroundColor': '背景颜色',
|
93
|
+
'schemas.textColor': '文字颜色',
|
94
|
+
'schemas.bgColor': '背景颜色',
|
95
|
+
'schemas.horizontal': '水平',
|
96
|
+
'schemas.vertical': '垂直',
|
97
|
+
'schemas.left': '左',
|
98
|
+
'schemas.center': '中',
|
99
|
+
'schemas.right': '右',
|
100
|
+
'schemas.top': '顶',
|
101
|
+
'schemas.middle': '中间',
|
102
|
+
'schemas.bottom': '底',
|
103
|
+
'schemas.padding': '填充',
|
104
|
+
'schemas.text.fontName': '字体名称',
|
105
|
+
'schemas.text.size': '大小',
|
106
|
+
'schemas.text.spacing': '间距',
|
107
|
+
'schemas.text.textAlign': '文本对齐',
|
108
|
+
'schemas.text.verticalAlign': '垂直对齐',
|
109
|
+
'schemas.text.lineHeight': '行高',
|
110
|
+
'schemas.text.min': '最小',
|
111
|
+
'schemas.text.max': '最大',
|
112
|
+
'schemas.text.fit': '适应',
|
113
|
+
'schemas.text.dynamicFontSize': '动态字体大小',
|
114
|
+
'schemas.barcodes.barColor': '条码颜色',
|
115
|
+
'schemas.barcodes.includetext': '包括文本',
|
116
|
+
'schemas.table.alternateBackgroundColor': '交替背景颜色',
|
117
|
+
'schemas.table.tableStyle': '表格样式',
|
118
|
+
'schemas.table.headStyle': '表头样式',
|
119
|
+
'schemas.table.bodyStyle': '表体样式',
|
120
|
+
'schemas.table.columnStyle': '列样式',
|
121
|
+
};
|
122
|
+
|
64
123
|
const dictJa: { [key in keyof Dict]: string } = {
|
65
124
|
cancel: 'キャンセル',
|
66
125
|
field: '入力項目',
|
@@ -120,6 +179,65 @@ const dictJa: { [key in keyof Dict]: string } = {
|
|
120
179
|
'schemas.table.columnStyle': 'カラムスタイル',
|
121
180
|
};
|
122
181
|
|
182
|
+
const dictKo: { [key in keyof Dict]: string } = {
|
183
|
+
cancel: '취소',
|
184
|
+
field: '필드',
|
185
|
+
fieldName: '이름',
|
186
|
+
align: '정렬',
|
187
|
+
width: '너비',
|
188
|
+
height: '높이',
|
189
|
+
opacity: '투명도',
|
190
|
+
rotate: '회전',
|
191
|
+
edit: '편집',
|
192
|
+
plsInputName: '이름을 입력하세요',
|
193
|
+
fieldMustUniq: '필드 이름은 유일해야 합니다',
|
194
|
+
notUniq: '(유일하지 않은 이름)',
|
195
|
+
noKeyName: '이름 없음',
|
196
|
+
fieldsList: '필드 목록',
|
197
|
+
editField: '필드 편집',
|
198
|
+
type: '유형',
|
199
|
+
errorOccurred: '오류 발생',
|
200
|
+
errorBulkUpdateFieldName: '항목 수가 변경되어 변경을 커밋할 수 없습니다.',
|
201
|
+
commitBulkUpdateFieldName: '변경 사항 커밋',
|
202
|
+
bulkUpdateFieldName: '필드 이름 일괄 업데이트',
|
203
|
+
addPageAfter: '다음에 페이지 추가',
|
204
|
+
removePage: '현재 페이지 제거',
|
205
|
+
removePageConfirm: '이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.',
|
206
|
+
hexColorPrompt: '유효한 16진수 색상 코드를 입력하세요.',
|
207
|
+
'schemas.color': '색상',
|
208
|
+
'schemas.borderWidth': '테두리 너비',
|
209
|
+
'schemas.borderColor': '테두리 색상',
|
210
|
+
'schemas.backgroundColor': '배경색',
|
211
|
+
'schemas.textColor': '텍스트 색상',
|
212
|
+
'schemas.bgColor': '배경색',
|
213
|
+
'schemas.horizontal': '수평',
|
214
|
+
'schemas.vertical': '수직',
|
215
|
+
'schemas.left': '왼쪽',
|
216
|
+
'schemas.center': '중앙',
|
217
|
+
'schemas.right': '오른쪽',
|
218
|
+
'schemas.top': '상단',
|
219
|
+
'schemas.middle': '중간',
|
220
|
+
'schemas.bottom': '하단',
|
221
|
+
'schemas.padding': '패딩',
|
222
|
+
'schemas.text.fontName': '글꼴 이름',
|
223
|
+
'schemas.text.size': '크기',
|
224
|
+
'schemas.text.spacing': '간격',
|
225
|
+
'schemas.text.textAlign': '텍스트 정렬',
|
226
|
+
'schemas.text.verticalAlign': '수직 정렬',
|
227
|
+
'schemas.text.lineHeight': '줄 높이',
|
228
|
+
'schemas.text.min': '최소',
|
229
|
+
'schemas.text.max': '최대',
|
230
|
+
'schemas.text.fit': '맞춤',
|
231
|
+
'schemas.text.dynamicFontSize': '동적 폰트 크기',
|
232
|
+
'schemas.barcodes.barColor': '바코드 색상',
|
233
|
+
'schemas.barcodes.includetext': '텍스트 포함',
|
234
|
+
'schemas.table.alternateBackgroundColor': '대체 배경색',
|
235
|
+
'schemas.table.tableStyle': '테이블 스타일',
|
236
|
+
'schemas.table.headStyle': '헤더 스타일',
|
237
|
+
'schemas.table.bodyStyle': '본문 스타일',
|
238
|
+
'schemas.table.columnStyle': '열 스타일',
|
239
|
+
};
|
240
|
+
|
123
241
|
const dictAr: { [key in keyof Dict]: string } = {
|
124
242
|
cancel: 'إلغاء',
|
125
243
|
field: 'الحقل',
|
@@ -541,7 +659,9 @@ const dictFr: { [key in keyof Dict]: string } = {
|
|
541
659
|
|
542
660
|
const dictionaries: { [key in Lang]: Dict } = {
|
543
661
|
en: dictEn,
|
662
|
+
zh: dictZh,
|
544
663
|
ja: dictJa,
|
664
|
+
ko: dictKo,
|
545
665
|
ar: dictAr,
|
546
666
|
th: dictTh,
|
547
667
|
it: dictIt,
|