LaravelTest
37 строк · 1.3 Кб
1(function( factory ) {2if ( typeof define === "function" && define.amd ) {3define( ["jquery", "../jquery.validate"], factory );4} else if (typeof module === "object" && module.exports) {5module.exports = factory( require( "jquery" ) );6} else {7factory( jQuery );8}9}(function( $ ) {10
11/*
12* Translated default messages for the jQuery validation plugin.
13* Locale: ZH (Chinese; 中文 (Zhōngwén), 汉语, 漢語)
14* Region: TW (Taiwan)
15*/
16$.extend( $.validator.messages, {17required: "必須填寫",18remote: "請修正此欄位",19email: "請輸入有效的電子郵件",20url: "請輸入有效的網址",21date: "請輸入有效的日期",22dateISO: "請輸入有效的日期 (YYYY-MM-DD)",23number: "請輸入正確的數值",24digits: "只可輸入數字",25creditcard: "請輸入有效的信用卡號碼",26equalTo: "請重複輸入一次",27extension: "請輸入有效的後綴",28maxlength: $.validator.format( "最多 {0} 個字" ),29minlength: $.validator.format( "最少 {0} 個字" ),30rangelength: $.validator.format( "請輸入長度為 {0} 至 {1} 之間的字串" ),31range: $.validator.format( "請輸入 {0} 至 {1} 之間的數值" ),32step: $.validator.format( "請輸入 {0} 的整數倍值" ),33max: $.validator.format( "請輸入不大於 {0} 的數值" ),34min: $.validator.format( "請輸入不小於 {0} 的數值" )35} );36return $;37}));