@pdfme/ui 1.2.2 → 1.2.3
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.js +1 -1
- package/dist/index.js.LICENSE.txt +4 -10
- package/dist/index.js.map +1 -1
- package/dist/types/components/Designer/index.d.ts +1 -1
- package/package.json +4 -5
- package/src/i18n.ts +25 -0
@@ -98,7 +98,7 @@ declare const TemplateEditor: ({ template, size, onSaveTemplate, onChangeTemplat
|
|
98
98
|
fallback?: boolean | undefined;
|
99
99
|
subset?: boolean | undefined;
|
100
100
|
}> | undefined;
|
101
|
-
lang?: "en" | "ja" | "ar" | undefined;
|
101
|
+
lang?: "th" | "en" | "ja" | "ar" | undefined;
|
102
102
|
} | undefined;
|
103
103
|
} & {
|
104
104
|
onChangeTemplate: (t: Template) => void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pdfme/ui",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.3",
|
4
4
|
"sideEffects": false,
|
5
5
|
"author": "hand-dot",
|
6
6
|
"license": "MIT",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"@pdfme/common": "^1.2.1",
|
45
45
|
"@scena/react-guides": "^0.16.0",
|
46
46
|
"hotkeys-js": "^3.8.7",
|
47
|
-
"pdfjs-dist": "
|
47
|
+
"pdfjs-dist": "2.12.313",
|
48
48
|
"react": "^17.0.2",
|
49
49
|
"react-dom": "^17.0.2",
|
50
50
|
"react-moveable": "^0.30.3",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"devDependencies": {
|
54
54
|
"@testing-library/jest-dom": "^5.16.1",
|
55
55
|
"@testing-library/react": "^12.1.2",
|
56
|
-
"@types/pdfjs-dist": "^2.
|
56
|
+
"@types/pdfjs-dist": "^2.10.378",
|
57
57
|
"@types/react": "^17.0.52",
|
58
58
|
"@types/react-dom": "^17.0.18",
|
59
59
|
"eslint-plugin-react": "^7.28.0",
|
@@ -61,8 +61,7 @@
|
|
61
61
|
"jest-canvas-mock": "^2.3.1",
|
62
62
|
"process": "^0.11.10",
|
63
63
|
"webpack": "^5.75.0",
|
64
|
-
"webpack-cli": "^5.0.1"
|
65
|
-
"worker-loader": "^3.0.8"
|
64
|
+
"webpack-cli": "^5.0.1"
|
66
65
|
},
|
67
66
|
"jest": {
|
68
67
|
"setupFiles": [
|
package/src/i18n.ts
CHANGED
@@ -69,8 +69,33 @@ const dictAr: { [key in keyof DictEn]: string } = {
|
|
69
69
|
bulkUpdateFieldName: 'تغيير الأسماء',
|
70
70
|
};
|
71
71
|
|
72
|
+
const dictTh: { [key in keyof DictEn]: string } = {
|
73
|
+
cancel: 'ยกเลิก',
|
74
|
+
field: 'ฟิลด์',
|
75
|
+
fieldName: 'ชื่อฟิลด์',
|
76
|
+
require: 'จำเป็น',
|
77
|
+
uniq: 'ต้องไม่ซ้ำกัน',
|
78
|
+
inputExample: 'ตัวอย่าง',
|
79
|
+
edit: 'แก้ไข',
|
80
|
+
plsInputName: 'กรุณาใส่ชื่อ',
|
81
|
+
fieldMustUniq: 'ชื่อฟิลด์ต้องไม่ซ้ำกัน',
|
82
|
+
notUniq: '(ชื่อฟิลด์ซ้ำกัน)',
|
83
|
+
noKeyName: 'ไม่มีชื่อ',
|
84
|
+
fieldsList: 'รายการฟิลด์ทั้งหมด',
|
85
|
+
addNewField: 'เพิ่มฟิลด์ใหม่',
|
86
|
+
editField: 'แก้ไขฟิลด์',
|
87
|
+
type: 'ประเภท',
|
88
|
+
errorOccurred: 'เกิดข้อผิดพลาด',
|
89
|
+
errorBulkUpdateFieldName: 'ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง',
|
90
|
+
commitBulkUpdateFieldName: 'ยืนยันการแก้ไข',
|
91
|
+
bulkUpdateFieldName: 'แก้ไขชื่อฟิลด์เป็นชุด',
|
92
|
+
};
|
93
|
+
|
72
94
|
const i18n = (lang: Lang, key: keyof DictEn) => {
|
73
95
|
switch (lang) {
|
96
|
+
case 'th':
|
97
|
+
return dictTh[key];
|
98
|
+
|
74
99
|
case 'ar':
|
75
100
|
return dictAr[key];
|
76
101
|
|