antd-mobile 5.34.0 → 5.36.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.
Files changed (240) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +472 -1560
  2. package/2x/bundle/antd-mobile.cjs.js +7 -7
  3. package/2x/bundle/antd-mobile.es.development.js +473 -1561
  4. package/2x/bundle/antd-mobile.es.js +7287 -8011
  5. package/2x/bundle/antd-mobile.umd.development.js +472 -1560
  6. package/2x/bundle/antd-mobile.umd.js +7 -7
  7. package/2x/bundle/css-vars-patch.css +3 -3
  8. package/2x/bundle/style.css +6 -10
  9. package/2x/cjs/components/button/button.d.ts +3 -3
  10. package/2x/cjs/components/button/button.patch.css +3 -3
  11. package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  12. package/2x/cjs/components/checkbox/native-input.js +1 -1
  13. package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
  14. package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
  15. package/2x/cjs/components/error-block/create-error-block.js +1 -0
  16. package/2x/cjs/components/error-block/index.d.ts +0 -1
  17. package/2x/cjs/components/error-block/index.js +2 -3
  18. package/2x/cjs/components/form/form-item.js +1 -0
  19. package/2x/cjs/components/form/form.js +2 -2
  20. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  21. package/2x/cjs/components/input/input.d.ts +2 -4
  22. package/2x/cjs/components/input/input.js +8 -17
  23. package/2x/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
  24. package/2x/cjs/components/input/useInputHandleKeyDown.js +29 -0
  25. package/2x/cjs/components/picker-view/wheel.js +7 -4
  26. package/2x/cjs/components/popover/index.d.ts +1 -1
  27. package/2x/cjs/components/popover/popover.d.ts +1 -1
  28. package/2x/cjs/components/radio/radio.css +1 -1
  29. package/2x/cjs/components/radio/radio.d.ts +1 -1
  30. package/2x/cjs/components/radio/radio.js +5 -5
  31. package/2x/cjs/components/result-page/result-page.css +5 -5
  32. package/2x/cjs/components/result-page/result-page.d.ts +1 -1
  33. package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  34. package/2x/cjs/components/swiper/index.d.ts +1 -1
  35. package/2x/cjs/components/swiper/swiper.d.ts +2 -2
  36. package/2x/cjs/components/swiper/swiper.js +5 -1
  37. package/2x/cjs/components/text-area/text-area.css +0 -4
  38. package/2x/cjs/components/text-area/text-area.d.ts +6 -2
  39. package/2x/cjs/components/text-area/text-area.js +9 -1
  40. package/2x/cjs/global/css-vars-patch.css +3 -3
  41. package/2x/cjs/index.d.ts +1 -1
  42. package/2x/cjs/index.js +6 -0
  43. package/2x/cjs/locales/ar-SA.d.ts +139 -0
  44. package/2x/cjs/locales/ar-SA.js +149 -0
  45. package/2x/cjs/locales/de-DE.d.ts +139 -0
  46. package/2x/cjs/locales/de-DE.js +149 -0
  47. package/2x/cjs/locales/hu-HU.d.ts +139 -0
  48. package/2x/cjs/locales/hu-HU.js +148 -0
  49. package/2x/cjs/locales/ms-MY.d.ts +139 -0
  50. package/2x/cjs/locales/ms-MY.js +149 -0
  51. package/2x/cjs/locales/pt-BR.d.ts +139 -0
  52. package/2x/cjs/locales/pt-BR.js +144 -0
  53. package/2x/cjs/locales/th-TH.d.ts +139 -0
  54. package/2x/cjs/locales/th-TH.js +149 -0
  55. package/2x/cjs/locales/vi-VN.d.ts +139 -0
  56. package/2x/cjs/locales/vi-VN.js +149 -0
  57. package/2x/cjs/locales/zh-CN.d.ts +2 -138
  58. package/2x/cjs/locales/zh-CN.js +2 -4
  59. package/2x/cjs/locales/zh-CN.test.d.ts +1 -0
  60. package/2x/cjs/locales/zh-CN.test.js +19 -0
  61. package/2x/cjs/utils/with-default-props.js +8 -9
  62. package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
  63. package/2x/cjs/utils/with-stop-propagation.js +2 -1
  64. package/2x/es/components/button/button.d.ts +3 -3
  65. package/2x/es/components/button/button.patch.css +3 -3
  66. package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  67. package/2x/es/components/checkbox/native-input.js +1 -1
  68. package/2x/es/components/config-provider/config-provider.d.ts +3 -2
  69. package/2x/es/components/error-block/create-error-block.d.ts +1 -0
  70. package/2x/es/components/error-block/create-error-block.js +1 -0
  71. package/2x/es/components/error-block/index.d.ts +0 -1
  72. package/2x/es/components/error-block/index.js +0 -1
  73. package/2x/es/components/form/form-item.js +1 -0
  74. package/2x/es/components/form/form.js +2 -2
  75. package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
  76. package/2x/es/components/input/input.d.ts +2 -4
  77. package/2x/es/components/input/input.js +8 -17
  78. package/2x/es/components/input/useInputHandleKeyDown.d.ts +8 -0
  79. package/2x/es/components/input/useInputHandleKeyDown.js +23 -0
  80. package/2x/es/components/picker-view/wheel.js +6 -3
  81. package/2x/es/components/popover/index.d.ts +1 -1
  82. package/2x/es/components/popover/popover.d.ts +1 -1
  83. package/2x/es/components/radio/radio.css +1 -1
  84. package/2x/es/components/radio/radio.d.ts +1 -1
  85. package/2x/es/components/radio/radio.js +4 -4
  86. package/2x/es/components/result-page/result-page.css +5 -5
  87. package/2x/es/components/result-page/result-page.d.ts +1 -1
  88. package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
  89. package/2x/es/components/swiper/index.d.ts +1 -1
  90. package/2x/es/components/swiper/swiper.d.ts +2 -2
  91. package/2x/es/components/swiper/swiper.js +5 -1
  92. package/2x/es/components/text-area/text-area.css +0 -4
  93. package/2x/es/components/text-area/text-area.d.ts +6 -2
  94. package/2x/es/components/text-area/text-area.js +9 -1
  95. package/2x/es/global/css-vars-patch.css +3 -3
  96. package/2x/es/index.d.ts +1 -1
  97. package/2x/es/index.js +1 -1
  98. package/2x/es/locales/ar-SA.d.ts +139 -0
  99. package/2x/es/locales/ar-SA.js +142 -0
  100. package/2x/es/locales/de-DE.d.ts +139 -0
  101. package/2x/es/locales/de-DE.js +142 -0
  102. package/2x/es/locales/hu-HU.d.ts +139 -0
  103. package/2x/es/locales/hu-HU.js +140 -0
  104. package/2x/es/locales/ms-MY.d.ts +139 -0
  105. package/2x/es/locales/ms-MY.js +142 -0
  106. package/2x/es/locales/pt-BR.d.ts +139 -0
  107. package/2x/es/locales/pt-BR.js +137 -0
  108. package/2x/es/locales/th-TH.d.ts +139 -0
  109. package/2x/es/locales/th-TH.js +142 -0
  110. package/2x/es/locales/vi-VN.d.ts +139 -0
  111. package/2x/es/locales/vi-VN.js +142 -0
  112. package/2x/es/locales/zh-CN.d.ts +2 -138
  113. package/2x/es/locales/zh-CN.js +2 -4
  114. package/2x/es/locales/zh-CN.test.d.ts +1 -0
  115. package/2x/es/locales/zh-CN.test.js +16 -0
  116. package/2x/es/utils/with-default-props.js +8 -8
  117. package/2x/es/utils/with-stop-propagation.d.ts +1 -1
  118. package/2x/es/utils/with-stop-propagation.js +2 -1
  119. package/2x/package.json +38 -21
  120. package/bundle/antd-mobile.cjs.development.js +472 -1560
  121. package/bundle/antd-mobile.cjs.js +7 -7
  122. package/bundle/antd-mobile.compatible.umd.js +1 -1
  123. package/bundle/antd-mobile.es.development.js +473 -1561
  124. package/bundle/antd-mobile.es.js +7287 -8011
  125. package/bundle/antd-mobile.umd.development.js +472 -1560
  126. package/bundle/antd-mobile.umd.js +7 -7
  127. package/bundle/css-vars-patch.css +3 -3
  128. package/bundle/style.css +1 -1
  129. package/cjs/components/button/button.d.ts +3 -3
  130. package/cjs/components/button/button.patch.css +3 -3
  131. package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  132. package/cjs/components/checkbox/native-input.js +1 -1
  133. package/cjs/components/config-provider/config-provider.d.ts +3 -2
  134. package/cjs/components/error-block/create-error-block.d.ts +1 -0
  135. package/cjs/components/error-block/create-error-block.js +1 -0
  136. package/cjs/components/error-block/index.d.ts +0 -1
  137. package/cjs/components/error-block/index.js +2 -3
  138. package/cjs/components/form/form-item.js +1 -0
  139. package/cjs/components/form/form.js +2 -2
  140. package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  141. package/cjs/components/input/input.d.ts +2 -4
  142. package/cjs/components/input/input.js +8 -17
  143. package/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
  144. package/cjs/components/input/useInputHandleKeyDown.js +29 -0
  145. package/cjs/components/picker-view/wheel.js +7 -4
  146. package/cjs/components/popover/index.d.ts +1 -1
  147. package/cjs/components/popover/popover.d.ts +1 -1
  148. package/cjs/components/radio/radio.css +1 -1
  149. package/cjs/components/radio/radio.d.ts +1 -1
  150. package/cjs/components/radio/radio.js +5 -5
  151. package/cjs/components/result-page/result-page.css +5 -5
  152. package/cjs/components/result-page/result-page.d.ts +1 -1
  153. package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  154. package/cjs/components/swiper/index.d.ts +1 -1
  155. package/cjs/components/swiper/swiper.d.ts +2 -2
  156. package/cjs/components/swiper/swiper.js +5 -1
  157. package/cjs/components/text-area/text-area.css +0 -3
  158. package/cjs/components/text-area/text-area.d.ts +6 -2
  159. package/cjs/components/text-area/text-area.js +9 -1
  160. package/cjs/global/css-vars-patch.css +3 -3
  161. package/cjs/index.d.ts +1 -1
  162. package/cjs/index.js +6 -0
  163. package/cjs/locales/ar-SA.d.ts +139 -0
  164. package/cjs/locales/ar-SA.js +149 -0
  165. package/cjs/locales/de-DE.d.ts +139 -0
  166. package/cjs/locales/de-DE.js +149 -0
  167. package/cjs/locales/hu-HU.d.ts +139 -0
  168. package/cjs/locales/hu-HU.js +148 -0
  169. package/cjs/locales/ms-MY.d.ts +139 -0
  170. package/cjs/locales/ms-MY.js +149 -0
  171. package/cjs/locales/pt-BR.d.ts +139 -0
  172. package/cjs/locales/pt-BR.js +144 -0
  173. package/cjs/locales/th-TH.d.ts +139 -0
  174. package/cjs/locales/th-TH.js +149 -0
  175. package/cjs/locales/vi-VN.d.ts +139 -0
  176. package/cjs/locales/vi-VN.js +149 -0
  177. package/cjs/locales/zh-CN.d.ts +2 -138
  178. package/cjs/locales/zh-CN.js +2 -4
  179. package/cjs/locales/zh-CN.test.d.ts +1 -0
  180. package/cjs/locales/zh-CN.test.js +19 -0
  181. package/cjs/utils/with-default-props.js +8 -9
  182. package/cjs/utils/with-stop-propagation.d.ts +1 -1
  183. package/cjs/utils/with-stop-propagation.js +2 -1
  184. package/es/components/button/button.d.ts +3 -3
  185. package/es/components/button/button.patch.css +3 -3
  186. package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  187. package/es/components/checkbox/native-input.js +1 -1
  188. package/es/components/config-provider/config-provider.d.ts +3 -2
  189. package/es/components/error-block/create-error-block.d.ts +1 -0
  190. package/es/components/error-block/create-error-block.js +1 -0
  191. package/es/components/error-block/index.d.ts +0 -1
  192. package/es/components/error-block/index.js +0 -1
  193. package/es/components/form/form-item.js +1 -0
  194. package/es/components/form/form.js +2 -2
  195. package/es/components/infinite-scroll/infinite-scroll.js +8 -4
  196. package/es/components/input/input.d.ts +2 -4
  197. package/es/components/input/input.js +8 -17
  198. package/es/components/input/useInputHandleKeyDown.d.ts +8 -0
  199. package/es/components/input/useInputHandleKeyDown.js +23 -0
  200. package/es/components/picker-view/wheel.js +6 -3
  201. package/es/components/popover/index.d.ts +1 -1
  202. package/es/components/popover/popover.d.ts +1 -1
  203. package/es/components/radio/radio.css +1 -1
  204. package/es/components/radio/radio.d.ts +1 -1
  205. package/es/components/radio/radio.js +4 -4
  206. package/es/components/result-page/result-page.css +5 -5
  207. package/es/components/result-page/result-page.d.ts +1 -1
  208. package/es/components/swipe-action/swipe-action.d.ts +1 -1
  209. package/es/components/swiper/index.d.ts +1 -1
  210. package/es/components/swiper/swiper.d.ts +2 -2
  211. package/es/components/swiper/swiper.js +5 -1
  212. package/es/components/text-area/text-area.css +0 -3
  213. package/es/components/text-area/text-area.d.ts +6 -2
  214. package/es/components/text-area/text-area.js +9 -1
  215. package/es/global/css-vars-patch.css +3 -3
  216. package/es/index.d.ts +1 -1
  217. package/es/index.js +1 -1
  218. package/es/locales/ar-SA.d.ts +139 -0
  219. package/es/locales/ar-SA.js +142 -0
  220. package/es/locales/de-DE.d.ts +139 -0
  221. package/es/locales/de-DE.js +142 -0
  222. package/es/locales/hu-HU.d.ts +139 -0
  223. package/es/locales/hu-HU.js +140 -0
  224. package/es/locales/ms-MY.d.ts +139 -0
  225. package/es/locales/ms-MY.js +142 -0
  226. package/es/locales/pt-BR.d.ts +139 -0
  227. package/es/locales/pt-BR.js +137 -0
  228. package/es/locales/th-TH.d.ts +139 -0
  229. package/es/locales/th-TH.js +142 -0
  230. package/es/locales/vi-VN.d.ts +139 -0
  231. package/es/locales/vi-VN.js +142 -0
  232. package/es/locales/zh-CN.d.ts +2 -138
  233. package/es/locales/zh-CN.js +2 -4
  234. package/es/locales/zh-CN.test.d.ts +1 -0
  235. package/es/locales/zh-CN.test.js +16 -0
  236. package/es/utils/with-default-props.js +8 -8
  237. package/es/utils/with-stop-propagation.d.ts +1 -1
  238. package/es/utils/with-stop-propagation.js +2 -1
  239. package/package.json +38 -21
  240. package/umd/antd-mobile.js +1 -1
