You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3KB

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