Last active
October 14, 2015 07:03
-
-
Save Xiangshen-Meng/c26a915101b947d08058 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"simpleschema": { | |
"messages": { | |
"required": "[label] is required", | |
"minString": "[label] must be at least [min] characters", | |
"maxString": "[label] cannot exceed [max] characters", | |
"minNumber": "[label] must be at least [min]", | |
"maxNumber": "[label] cannot exceed [max]", | |
"minNumberExclusive": "[label] must be greater than [min]", | |
"maxNumberExclusive": "[label] must be less than [max]", | |
"minDate": "[label] must be on or after [min]", | |
"maxDate": "[label] cannot be after [max]", | |
"badDate": "[label] is not a valid date", | |
"minCount": "You must specify at least [minCount] values", | |
"maxCount": "You cannot specify more than [maxCount] values", | |
"noDecimal": "[label] must be an integer", | |
"notAllowed": "[value] is not an allowed value", | |
"expectedString": "[label] must be a string", | |
"expectedNumber": "[label] must be a number", | |
"expectedBoolean": "[label] must be a boolean", | |
"expectedArray": "[label] must be an array", | |
"expectedObject": "[label] must be an object", | |
"expectedConstructor": "[label] must be a [type]", | |
"keyNotInSchema": "[key] is not allowed by the schema", | |
"regEx": { | |
"0": { | |
"msg": "[label] failed regular expression validation" | |
}, | |
"1": { | |
"exp": "SimpleSchema.RegEx.Email", | |
"msg": "[label] must be a valid e-mail address" | |
}, | |
"2": { | |
"exp": "SimpleSchema.RegEx.WeakEmail", | |
"msg": "[label] must be a valid e-mail address" | |
}, | |
"3": { | |
"exp": "SimpleSchema.RegEx.Domain", | |
"msg": "[label] must be a valid domain" | |
}, | |
"4": { | |
"exp": "SimpleSchema.RegEx.WeakDomain", | |
"msg": "[label] must be a valid domain" | |
}, | |
"5": { | |
"exp": "SimpleSchema.RegEx.IP", | |
"msg": "[label] must be a valid IPv4 or IPv6 address" | |
}, | |
"6": { | |
"exp": "SimpleSchema.RegEx.IPv4", | |
"msg": "[label] must be a valid IPv4 address" | |
}, | |
"7": { | |
"exp": "SimpleSchema.RegEx.IPv6", | |
"msg": "[label] must be a valid IPv6 address" | |
}, | |
"8": { | |
"exp": "SimpleSchema.RegEx.Url", | |
"msg": "[label] must be a valid URL" | |
}, | |
"9": { | |
"exp": "SimpleSchema.RegEx.Id", | |
"msg": "[label] must be a valid alphanumeric ID" | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or 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
{ | |
"simpleschema": { | |
"messages": { | |
"required": "[label] を入力してください", | |
"minString": "[label] は[min]文字以上で入力してください", | |
"maxString": "[label] は[max]文字以内で入力してください", | |
"minNumber": "[label] は[min]またそれ以上の値にしてください", | |
"maxNumber": "[label] は[max]またそれ以下の値にしてください", | |
"minNumberExclusive": "[label] は[min]以上の値にしてください", | |
"maxNumberExclusive": "[label] は[max]以下の値にしてください", | |
"minDate": "[label] は[min]以降で入力してください", | |
"maxDate": "[label] は[max]以前で入力してください", | |
"badDate": "[label] は日付で入力してください", | |
"minCount": "[minCount] 文字以上で指定してください", | |
"maxCount": "[maxCount] 文字以内で指定してください", | |
"noDecimal": "[label] は整数で入力してください", | |
"notAllowed": "[value] は有効ではない", | |
"expectedString": "[label] は文字列で入力してください", | |
"expectedNumber": "[label] は数値で入力してください", | |
"expectedBoolean": "[label] は真偽で入力してください", | |
"expectedArray": "[label] は配列で入力してください", | |
"expectedObject": "[label] はオブジェクトで入力してください", | |
"expectedConstructor": "[label] は[type]で入力してください", | |
"keyNotInSchema": "[key] は無効なスキーマです", | |
"regEx": { | |
"0": { | |
"msg": "[label] はメールアドレスで入力してください" | |
}, | |
"1": { | |
"exp": "SimpleSchema.RegEx.Email", | |
"msg": "[label] はメールアドレスで入力してください" | |
}, | |
"2": { | |
"exp": "SimpleSchema.RegEx.WeakEmail", | |
"msg": "[label] はメールアドレスで入力してください" | |
}, | |
"3": { | |
"exp": "SimpleSchema.RegEx.Domain", | |
"msg": "[label] はドメインで入力してください" | |
}, | |
"4": { | |
"exp": "SimpleSchema.RegEx.WeakDomain", | |
"msg": "[label] はドメインで入力してください" | |
}, | |
"5": { | |
"exp": "SimpleSchema.RegEx.IP", | |
"msg": "[label] はIPv4またはIPv6アドレスで入力してください" | |
}, | |
"6": { | |
"exp": "SimpleSchema.RegEx.IPv4", | |
"msg": "[label] はIPv4アドレスで入力してください" | |
}, | |
"7": { | |
"exp": "SimpleSchema.RegEx.IPv6", | |
"msg": "[label] はIPv6アドレスで入力してください" | |
}, | |
"8": { | |
"exp": "SimpleSchema.RegEx.Url", | |
"msg": "[label] はURLで入力してください" | |
}, | |
"9": { | |
"exp": "SimpleSchema.RegEx.Id", | |
"msg": "[label] は英数字のIDで入力してください" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment