@subiz/widget-v4 4.1.139 → 4.1.140
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/compiled_src/form.js +4 -3
- package/package.json +1 -1
- package/src/form.js +3 -2
package/compiled_src/form.js
CHANGED
|
@@ -20,9 +20,10 @@ async function renderForm(form, chatbox, $div) {
|
|
|
20
20
|
}
|
|
21
21
|
const LANG = {
|
|
22
22
|
no_select: 'Chưa chọn',
|
|
23
|
-
cannot_be_empty: '
|
|
23
|
+
cannot_be_empty: 'Không thể để trống',
|
|
24
24
|
you_have_submitted_info_successfully: 'Form được gửi thành công',
|
|
25
|
-
no_info_input: 'Chưa nhập'
|
|
25
|
+
no_info_input: 'Chưa nhập',
|
|
26
|
+
phn: 'SĐT'
|
|
26
27
|
};
|
|
27
28
|
(0, _preact.render)((0, _preact.h)(_Form.default, {
|
|
28
29
|
mode: "attachment",
|
|
@@ -32,7 +33,7 @@ async function renderForm(form, chatbox, $div) {
|
|
|
32
33
|
submission: {
|
|
33
34
|
values: []
|
|
34
35
|
},
|
|
35
|
-
t: key => LANG[key]
|
|
36
|
+
t: key => LANG[key] || key
|
|
36
37
|
}), $div);
|
|
37
38
|
}
|
|
38
39
|
async function initCss(chatbox) {
|
package/package.json
CHANGED
package/src/form.js
CHANGED
|
@@ -12,9 +12,10 @@ export default async function renderForm(form, chatbox, $div) {
|
|
|
12
12
|
}
|
|
13
13
|
const LANG = {
|
|
14
14
|
no_select: 'Chưa chọn',
|
|
15
|
-
cannot_be_empty: '
|
|
15
|
+
cannot_be_empty: 'Không thể để trống',
|
|
16
16
|
you_have_submitted_info_successfully: 'Form được gửi thành công',
|
|
17
17
|
no_info_input: 'Chưa nhập',
|
|
18
|
+
phn: 'SĐT',
|
|
18
19
|
}
|
|
19
20
|
render(
|
|
20
21
|
<Form
|
|
@@ -23,7 +24,7 @@ export default async function renderForm(form, chatbox, $div) {
|
|
|
23
24
|
onSubmit={() => {}}
|
|
24
25
|
formSetting={form}
|
|
25
26
|
submission={{values: []}}
|
|
26
|
-
t={(key) => LANG[key]}
|
|
27
|
+
t={(key) => LANG[key] || key}
|
|
27
28
|
/>,
|
|
28
29
|
$div,
|
|
29
30
|
)
|