Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
add Chinese locale translation "cn.json"
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 29, 2018
1 parent 2da6923 commit 8c0cc9e
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-validation-ghiscoding",
"version": "1.5.24",
"version": "1.5.25",
"author": "Ghislain B.",
"description": "Angular-Validation Directive and Service (ghiscoding)",
"main": [
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Angular-Validation change logs

1.5.25 (2018-10-29) Add Chinese locale "cn.json" in the locales folder.
1.5.24 (2017-09-01) Fix #160, validate on empty not working in angular-service
1.5.23 (2017-08-17) Merged PR #162 and #163
1.5.22 (2017-06-07) Merged PR #157 to add Simplified Chinese locale.
Expand Down
104 changes: 104 additions & 0 deletions locales/validation/cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"INVALID_ACCEPTED": "必须接受",
"INVALID_ALPHA":"只能带字母",
"INVALID_ALPHA_SPACE":"只能帶字母或空格",
"INVALID_ALPHA_NUM":"只能帶字母或数字",
"INVALID_ALPHA_NUM_SPACE":"只能带字母或数字或空格",
"INVALID_ALPHA_DASH":"只能带字母或数字或破折号",
"INVALID_ALPHA_DASH_SPACE":"只能带字母或数字或空格或破折号",
"INVALID_BETWEEN_CHAR":"文本必须介于{0}和{1}之间",
"INVALID_BETWEEN_NUM":"需要一个数值在{0}和{1}之间",
"INVALID_BOOLEAN":"只能带真值或假值",
"INVALID_CREDIT_CARD":"必须是有效的信用卡号码",
"INVALID_DATE_EURO":"必须是一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy)",
"INVALID_DATE_EURO_BETWEEN":"需要一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy)在{0}和{1}之间",
"INVALID_DATE_EURO_MAX":"需要一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy),等于或低于{0}",
"INVALID_DATE_EURO_MIN":"需要一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy),等于或高于{0}",
"INVALID_DATE_EURO_LONG":"必须是一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy)",
"INVALID_DATE_EURO_LONG_BETWEEN":"需要一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy)在{0}和{1}之间",
"INVALID_DATE_EURO_LONG_MAX":"需要一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy),等于或低于{0}",
"INVALID_DATE_EURO_LONG_MIN":"需要一个有效的日期格式(dd-mm-yyyy)或(dd/mm/yyyy),等于或高于{0}",
"INVALID_DATE_EURO_SHORT":"必须是一个有效的日期格式(dd-mm-yy)或(dd/mm/yy)",
"INVALID_DATE_EURO_SHORT_BETWEEN":"需要一个有效的日期格式(dd-mm-yy)或(dd/mm/yy)在{0}和{1}之间",
"INVALID_DATE_EURO_SHORT_MAX":"需要一个有效的日期格式(dd-mm-yy)或(dd/mm/yy),等于或低于{0}",
"INVALID_DATE_EURO_SHORT_MIN":"需要一个有效的日期格式(dd-mm-yy)或(dd/mm/yy),等于或高于{0}",
"INVALID_DATE_ISO":"必须是一个有效的日期格式(yyyy-mm-dd)",
"INVALID_DATE_ISO_BETWEEN":"需要一个有效的日期格式(yyyy-mm-dd)在{0}和{1}之间",
"INVALID_DATE_ISO_MAX":"需要一个有效的日期格式(yyyy-mm-dd),等于或低于{0}",
"INVALID_DATE_ISO_MIN":"需要一个有效的日期格式(yyyy-mm-dd),等于或高于{0}",
"INVALID_DATE_US":"必须是一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy)",
"INVALID_DATE_US_BETWEEN":"需要一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy)在{0}和{1}之间",
"INVALID_DATE_US_MAX":"需要一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy),等于或低于{0}",
"INVALID_DATE_US_MIN":"需要一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy),等于或高于{0}",
"INVALID_DATE_US_LONG":"必须是一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy)",
"INVALID_DATE_US_LONG_BETWEEN":"需要一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy)在{0}和{1}之间",
"INVALID_DATE_US_LONG_MAX":"需要一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy),等于或低于{0}",
"INVALID_DATE_US_LONG_MIN":"需要一个有效的日期格式(mm/dd/yyyy)或(mm-dd-yyyy),等于或高于{0}",
"INVALID_DATE_US_SHORT":"必须是一个有效的日期格式(mm/dd/yy)或(mm-dd-yy)",
"INVALID_DATE_US_SHORT_BETWEEN":"需要一个有效的日期格式(mm/dd/yy)或(mm-dd-yy)在{0}和{1}之间",
"INVALID_DATE_US_SHORT_MAX":"需要一个有效的日期格式(mm/dd/yy)或(mm-dd-yy),等于或低于{0}",
"INVALID_DATE_US_SHORT_MIN":"需要一个有效的日期格式(mm/dd/yy)或(mm-dd-yy),等于或高于{0}",
"INVALID_DIGITS":"数字必须是{0}",
"INVALID_DIGITS_BETWEEN":"数字必须介于{0}和{1}之间",
"INVALID_EMAIL":"必须是有效的电子邮件地址",
"INVALID_EXACT_LEN":"必须具有确切的字符{0}",
"INVALID_EXACT_NUM":"必须是{0}",
"INVALID_FLOAT":"只能带正浮点值(integer excluded)",
"INVALID_FLOAT_SIGNED":"只能带正或负浮点值(integer excluded)",
"INVALID_IBAN":"必须是一个有效的日期",
"INVALID_IN_LIST":"必须是此列表内的选择:({0})",
"INVALID_INPUT_DIFFERENT":"字段必须与指定字段不同[{1}]",
"INVALID_INPUT_MATCH":"确认字段与指定字段不匹配[{1}]",
"INVALID_INTEGER":"必须是正整数",
"INVALID_INTEGER_SIGNED":"必须是正整数或负整数",
"INVALID_IPV4":"必须是一个有效的IP (IPV4)",
"INVALID_IPV6":"必须是一个有效的IP (IPV6)",
"INVALID_IPV6_HEX":"必须是一个有效的IP (IPV6 Hex)",
"INVALID_KEY_CHAR":"“数字”字段上的键盘输入无效",
"INVALID_MAX_CHAR":"字符可能不大于{0}",
"INVALID_MAX_NUM":"数值需要等于或低于{0}",
"INVALID_MIN_CHAR":"字符必须至少{0}",
"INVALID_MIN_NUM":"数值需要等于或高于{0}",
"INVALID_NOT_IN_LIST":"必须是此列表之外的选择:({0})",
"INVALID_NUMERIC":"必须是正数",
"INVALID_NUMERIC_SIGNED":"必须是正数或负数",
"INVALID_PATTERN":"必须遵循以下格式:{0}",
"INVALID_PATTERN_DATA":"必须遵循此格式{{data}}",
"INVALID_PHONE_US":"必须是有效的电话号码,包括区号",
"INVALID_PHONE_INTERNATIONAL":"必须是有效的国际电话号码",
"INVALID_REQUIRED":"字段是必需的",
"INVALID_URL":"必须是有效网址",
"INVALID_TIME":"必须是一个有效的时间格式 (hh:mm) 或 (hh:mm:ss)",
"INVALID_CHECKBOX_SELECTED":"复选框必须选择",
"AREA1":"文本:数字+最小(15)+要求",
"ERRORS":"错误",
"CHANGE_LANGUAGE":"改变语言",
"FORM_PREVALIDATED":"表单预验证",
"INPUT1":"远程验证-键入一个有效答案的ABC",
"INPUT2":"数正的或负的输入类型=’数字’—非数字字符上的错误",
"INPUT3":"Floating number range (integer excluded) -- between_num:x,y OR min_num:x|max_num:y ",
"INPUT4":"多重验证+自定义正则表达式日期代码(yyww)",
"INPUT5":"电子邮件",
"INPUT6":"统一资源定位地址",
"INPUT7":"IP (IPV4)",
"INPUT8":"信用卡",
"INPUT9":"在(2,6)之间",
"INPUT10":"日期等 (yyyy-mm-dd)",
"INPUT11":"请用详细美式日期 (mm/dd/yyyy)",
"INPUT12":"时间(hh:mm OR hh:mm:ss)--不需要",
"INPUT13":"AlphaDashSpaces + Required + Minimum(5) Characters -- MUST USE: validation-error-to=' '",
"INPUT14":"Alphanumeric + Required -- NG-DISABLED",
"INPUT15":"密码",
"INPUT16":"密码确认",
"INPUT17":"不同的密码",
"INPUT18":"(3)+数字+完全需要消抖(3sec)",
"INPUT19":"日期等(yyyy-mm-dd)--最小条件> = 2001-01-01",
"INPUT20":"请用简短美式日期 (mm/dd/yy) --日期12/01/99和12/31/15之间",
"INPUT21":"在这个列表中选择(banana,orange,ice cream,sweet & sour)",
"FIRST_NAME":"名字",
"LAST_NAME":"",
"RESET_FORM":"复位形式",
"SAVE":"保存",
"SELECT1":"要求(select)-验证与(blur)事件",
"SHOW_VALIDATION_SUMMARY":"显示验证总结"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-validation-ghiscoding",
"version": "1.5.24",
"version": "1.5.25",
"author": "Ghislain B.",
"description": "Angular-Validation Directive and Service (ghiscoding)",
"main": "dist/angular-validation.min",
Expand Down

2 comments on commit 8c0cc9e

@IS-Kuan
Copy link

@IS-Kuan IS-Kuan commented on 8c0cc9e Mar 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite confusing...

  1. Why there's also a zh_CN.json which looks duplicated with this cn.json?
  2. Why mixed naming logic, zh_CN.json instead of zh-cn.json like pt-br.json?

@ghiscoding
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, these were all provided by other users since I don't speak neither read Chinese.
The 2 files were provided by 2 different person.

Please sign in to comment.