2 * Copyright 2016 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 (function( factory ) {
17 if ( typeof define === "function" && define.amd ) {
18 define( ["jquery", "../jquery.validate"], factory );
25 * Translated default messages for the jQuery validation plugin.
26 * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
28 $.extend($.validator.messages, {
34 dateISO: "请输入有效的日期 (YYYY-MM-DD)",
37 creditcard: "请输入有效的信用卡号码",
39 extension: "请输入有效的后缀",
40 maxlength: $.validator.format("最多 {0} 个字"),
41 minlength: $.validator.format("最少 {0} 个字"),
42 rangelength: $.validator.format("请输入长度为 {0} 至 {1} 之間的字串"),
43 range: $.validator.format("请输入 {0} 至 {1} 之间的数值"),
44 max: $.validator.format("请输入不大于 {0} 的数值"),
45 min: $.validator.format("请输入不小于 {0} 的数值")