UNPKG

5.05 kBJavaScriptView Raw
1import { mergeLocale } from '../utils/merge-locale';
2import { base } from './base';
3const typeTemplate = '${label}ไม่ใช่${type}ที่ถูกต้อง';
4const thTH = mergeLocale(base, {
5 locale: 'th-TH',
6 common: {
7 confirm: 'ยืนยัน',
8 cancel: 'ยกเลิก',
9 loading: 'กำลังโหลด',
10 close: 'ปิด'
11 },
12 Calendar: {
13 title: 'เลือกวันที่',
14 confirm: 'ยืนยัน',
15 start: 'เริ่ม',
16 end: 'เสร็จ',
17 today: 'วันนี้',
18 markItems: ['วันจันทร์', 'วันอังคาร', 'วันพุธ', 'วันพฤหัสบดี', 'วันศุกร์', 'วันเสาร์', 'วันอาทิตย์'],
19 yearAndMonth: '${year}/${month}'
20 },
21 Cascader: {
22 placeholder: 'เลือก'
23 },
24 Dialog: {
25 ok: 'ฉันรู้แล้ว'
26 },
27 DatePicker: {
28 tillNow: 'จนถึงตอนนี้'
29 },
30 ErrorBlock: {
31 default: {
32 title: 'อุ๊ปส์, มีบางอย่างผิดพลาด',
33 description: 'กรุณารอสักครู่แล้วลองอีกครั้ง'
34 },
35 busy: {
36 title: 'อุ๊ปส์, ไม่ได้โหลด',
37 description: 'ลองรีเฟรชหน้า'
38 },
39 disconnected: {
40 title: 'เครือข่ายไม่ว่าง',
41 description: 'ลองรีเฟรชหน้า'
42 },
43 empty: {
44 title: 'อืมม, ไม่พบ...',
45 description: 'ลองค้นหาใหม่?'
46 }
47 },
48 Form: {
49 required: 'จำเป็น',
50 optional: 'ไม่จำเป็น',
51 defaultValidateMessages: {
52 default: 'ข้อผิดพลาดในการตรวจสอบฟิลด์ ${label}',
53 required: 'กรุณากรอก ${label}',
54 enum: '${label} ต้องเป็นหนึ่งใน [${enum}]',
55 whitespace: '${label} ต้องไม่มีช่องว่าง',
56 date: {
57 format: 'รูปแบบวันที่ ${label} ไม่ถูกต้อง',
58 parse: '${label} ไม่สามารถแปลงเป็นวันที่ได้',
59 invalid: '${label} เป็นวันที่ไม่ถูกต้อง'
60 },
61 types: {
62 string: typeTemplate,
63 method: typeTemplate,
64 array: typeTemplate,
65 object: typeTemplate,
66 number: typeTemplate,
67 date: typeTemplate,
68 boolean: typeTemplate,
69 integer: typeTemplate,
70 float: typeTemplate,
71 regexp: typeTemplate,
72 email: typeTemplate,
73 url: typeTemplate,
74 hex: typeTemplate
75 },
76 string: {
77 len: '${label} ต้องมี ${len} ตัวอักษร',
78 min: '${label} ต้องมีอย่างน้อย ${min} ตัวอักษร',
79 max: '${label} ต้องมีไม่เกิน ${max} ตัวอักษร',
80 range: '${label} ต้องอยู่ระหว่าง ${min}-${max} ตัวอักษร'
81 },
82 number: {
83 len: '${label} ต้องเท่ากับ ${len}',
84 min: '${label} ต้องมีอย่างน้อย ${min}',
85 max: '${label} ต้องมีไม่เกิน ${max}',
86 range: '${label} ต้องอยู่ระหว่าง ${min}-${max}'
87 },
88 array: {
89 len: 'ต้องมี ${len} ${label}',
90 min: 'อย่างน้อย ${min} ${label}',
91 max: 'มากสุด ${max} ${label}',
92 range: 'จำนวน ${label} ต้องอยู่ระหว่าง ${min}-${max}'
93 },
94 pattern: {
95 mismatch: '${label} ไม่ตรงกับรูปแบบ ${pattern}'
96 }
97 }
98 },
99 ImageUploader: {
100 uploading: 'กำลังอัปโหลด...',
101 upload: 'อัปโหลด'
102 },
103 InfiniteScroll: {
104 noMore: 'ไม่มีเพิ่มเติม',
105 failedToLoad: 'โหลดล้มเหลว',
106 retry: 'ลองใหม่'
107 },
108 Input: {
109 clear: 'ชัดเจน'
110 },
111 Mask: {
112 name: 'มาสก์'
113 },
114 Modal: {
115 ok: 'ฉันรู้แล้ว'
116 },
117 PasscodeInput: {
118 name: 'ป้อนรหัสผ่าน'
119 },
120 PullToRefresh: {
121 pulling: 'ดึงลงเพื่อรีเฟรช',
122 canRelease: 'ปล่อยเพื่อรีเฟรชทันที',
123 complete: 'รีเฟรชสำเร็จ'
124 },
125 SearchBar: {
126 name: 'แถบค้นหา'
127 },
128 Slider: {
129 name: 'สไลด์เดอร์'
130 },
131 Stepper: {
132 decrease: 'ลด',
133 increase: 'เพิ่ม'
134 },
135 Switch: {
136 name: 'สวิตช์'
137 },
138 Selector: {
139 name: 'เลือก'
140 }
141});
142export default thTH;
\No newline at end of file