iglooform 2.5.24 → 2.5.26
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/es/input/input.js +2 -2
- package/es/locale/en-US/messages.json +4 -0
- package/es/locale/id-ID/messages.json +4 -0
- package/es/locale/th-TH/messages.json +4 -0
- package/es/locale/vi-VN/messages.json +4 -0
- package/es/locale/zh-CN/messages.json +4 -0
- package/es/locale/zh-TW/messages.json +4 -0
- package/lib/input/input.js +2 -2
- package/lib/locale/en-US/messages.json +4 -0
- package/lib/locale/id-ID/messages.json +4 -0
- package/lib/locale/th-TH/messages.json +4 -0
- package/lib/locale/vi-VN/messages.json +4 -0
- package/lib/locale/zh-CN/messages.json +4 -0
- package/lib/locale/zh-TW/messages.json +4 -0
- package/package.json +1 -1
package/es/input/input.js
CHANGED
|
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
import { forwardRef } from 'react';
|
|
12
12
|
import formMethods from '../utils/form-methods';
|
|
13
13
|
import omit from 'omit.js';
|
|
14
|
-
import { staticFormatMessage } from '
|
|
14
|
+
import { staticFormatMessage } from '../locale';
|
|
15
15
|
import './style/index.less';
|
|
16
16
|
var IglooInput = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
17
17
|
return _jsx(_Input, _objectSpread(_objectSpread({
|
|
@@ -79,7 +79,7 @@ IglooInput.formItemPropsHandler = function (config) {
|
|
|
79
79
|
validator: function validator(_, value) {
|
|
80
80
|
if (new RegExp(pattern).test(value)) return Promise.resolve();
|
|
81
81
|
return Promise.reject(staticFormatMessage({
|
|
82
|
-
id: '{label} must match
|
|
82
|
+
id: '{label} must match the pattern {pattern}.',
|
|
83
83
|
values: {
|
|
84
84
|
pattern: pattern,
|
|
85
85
|
label: label
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} must be less than {maxLength} digits.",
|
|
99
99
|
"{label} must be {length} digits.": "{label} must be {length} digits.",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} must be at least {minLength} characters.",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} must be less than {maxLength} characters.",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} must match ther pattern {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} must be {minLength} - {maxLength} characters.",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} files in progress..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} harus kurang dari {maxLength} digit.",
|
|
99
99
|
"{label} must be {length} digits.": "{label} harus {length} digit.",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} harus {minLength} - {maxLength} digit.",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} minimal harus {minLength} karakter.",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} harus kurang dari {maxLength} karakter.",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} harus sesuai dengan pola {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} harus {minLength} - {maxLength} karakter.",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} data dalam proses..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} ต้องน้อยกว่า {maxLength} หลัก",
|
|
99
99
|
"{label} must be {length} digits.": "{label} ต้องเป็น {length} หลัก",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} ต้องเป็น {minLength} - {maxLength} หลัก",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} ต้องมีอย่างน้อย {minLength} ตัวอักษร",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} ต้องน้อยกว่า {maxLength} ตัวอักษร",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} ต้องตรงกับรูปแบบ {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} ต้องเป็น {minLength} - {maxLength} ตัวอักษร",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} ไฟล์กำลังดำเนินการ..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} phải có ít hơn {maxLength} chữ số.",
|
|
99
99
|
"{label} must be {length} digits.": "{label} phải là {length} chữ số.",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} phải là {minLength} - {maxLength} chữ số.",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} phải có ít nhất {minLength} nhân vật.",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} phải có ít hơn {maxLength} nhân vật.",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} phải khớp với mẫu {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} phải là {minLength} - {maxLength} nhân vật.",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} đang được xử lý..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label}应少于{maxLength}位数字。",
|
|
99
99
|
"{label} must be {length} digits.": "{label}应为{length}位数字。",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label}应为{minLength}至{maxLength}位数字。",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label}应至少为{minLength}位字符。",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label}应少于{maxLength}位字符。",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label}与模式{pattern}不匹配。",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label}应为{length}位字符。",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber}个文件正在处理..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "",
|
|
99
99
|
"{label} must be {length} digits.": "",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber}正在進行的文件。。。"
|
|
102
106
|
}
|
package/lib/input/input.js
CHANGED
|
@@ -17,7 +17,7 @@ var _formMethods = _interopRequireDefault(require("../utils/form-methods"));
|
|
|
17
17
|
|
|
18
18
|
var _omit = _interopRequireDefault(require("omit.js"));
|
|
19
19
|
|
|
20
|
-
var _locale = require("
|
|
20
|
+
var _locale = require("../locale");
|
|
21
21
|
|
|
22
22
|
require("./style/index.less");
|
|
23
23
|
|
|
@@ -95,7 +95,7 @@ IglooInput.formItemPropsHandler = function (config) {
|
|
|
95
95
|
validator: function validator(_, value) {
|
|
96
96
|
if (new RegExp(pattern).test(value)) return Promise.resolve();
|
|
97
97
|
return Promise.reject((0, _locale.staticFormatMessage)({
|
|
98
|
-
id: '{label} must match
|
|
98
|
+
id: '{label} must match the pattern {pattern}.',
|
|
99
99
|
values: {
|
|
100
100
|
pattern: pattern,
|
|
101
101
|
label: label
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} must be less than {maxLength} digits.",
|
|
99
99
|
"{label} must be {length} digits.": "{label} must be {length} digits.",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} must be at least {minLength} characters.",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} must be less than {maxLength} characters.",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} must match ther pattern {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} must be {minLength} - {maxLength} characters.",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} files in progress..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} harus kurang dari {maxLength} digit.",
|
|
99
99
|
"{label} must be {length} digits.": "{label} harus {length} digit.",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} harus {minLength} - {maxLength} digit.",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} minimal harus {minLength} karakter.",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} harus kurang dari {maxLength} karakter.",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} harus sesuai dengan pola {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} harus {minLength} - {maxLength} karakter.",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} data dalam proses..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} ต้องน้อยกว่า {maxLength} หลัก",
|
|
99
99
|
"{label} must be {length} digits.": "{label} ต้องเป็น {length} หลัก",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} ต้องเป็น {minLength} - {maxLength} หลัก",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} ต้องมีอย่างน้อย {minLength} ตัวอักษร",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} ต้องน้อยกว่า {maxLength} ตัวอักษร",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} ต้องตรงกับรูปแบบ {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} ต้องเป็น {minLength} - {maxLength} ตัวอักษร",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} ไฟล์กำลังดำเนินการ..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label} phải có ít hơn {maxLength} chữ số.",
|
|
99
99
|
"{label} must be {length} digits.": "{label} phải là {length} chữ số.",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label} phải là {minLength} - {maxLength} chữ số.",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label} phải có ít nhất {minLength} nhân vật.",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label} phải có ít hơn {maxLength} nhân vật.",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label} phải khớp với mẫu {pattern}.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} phải là {minLength} - {maxLength} nhân vật.",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber} đang được xử lý..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "{label}应少于{maxLength}位数字。",
|
|
99
99
|
"{label} must be {length} digits.": "{label}应为{length}位数字。",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "{label}应为{minLength}至{maxLength}位数字。",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "{label}应至少为{minLength}位字符。",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "{label}应少于{maxLength}位字符。",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "{label}与模式{pattern}不匹配。",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label}应为{length}位字符。",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber}个文件正在处理..."
|
|
102
106
|
}
|
|
@@ -98,5 +98,9 @@
|
|
|
98
98
|
"{label} must be less than {maxLength} digits.": "",
|
|
99
99
|
"{label} must be {length} digits.": "",
|
|
100
100
|
"{label} must be {minLength} - {maxLength} digits.": "",
|
|
101
|
+
"{label} must be at least {minLength} characters.": "",
|
|
102
|
+
"{label} must be less than {maxLength} characters.": "",
|
|
103
|
+
"{label} must match the pattern {pattern}.": "",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} characters.": "",
|
|
101
105
|
"{processingNumber} files in progress...": "{processingNumber}正在進行的文件。。。"
|
|
102
106
|
}
|