forked from mikeerickson/validatorjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mikeerickson#122 from Jimmy-YMJ/master
Add Chinese (zh) localization
- Loading branch information
Showing
6 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
spec/checklist.md | ||
coverage | ||
npm-debug.log | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"./lang/zh":[function(require,module,exports){ | ||
module.exports = { | ||
accepted: ':attribute必须是可接受的.', | ||
alpha: ':attribute只能包含字母.', | ||
alpha_dash: ':attribute只能包含字母,连字符和下划线.', | ||
alpha_num: ':attribute只能包含字母和数字.', | ||
between: ':attribute的(大小,长度等)只能在:min和:max之间.', | ||
confirmed: ':attribute确认不一致.', | ||
email: ':attribute格式不正确.', | ||
date: ':attribute日期格式错误.', | ||
def: ':attribute属性错误.', | ||
digits: ':attribute必须是:digits位小数.', | ||
different: ':attribute和:different必须不同.', | ||
'in': '选择的:attribute无效', | ||
integer: ':attribute必须是一个整数.', | ||
min: { | ||
numeric: ':attribute不能小于:min.', | ||
string: ':attribute长度不能小于:min.' | ||
}, | ||
max: { | ||
numeric: ':attribute不能大于:max.', | ||
string: ':attribute长度不能大于:max.' | ||
}, | ||
not_in: '所选的:attribute无效.', | ||
numeric: ':attribute必须是一个数字.', | ||
required: ':attribute不能为空.', | ||
required_if: '当:other是:value时,:attribute不能为空.', | ||
same: ':attribute和:same必须一致.', | ||
size: { | ||
numeric: ':attribute必须等于:size.', | ||
string: ':attribute的长度必须等于:size.' | ||
}, | ||
string: ':attribute必须是一个字符串.', | ||
url: ':attribute格式不正确.', | ||
regex: ':attribute格式不正确.', | ||
attributes: {} | ||
}; | ||
|
||
},{}]},{},[]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = { | ||
accepted: ':attribute必须是可接受的.', | ||
alpha: ':attribute只能包含字母.', | ||
alpha_dash: ':attribute只能包含字母,连字符和下划线.', | ||
alpha_num: ':attribute只能包含字母和数字.', | ||
between: ':attribute的(大小,长度等)只能在:min和:max之间.', | ||
confirmed: ':attribute确认不一致.', | ||
email: ':attribute格式不正确.', | ||
date: ':attribute日期格式错误.', | ||
def: ':attribute属性错误.', | ||
digits: ':attribute必须是:digits位小数.', | ||
different: ':attribute和:different必须不同.', | ||
'in': '选择的:attribute无效', | ||
integer: ':attribute必须是一个整数.', | ||
min: { | ||
numeric: ':attribute不能小于:min.', | ||
string: ':attribute长度不能小于:min.' | ||
}, | ||
max: { | ||
numeric: ':attribute不能大于:max.', | ||
string: ':attribute长度不能大于:max.' | ||
}, | ||
not_in: '所选的:attribute无效.', | ||
numeric: ':attribute必须是一个数字.', | ||
required: ':attribute不能为空.', | ||
required_if: '当:other是:value时,:attribute不能为空.', | ||
same: ':attribute和:same必须一致.', | ||
size: { | ||
numeric: ':attribute必须等于:size.', | ||
string: ':attribute的长度必须等于:size.' | ||
}, | ||
string: ':attribute必须是一个字符串.', | ||
url: ':attribute格式不正确.', | ||
regex: ':attribute格式不正确.', | ||
attributes: {} | ||
}; |