@@ -0,0 +1,142 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label} Bukan satu yabg sah ${type}';
4
+ const msMY = mergeLocale(base, {
5
+ 'locale': 'ms-MY',
6
+ 'common': {
7
+ 'confirm': 'OK',
8
+ 'cancel': 'Batal',
9
+ 'loading': 'Memuatkan',
10
+ 'close': 'Tutup'
11
+ },
12
+ 'Calendar': {
13
+ 'title': 'Pemilihan tarikh',
14
+ 'confirm': 'Ok',
15
+ 'start': 'Mula',
16
+ 'end': 'Tamat',
17
+ 'today': 'Hari ini',
18
+ 'markItems': ['Satu', 'Dua', 'Tiga', 'Empat', 'Lima', 'Enam', 'Hari'],
19
+ 'yearAndMonth': 'Tahun${year} bulan ${month}'
20
+ },
21
+ 'Cascader': {
22
+ 'placeholder': 'Sila pilih'
23
+ },
24
+ 'Dialog': {
25
+ 'ok': 'Faham'
26
+ },
27
+ 'DatePicker': {
28
+ 'tillNow': 'Sehingga kini'
29
+ },
30
+ 'ErrorBlock': {
31
+ 'default': {
32
+ 'title': 'Halaman mengalami beberapa isu kecil',
33
+ 'description': 'Cuba kemudian'
34
+ },
35
+ 'busy': {
36
+ 'title': 'Kesesakan di hadapan',
37
+ 'description': 'Muat semula dan cuba'
38
+ },
39
+ 'disconnected': {
40
+ 'title': 'Rangkaian agak sibuk',
41
+ 'description': 'Untuk membantu membaiki, gerakkan jari anda.'
42
+ },
43
+ 'empty': {
44
+ 'title': 'Tidak menemui apa yang anda perlukan',
45
+ 'description': 'Cari yang lain'
46
+ }
47
+ },
48
+ 'Form': {
49
+ 'required': 'Wajib',
50
+ 'optional': 'Pilihan',
51
+ 'defaultValidateMessages': {
52
+ 'default': 'Ralat pengesahan medan ${label}',
53
+ 'required': 'Sila masukkan ${label}',
54
+ 'enum': '${label} mestilah salah satu daripada [${enum}]',
55
+ 'whitespace': '${label} Tidak boleh menjadi watak nol',
56
+ 'date': {
57
+ 'format': 'Format tarikh ${label} tidak sah',
58
+ 'parse': '${label} tidak boleh ditukar kepada tarikh',
59
+ 'invalid': '${label} Adalah tarikh yang tidak sah'
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} Mestilah ${len} aksara',
78
+ 'min': '${label} Sekurang-kurangnya ${min} aksara',
79
+ 'max': '${label}Maksimum ${max} aksara',
80
+ 'range': '${label} Mesti antara ${min}-${max} aksara'
81
+ },
82
+ 'number': {
83
+ 'len': '${label} mesti sama dengan ${len}',
84
+ 'min': 'Nilai minimum ${label} ialah ${min}',
85
+ 'max': 'Nilai maksimum ${label} ialah ${max}',
86
+ 'range': '${label}Mesti antara ${min}-${max}'
87
+ },
88
+ 'array': {
89
+ 'len': 'Mesti ${len} ${label}',
90
+ 'min': 'Minimum ${min} ${label}',
91
+ 'max': 'Maksimum ${max} ${label}',
92
+ 'range': '${label}Kuantiti mestilah antara ${min}-${max}'
93
+ },
94
+ 'pattern': {
95
+ 'mismatch': '${label}Tidak sepadan dengan model${pattern}'
96
+ }
97
+ }
98
+ },
99
+ 'ImageUploader': {
100
+ 'uploading': 'Sedang memuat naik...',
101
+ 'upload': 'memuat naik'
102
+ },
103
+ 'InfiniteScroll': {
104
+ 'noMore': 'Tiada lagi',
105
+ 'failedToLoad': 'Gagal dimuatkan.',
106
+ 'retry': 'Muat semula'
107
+ },
108
+ 'Input': {
109
+ 'clear': 'Bersihkan'
110
+ },
111
+ 'Mask': {
112
+ 'name': 'lapisan topeng latar belakang'
113
+ },
114
+ 'Modal': {
115
+ 'ok': 'Faham'
116
+ },
117
+ 'PasscodeInput': {
118
+ 'name': 'Kotak input kata laluan'
119
+ },
120
+ 'PullToRefresh': {
121
+ 'pulling': 'Tarik ke bawah untuk muat semula',
122
+ 'canRelease': 'Lepaskan untuk memuatkan semula',
123
+ 'complete': 'Muat semula selesai'
124
+ },
125
+ 'SearchBar': {
126
+ 'name': 'Kotak carian'
127
+ },
128
+ 'Slider': {
129
+ 'name': 'Bar input gelongsor'
130
+ },
131
+ 'Stepper': {
132
+ 'decrease': 'Menurun',
133
+ 'increase': 'Meningkat'
134
+ },
135
+ 'Switch': {
136
+ 'name': 'Suis'
137
+ },
138
+ 'Selector': {
139
+ 'name': 'Pilih kumpulan'
140
+ }
141
+ });
142
+ export default msMY;
@@ -0,0 +1,139 @@
1
+ declare const ptBR: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default ptBR;
@@ -0,0 +1,137 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label} não é um ${type} válido';
4
+ const ptBR = mergeLocale(base, {
5
+ locale: 'pt-BR',
6
+ common: {
7
+ confirm: 'Confirmar',
8
+ cancel: 'Cancelar',
9
+ loading: 'Carregando',
10
+ close: 'Fechar'
11
+ },
12
+ Calendar: {
13
+ markItems: ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'],
14
+ yearAndMonth: '${month}/${year}'
15
+ },
16
+ Cascader: {
17
+ placeholder: 'Selecionando'
18
+ },
19
+ Dialog: {
20
+ ok: 'OK'
21
+ },
22
+ DatePicker: {
23
+ tillNow: 'Até agora'
24
+ },
25
+ ErrorBlock: {
26
+ default: {
27
+ title: 'Oops, algo deu errado',
28
+ description: 'Por favor, aguarde um minuto e tente novamente'
29
+ },
30
+ busy: {
31
+ title: 'Oops, não está carregando',
32
+ description: 'Tente atualizar a página'
33
+ },
34
+ disconnected: {
35
+ title: 'A rede está ocupada',
36
+ description: 'Tente atualizar a página'
37
+ },
38
+ empty: {
39
+ title: 'Hmm, não conseguimos encontrar isso...',
40
+ description: 'Quer tentar uma nova busca?'
41
+ }
42
+ },
43
+ Form: {
44
+ required: 'Obrigatório',
45
+ optional: 'Opcional',
46
+ defaultValidateMessages: {
47
+ default: 'Erro de validação para o campo ${label}',
48
+ required: 'Por favor, insira ${label}',
49
+ enum: '${label} deve ser um dos seguintes [${enum}]',
50
+ whitespace: '${label} não pode ser um espaço em branco',
51
+ date: {
52
+ format: 'Formato de data inválido para ${label}',
53
+ parse: '${label} não pode ser convertido para data',
54
+ invalid: '${label} não é uma data válida'
55
+ },
56
+ types: {
57
+ string: typeTemplate,
58
+ method: typeTemplate,
59
+ array: typeTemplate,
60
+ object: typeTemplate,
61
+ number: typeTemplate,
62
+ date: typeTemplate,
63
+ boolean: typeTemplate,
64
+ integer: typeTemplate,
65
+ float: typeTemplate,
66
+ regexp: typeTemplate,
67
+ email: typeTemplate,
68
+ url: typeTemplate,
69
+ hex: typeTemplate
70
+ },
71
+ string: {
72
+ len: '${label} deve ter ${len} caracteres',
73
+ min: '${label} deve ter pelo menos ${min} caracteres',
74
+ max: '${label} deve ter no máximo ${max} caracteres',
75
+ range: '${label} deve ter entre ${min}-${max} caracteres'
76
+ },
77
+ number: {
78
+ len: '${label} deve ser igual a ${len}',
79
+ min: '${label} deve ser no mínimo ${min}',
80
+ max: '${label} deve ser no máximo ${max}',
81
+ range: '${label} deve estar entre ${min} e ${max}'
82
+ },
83
+ array: {
84
+ len: 'Deve ter ${len} ${label}',
85
+ min: 'Pelo menos ${min} ${label}',
86
+ max: 'No máximo ${max} ${label}',
87
+ range: 'A quantidade de ${label} deve estar entre ${min} e ${max}'
88
+ },
89
+ pattern: {
90
+ mismatch: '${label} não corresponde ao padrão ${pattern}'
91
+ }
92
+ }
93
+ },
94
+ ImageUploader: {
95
+ uploading: 'Carregando...',
96
+ upload: 'Carregar'
97
+ },
98
+ InfiniteScroll: {
99
+ noMore: 'Fim',
100
+ failedToLoad: 'Falha ao carregar',
101
+ retry: 'Tentar novamente'
102
+ },
103
+ Input: {
104
+ clear: 'limpar'
105
+ },
106
+ Mask: {
107
+ name: 'Máscara'
108
+ },
109
+ Modal: {
110
+ ok: 'OK'
111
+ },
112
+ PasscodeInput: {
113
+ name: 'Input de código de acesso'
114
+ },
115
+ PullToRefresh: {
116
+ pulling: 'Deslize para baixo para atualizar',
117
+ canRelease: 'Solte para atualizar',
118
+ complete: 'Atualizado com sucesso'
119
+ },
120
+ SearchBar: {
121
+ name: 'Barra de pesquisa'
122
+ },
123
+ Slider: {
124
+ name: 'Deslizante'
125
+ },
126
+ Stepper: {
127
+ decrease: 'diminuir',
128
+ increase: 'aumentar'
129
+ },
130
+ Switch: {
131
+ name: 'Interruptor'
132
+ },
133
+ Selector: {
134
+ name: 'Seletor'
135
+ }
136
+ });
137
+ export default ptBR;
@@ -0,0 +1,139 @@
1
+ declare const thTH: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default thTH;
@@ -0,0 +1,142 @@
1
+ import { mergeLocale } from '../utils/merge-locale';
2
+ import { base } from './base';
3
+ const typeTemplate = '${label}ไม่ใช่${type}ที่ถูกต้อง';
4
+ const 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
+ });
142
+ export default thTH;