@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.
@@ -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: 'không thể để trống',
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/widget-v4",
3
- "version": "4.1.139",
3
+ "version": "4.1.140",
4
4
  "main": "./compiled_src/lib.js",
5
5
  "scripts": {
6
6
  "dev": "npx webpack serve --config webpack.dev.js",
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: 'không thể để trống',
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
  )