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.
- package/2x/bundle/antd-mobile.cjs.development.js +472 -1560
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +473 -1561
- package/2x/bundle/antd-mobile.es.js +7287 -8011
- package/2x/bundle/antd-mobile.umd.development.js +472 -1560
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/css-vars-patch.css +3 -3
- package/2x/bundle/style.css +6 -10
- package/2x/cjs/components/button/button.d.ts +3 -3
- package/2x/cjs/components/button/button.patch.css +3 -3
- package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/2x/cjs/components/checkbox/native-input.js +1 -1
- package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/2x/cjs/components/error-block/create-error-block.js +1 -0
- package/2x/cjs/components/error-block/index.d.ts +0 -1
- package/2x/cjs/components/error-block/index.js +2 -3
- package/2x/cjs/components/form/form-item.js +1 -0
- package/2x/cjs/components/form/form.js +2 -2
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/cjs/components/input/input.d.ts +2 -4
- package/2x/cjs/components/input/input.js +8 -17
- package/2x/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/2x/cjs/components/input/useInputHandleKeyDown.js +29 -0
- package/2x/cjs/components/picker-view/wheel.js +7 -4
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.d.ts +1 -1
- package/2x/cjs/components/radio/radio.css +1 -1
- package/2x/cjs/components/radio/radio.d.ts +1 -1
- package/2x/cjs/components/radio/radio.js +5 -5
- package/2x/cjs/components/result-page/result-page.css +5 -5
- package/2x/cjs/components/result-page/result-page.d.ts +1 -1
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/cjs/components/swiper/index.d.ts +1 -1
- package/2x/cjs/components/swiper/swiper.d.ts +2 -2
- package/2x/cjs/components/swiper/swiper.js +5 -1
- package/2x/cjs/components/text-area/text-area.css +0 -4
- package/2x/cjs/components/text-area/text-area.d.ts +6 -2
- package/2x/cjs/components/text-area/text-area.js +9 -1
- package/2x/cjs/global/css-vars-patch.css +3 -3
- package/2x/cjs/index.d.ts +1 -1
- package/2x/cjs/index.js +6 -0
- package/2x/cjs/locales/ar-SA.d.ts +139 -0
- package/2x/cjs/locales/ar-SA.js +149 -0
- package/2x/cjs/locales/de-DE.d.ts +139 -0
- package/2x/cjs/locales/de-DE.js +149 -0
- package/2x/cjs/locales/hu-HU.d.ts +139 -0
- package/2x/cjs/locales/hu-HU.js +148 -0
- package/2x/cjs/locales/ms-MY.d.ts +139 -0
- package/2x/cjs/locales/ms-MY.js +149 -0
- package/2x/cjs/locales/pt-BR.d.ts +139 -0
- package/2x/cjs/locales/pt-BR.js +144 -0
- package/2x/cjs/locales/th-TH.d.ts +139 -0
- package/2x/cjs/locales/th-TH.js +149 -0
- package/2x/cjs/locales/vi-VN.d.ts +139 -0
- package/2x/cjs/locales/vi-VN.js +149 -0
- package/2x/cjs/locales/zh-CN.d.ts +2 -138
- package/2x/cjs/locales/zh-CN.js +2 -4
- package/2x/cjs/locales/zh-CN.test.d.ts +1 -0
- package/2x/cjs/locales/zh-CN.test.js +19 -0
- package/2x/cjs/utils/with-default-props.js +8 -9
- package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/2x/cjs/utils/with-stop-propagation.js +2 -1
- package/2x/es/components/button/button.d.ts +3 -3
- package/2x/es/components/button/button.patch.css +3 -3
- package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/2x/es/components/checkbox/native-input.js +1 -1
- package/2x/es/components/config-provider/config-provider.d.ts +3 -2
- package/2x/es/components/error-block/create-error-block.d.ts +1 -0
- package/2x/es/components/error-block/create-error-block.js +1 -0
- package/2x/es/components/error-block/index.d.ts +0 -1
- package/2x/es/components/error-block/index.js +0 -1
- package/2x/es/components/form/form-item.js +1 -0
- package/2x/es/components/form/form.js +2 -2
- package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/2x/es/components/input/input.d.ts +2 -4
- package/2x/es/components/input/input.js +8 -17
- package/2x/es/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/2x/es/components/input/useInputHandleKeyDown.js +23 -0
- package/2x/es/components/picker-view/wheel.js +6 -3
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.d.ts +1 -1
- package/2x/es/components/radio/radio.css +1 -1
- package/2x/es/components/radio/radio.d.ts +1 -1
- package/2x/es/components/radio/radio.js +4 -4
- package/2x/es/components/result-page/result-page.css +5 -5
- package/2x/es/components/result-page/result-page.d.ts +1 -1
- package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/2x/es/components/swiper/index.d.ts +1 -1
- package/2x/es/components/swiper/swiper.d.ts +2 -2
- package/2x/es/components/swiper/swiper.js +5 -1
- package/2x/es/components/text-area/text-area.css +0 -4
- package/2x/es/components/text-area/text-area.d.ts +6 -2
- package/2x/es/components/text-area/text-area.js +9 -1
- package/2x/es/global/css-vars-patch.css +3 -3
- package/2x/es/index.d.ts +1 -1
- package/2x/es/index.js +1 -1
- package/2x/es/locales/ar-SA.d.ts +139 -0
- package/2x/es/locales/ar-SA.js +142 -0
- package/2x/es/locales/de-DE.d.ts +139 -0
- package/2x/es/locales/de-DE.js +142 -0
- package/2x/es/locales/hu-HU.d.ts +139 -0
- package/2x/es/locales/hu-HU.js +140 -0
- package/2x/es/locales/ms-MY.d.ts +139 -0
- package/2x/es/locales/ms-MY.js +142 -0
- package/2x/es/locales/pt-BR.d.ts +139 -0
- package/2x/es/locales/pt-BR.js +137 -0
- package/2x/es/locales/th-TH.d.ts +139 -0
- package/2x/es/locales/th-TH.js +142 -0
- package/2x/es/locales/vi-VN.d.ts +139 -0
- package/2x/es/locales/vi-VN.js +142 -0
- package/2x/es/locales/zh-CN.d.ts +2 -138
- package/2x/es/locales/zh-CN.js +2 -4
- package/2x/es/locales/zh-CN.test.d.ts +1 -0
- package/2x/es/locales/zh-CN.test.js +16 -0
- package/2x/es/utils/with-default-props.js +8 -8
- package/2x/es/utils/with-stop-propagation.d.ts +1 -1
- package/2x/es/utils/with-stop-propagation.js +2 -1
- package/2x/package.json +38 -21
- package/bundle/antd-mobile.cjs.development.js +472 -1560
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +473 -1561
- package/bundle/antd-mobile.es.js +7287 -8011
- package/bundle/antd-mobile.umd.development.js +472 -1560
- package/bundle/antd-mobile.umd.js +7 -7
- package/bundle/css-vars-patch.css +3 -3
- package/bundle/style.css +1 -1
- package/cjs/components/button/button.d.ts +3 -3
- package/cjs/components/button/button.patch.css +3 -3
- package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
- package/cjs/components/checkbox/native-input.js +1 -1
- package/cjs/components/config-provider/config-provider.d.ts +3 -2
- package/cjs/components/error-block/create-error-block.d.ts +1 -0
- package/cjs/components/error-block/create-error-block.js +1 -0
- package/cjs/components/error-block/index.d.ts +0 -1
- package/cjs/components/error-block/index.js +2 -3
- package/cjs/components/form/form-item.js +1 -0
- package/cjs/components/form/form.js +2 -2
- package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
- package/cjs/components/input/input.d.ts +2 -4
- package/cjs/components/input/input.js +8 -17
- package/cjs/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/cjs/components/input/useInputHandleKeyDown.js +29 -0
- package/cjs/components/picker-view/wheel.js +7 -4
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.d.ts +1 -1
- package/cjs/components/radio/radio.css +1 -1
- package/cjs/components/radio/radio.d.ts +1 -1
- package/cjs/components/radio/radio.js +5 -5
- package/cjs/components/result-page/result-page.css +5 -5
- package/cjs/components/result-page/result-page.d.ts +1 -1
- package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
- package/cjs/components/swiper/index.d.ts +1 -1
- package/cjs/components/swiper/swiper.d.ts +2 -2
- package/cjs/components/swiper/swiper.js +5 -1
- package/cjs/components/text-area/text-area.css +0 -3
- package/cjs/components/text-area/text-area.d.ts +6 -2
- package/cjs/components/text-area/text-area.js +9 -1
- package/cjs/global/css-vars-patch.css +3 -3
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +6 -0
- package/cjs/locales/ar-SA.d.ts +139 -0
- package/cjs/locales/ar-SA.js +149 -0
- package/cjs/locales/de-DE.d.ts +139 -0
- package/cjs/locales/de-DE.js +149 -0
- package/cjs/locales/hu-HU.d.ts +139 -0
- package/cjs/locales/hu-HU.js +148 -0
- package/cjs/locales/ms-MY.d.ts +139 -0
- package/cjs/locales/ms-MY.js +149 -0
- package/cjs/locales/pt-BR.d.ts +139 -0
- package/cjs/locales/pt-BR.js +144 -0
- package/cjs/locales/th-TH.d.ts +139 -0
- package/cjs/locales/th-TH.js +149 -0
- package/cjs/locales/vi-VN.d.ts +139 -0
- package/cjs/locales/vi-VN.js +149 -0
- package/cjs/locales/zh-CN.d.ts +2 -138
- package/cjs/locales/zh-CN.js +2 -4
- package/cjs/locales/zh-CN.test.d.ts +1 -0
- package/cjs/locales/zh-CN.test.js +19 -0
- package/cjs/utils/with-default-props.js +8 -9
- package/cjs/utils/with-stop-propagation.d.ts +1 -1
- package/cjs/utils/with-stop-propagation.js +2 -1
- package/es/components/button/button.d.ts +3 -3
- package/es/components/button/button.patch.css +3 -3
- package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
- package/es/components/checkbox/native-input.js +1 -1
- package/es/components/config-provider/config-provider.d.ts +3 -2
- package/es/components/error-block/create-error-block.d.ts +1 -0
- package/es/components/error-block/create-error-block.js +1 -0
- package/es/components/error-block/index.d.ts +0 -1
- package/es/components/error-block/index.js +0 -1
- package/es/components/form/form-item.js +1 -0
- package/es/components/form/form.js +2 -2
- package/es/components/infinite-scroll/infinite-scroll.js +8 -4
- package/es/components/input/input.d.ts +2 -4
- package/es/components/input/input.js +8 -17
- package/es/components/input/useInputHandleKeyDown.d.ts +8 -0
- package/es/components/input/useInputHandleKeyDown.js +23 -0
- package/es/components/picker-view/wheel.js +6 -3
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.d.ts +1 -1
- package/es/components/radio/radio.css +1 -1
- package/es/components/radio/radio.d.ts +1 -1
- package/es/components/radio/radio.js +4 -4
- package/es/components/result-page/result-page.css +5 -5
- package/es/components/result-page/result-page.d.ts +1 -1
- package/es/components/swipe-action/swipe-action.d.ts +1 -1
- package/es/components/swiper/index.d.ts +1 -1
- package/es/components/swiper/swiper.d.ts +2 -2
- package/es/components/swiper/swiper.js +5 -1
- package/es/components/text-area/text-area.css +0 -3
- package/es/components/text-area/text-area.d.ts +6 -2
- package/es/components/text-area/text-area.js +9 -1
- package/es/global/css-vars-patch.css +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/ar-SA.d.ts +139 -0
- package/es/locales/ar-SA.js +142 -0
- package/es/locales/de-DE.d.ts +139 -0
- package/es/locales/de-DE.js +142 -0
- package/es/locales/hu-HU.d.ts +139 -0
- package/es/locales/hu-HU.js +140 -0
- package/es/locales/ms-MY.d.ts +139 -0
- package/es/locales/ms-MY.js +142 -0
- package/es/locales/pt-BR.d.ts +139 -0
- package/es/locales/pt-BR.js +137 -0
- package/es/locales/th-TH.d.ts +139 -0
- package/es/locales/th-TH.js +142 -0
- package/es/locales/vi-VN.d.ts +139 -0
- package/es/locales/vi-VN.js +142 -0
- package/es/locales/zh-CN.d.ts +2 -138
- package/es/locales/zh-CN.js +2 -4
- package/es/locales/zh-CN.test.d.ts +1 -0
- package/es/locales/zh-CN.test.js +16 -0
- package/es/utils/with-default-props.js +8 -8
- package/es/utils/with-stop-propagation.d.ts +1 -1
- package/es/utils/with-stop-propagation.js +2 -1
- package/package.json +38 -21
- package/umd/antd-mobile.js +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _mergeLocale = require("../utils/merge-locale");
|
|
8
|
+
var _base = require("./base");
|
|
9
|
+
const typeTemplate = '${label} não é um ${type} válido';
|
|
10
|
+
const ptBR = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
11
|
+
locale: 'pt-BR',
|
|
12
|
+
common: {
|
|
13
|
+
confirm: 'Confirmar',
|
|
14
|
+
cancel: 'Cancelar',
|
|
15
|
+
loading: 'Carregando',
|
|
16
|
+
close: 'Fechar'
|
|
17
|
+
},
|
|
18
|
+
Calendar: {
|
|
19
|
+
markItems: ['Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'],
|
|
20
|
+
yearAndMonth: '${month}/${year}'
|
|
21
|
+
},
|
|
22
|
+
Cascader: {
|
|
23
|
+
placeholder: 'Selecionando'
|
|
24
|
+
},
|
|
25
|
+
Dialog: {
|
|
26
|
+
ok: 'OK'
|
|
27
|
+
},
|
|
28
|
+
DatePicker: {
|
|
29
|
+
tillNow: 'Até agora'
|
|
30
|
+
},
|
|
31
|
+
ErrorBlock: {
|
|
32
|
+
default: {
|
|
33
|
+
title: 'Oops, algo deu errado',
|
|
34
|
+
description: 'Por favor, aguarde um minuto e tente novamente'
|
|
35
|
+
},
|
|
36
|
+
busy: {
|
|
37
|
+
title: 'Oops, não está carregando',
|
|
38
|
+
description: 'Tente atualizar a página'
|
|
39
|
+
},
|
|
40
|
+
disconnected: {
|
|
41
|
+
title: 'A rede está ocupada',
|
|
42
|
+
description: 'Tente atualizar a página'
|
|
43
|
+
},
|
|
44
|
+
empty: {
|
|
45
|
+
title: 'Hmm, não conseguimos encontrar isso...',
|
|
46
|
+
description: 'Quer tentar uma nova busca?'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
Form: {
|
|
50
|
+
required: 'Obrigatório',
|
|
51
|
+
optional: 'Opcional',
|
|
52
|
+
defaultValidateMessages: {
|
|
53
|
+
default: 'Erro de validação para o campo ${label}',
|
|
54
|
+
required: 'Por favor, insira ${label}',
|
|
55
|
+
enum: '${label} deve ser um dos seguintes [${enum}]',
|
|
56
|
+
whitespace: '${label} não pode ser um espaço em branco',
|
|
57
|
+
date: {
|
|
58
|
+
format: 'Formato de data inválido para ${label}',
|
|
59
|
+
parse: '${label} não pode ser convertido para data',
|
|
60
|
+
invalid: '${label} não é uma data válida'
|
|
61
|
+
},
|
|
62
|
+
types: {
|
|
63
|
+
string: typeTemplate,
|
|
64
|
+
method: typeTemplate,
|
|
65
|
+
array: typeTemplate,
|
|
66
|
+
object: typeTemplate,
|
|
67
|
+
number: typeTemplate,
|
|
68
|
+
date: typeTemplate,
|
|
69
|
+
boolean: typeTemplate,
|
|
70
|
+
integer: typeTemplate,
|
|
71
|
+
float: typeTemplate,
|
|
72
|
+
regexp: typeTemplate,
|
|
73
|
+
email: typeTemplate,
|
|
74
|
+
url: typeTemplate,
|
|
75
|
+
hex: typeTemplate
|
|
76
|
+
},
|
|
77
|
+
string: {
|
|
78
|
+
len: '${label} deve ter ${len} caracteres',
|
|
79
|
+
min: '${label} deve ter pelo menos ${min} caracteres',
|
|
80
|
+
max: '${label} deve ter no máximo ${max} caracteres',
|
|
81
|
+
range: '${label} deve ter entre ${min}-${max} caracteres'
|
|
82
|
+
},
|
|
83
|
+
number: {
|
|
84
|
+
len: '${label} deve ser igual a ${len}',
|
|
85
|
+
min: '${label} deve ser no mínimo ${min}',
|
|
86
|
+
max: '${label} deve ser no máximo ${max}',
|
|
87
|
+
range: '${label} deve estar entre ${min} e ${max}'
|
|
88
|
+
},
|
|
89
|
+
array: {
|
|
90
|
+
len: 'Deve ter ${len} ${label}',
|
|
91
|
+
min: 'Pelo menos ${min} ${label}',
|
|
92
|
+
max: 'No máximo ${max} ${label}',
|
|
93
|
+
range: 'A quantidade de ${label} deve estar entre ${min} e ${max}'
|
|
94
|
+
},
|
|
95
|
+
pattern: {
|
|
96
|
+
mismatch: '${label} não corresponde ao padrão ${pattern}'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
ImageUploader: {
|
|
101
|
+
uploading: 'Carregando...',
|
|
102
|
+
upload: 'Carregar'
|
|
103
|
+
},
|
|
104
|
+
InfiniteScroll: {
|
|
105
|
+
noMore: 'Fim',
|
|
106
|
+
failedToLoad: 'Falha ao carregar',
|
|
107
|
+
retry: 'Tentar novamente'
|
|
108
|
+
},
|
|
109
|
+
Input: {
|
|
110
|
+
clear: 'limpar'
|
|
111
|
+
},
|
|
112
|
+
Mask: {
|
|
113
|
+
name: 'Máscara'
|
|
114
|
+
},
|
|
115
|
+
Modal: {
|
|
116
|
+
ok: 'OK'
|
|
117
|
+
},
|
|
118
|
+
PasscodeInput: {
|
|
119
|
+
name: 'Input de código de acesso'
|
|
120
|
+
},
|
|
121
|
+
PullToRefresh: {
|
|
122
|
+
pulling: 'Deslize para baixo para atualizar',
|
|
123
|
+
canRelease: 'Solte para atualizar',
|
|
124
|
+
complete: 'Atualizado com sucesso'
|
|
125
|
+
},
|
|
126
|
+
SearchBar: {
|
|
127
|
+
name: 'Barra de pesquisa'
|
|
128
|
+
},
|
|
129
|
+
Slider: {
|
|
130
|
+
name: 'Deslizante'
|
|
131
|
+
},
|
|
132
|
+
Stepper: {
|
|
133
|
+
decrease: 'diminuir',
|
|
134
|
+
increase: 'aumentar'
|
|
135
|
+
},
|
|
136
|
+
Switch: {
|
|
137
|
+
name: 'Interruptor'
|
|
138
|
+
},
|
|
139
|
+
Selector: {
|
|
140
|
+
name: 'Seletor'
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
var _default = ptBR;
|
|
144
|
+
exports.default = _default;
|
|
@@ -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,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _mergeLocale = require("../utils/merge-locale");
|
|
8
|
+
var _base = require("./base");
|
|
9
|
+
const typeTemplate = '${label}ไม่ใช่${type}ที่ถูกต้อง';
|
|
10
|
+
const thTH = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
11
|
+
locale: 'th-TH',
|
|
12
|
+
common: {
|
|
13
|
+
confirm: 'ยืนยัน',
|
|
14
|
+
cancel: 'ยกเลิก',
|
|
15
|
+
loading: 'กำลังโหลด',
|
|
16
|
+
close: 'ปิด'
|
|
17
|
+
},
|
|
18
|
+
Calendar: {
|
|
19
|
+
title: 'เลือกวันที่',
|
|
20
|
+
confirm: 'ยืนยัน',
|
|
21
|
+
start: 'เริ่ม',
|
|
22
|
+
end: 'เสร็จ',
|
|
23
|
+
today: 'วันนี้',
|
|
24
|
+
markItems: ['วันจันทร์', 'วันอังคาร', 'วันพุธ', 'วันพฤหัสบดี', 'วันศุกร์', 'วันเสาร์', 'วันอาทิตย์'],
|
|
25
|
+
yearAndMonth: '${year}/${month}'
|
|
26
|
+
},
|
|
27
|
+
Cascader: {
|
|
28
|
+
placeholder: 'เลือก'
|
|
29
|
+
},
|
|
30
|
+
Dialog: {
|
|
31
|
+
ok: 'โอเค'
|
|
32
|
+
},
|
|
33
|
+
DatePicker: {
|
|
34
|
+
tillNow: 'จนถึงตอนนี้'
|
|
35
|
+
},
|
|
36
|
+
ErrorBlock: {
|
|
37
|
+
default: {
|
|
38
|
+
title: 'อุ๊ปส์, มีบางอย่างผิดพลาด',
|
|
39
|
+
description: 'กรุณารอสักครู่แล้วลองอีกครั้ง'
|
|
40
|
+
},
|
|
41
|
+
busy: {
|
|
42
|
+
title: 'อุ๊ปส์, ไม่ได้โหลด',
|
|
43
|
+
description: 'ลองรีเฟรชหน้า'
|
|
44
|
+
},
|
|
45
|
+
disconnected: {
|
|
46
|
+
title: 'เครือข่ายไม่ว่าง',
|
|
47
|
+
description: 'ลองรีเฟรชหน้า'
|
|
48
|
+
},
|
|
49
|
+
empty: {
|
|
50
|
+
title: 'อืมม, ไม่พบ...',
|
|
51
|
+
description: 'ลองค้นหาใหม่?'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
Form: {
|
|
55
|
+
required: 'จำเป็น',
|
|
56
|
+
optional: 'ไม่จำเป็น',
|
|
57
|
+
defaultValidateMessages: {
|
|
58
|
+
default: 'ข้อผิดพลาดในการตรวจสอบฟิลด์ ${label}',
|
|
59
|
+
required: 'กรุณากรอก ${label}',
|
|
60
|
+
enum: '${label} ต้องเป็นหนึ่งใน [${enum}]',
|
|
61
|
+
whitespace: '${label} ต้องไม่มีช่องว่าง',
|
|
62
|
+
date: {
|
|
63
|
+
format: 'รูปแบบวันที่ ${label} ไม่ถูกต้อง',
|
|
64
|
+
parse: '${label} ไม่สามารถแปลงเป็นวันที่ได้',
|
|
65
|
+
invalid: '${label} เป็นวันที่ไม่ถูกต้อง'
|
|
66
|
+
},
|
|
67
|
+
types: {
|
|
68
|
+
string: typeTemplate,
|
|
69
|
+
method: typeTemplate,
|
|
70
|
+
array: typeTemplate,
|
|
71
|
+
object: typeTemplate,
|
|
72
|
+
number: typeTemplate,
|
|
73
|
+
date: typeTemplate,
|
|
74
|
+
boolean: typeTemplate,
|
|
75
|
+
integer: typeTemplate,
|
|
76
|
+
float: typeTemplate,
|
|
77
|
+
regexp: typeTemplate,
|
|
78
|
+
email: typeTemplate,
|
|
79
|
+
url: typeTemplate,
|
|
80
|
+
hex: typeTemplate
|
|
81
|
+
},
|
|
82
|
+
string: {
|
|
83
|
+
len: '${label} ต้องมี ${len} ตัวอักษร',
|
|
84
|
+
min: '${label} ต้องมีอย่างน้อย ${min} ตัวอักษร',
|
|
85
|
+
max: '${label} ต้องมีไม่เกิน ${max} ตัวอักษร',
|
|
86
|
+
range: '${label} ต้องอยู่ระหว่าง ${min}-${max} ตัวอักษร'
|
|
87
|
+
},
|
|
88
|
+
number: {
|
|
89
|
+
len: '${label} ต้องเท่ากับ ${len}',
|
|
90
|
+
min: '${label} ต้องมีอย่างน้อย ${min}',
|
|
91
|
+
max: '${label} ต้องมีไม่เกิน ${max}',
|
|
92
|
+
range: '${label} ต้องอยู่ระหว่าง ${min}-${max}'
|
|
93
|
+
},
|
|
94
|
+
array: {
|
|
95
|
+
len: 'ต้องมี ${len} ${label}',
|
|
96
|
+
min: 'อย่างน้อย ${min} ${label}',
|
|
97
|
+
max: 'มากสุด ${max} ${label}',
|
|
98
|
+
range: 'จำนวน ${label} ต้องอยู่ระหว่าง ${min}-${max}'
|
|
99
|
+
},
|
|
100
|
+
pattern: {
|
|
101
|
+
mismatch: '${label} ไม่ตรงกับรูปแบบ ${pattern}'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
ImageUploader: {
|
|
106
|
+
uploading: 'กำลังอัปโหลด...',
|
|
107
|
+
upload: 'อัปโหลด'
|
|
108
|
+
},
|
|
109
|
+
InfiniteScroll: {
|
|
110
|
+
noMore: 'ไม่มีเพิ่มเติม',
|
|
111
|
+
failedToLoad: 'โหลดล้มเหลว',
|
|
112
|
+
retry: 'ลองใหม่'
|
|
113
|
+
},
|
|
114
|
+
Input: {
|
|
115
|
+
clear: 'ชัดเจน'
|
|
116
|
+
},
|
|
117
|
+
Mask: {
|
|
118
|
+
name: 'มาสก์'
|
|
119
|
+
},
|
|
120
|
+
Modal: {
|
|
121
|
+
ok: 'ตกลง'
|
|
122
|
+
},
|
|
123
|
+
PasscodeInput: {
|
|
124
|
+
name: 'ป้อนรหัสผ่าน'
|
|
125
|
+
},
|
|
126
|
+
PullToRefresh: {
|
|
127
|
+
pulling: 'ดึงลงเพื่อรีเฟรช',
|
|
128
|
+
canRelease: 'ปล่อยเพื่อรีเฟรชทันที',
|
|
129
|
+
complete: 'รีเฟรชสำเร็จ'
|
|
130
|
+
},
|
|
131
|
+
SearchBar: {
|
|
132
|
+
name: 'แถบค้นหา'
|
|
133
|
+
},
|
|
134
|
+
Slider: {
|
|
135
|
+
name: 'สไลด์เดอร์'
|
|
136
|
+
},
|
|
137
|
+
Stepper: {
|
|
138
|
+
decrease: 'ลด',
|
|
139
|
+
increase: 'เพิ่ม'
|
|
140
|
+
},
|
|
141
|
+
Switch: {
|
|
142
|
+
name: 'สวิตช์'
|
|
143
|
+
},
|
|
144
|
+
Selector: {
|
|
145
|
+
name: 'เลือก'
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
var _default = thTH;
|
|
149
|
+
exports.default = _default;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
declare const viVN: {
|
|
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 viVN;
|