alpaca
Version:
Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide
49 lines (44 loc) • 2.37 kB
JavaScript
(function($) {
// chinese - china
var Alpaca = $.alpaca;
Alpaca.registerView ({
"id": "base",
"messages": {
"zh_CN": {
required: "此域必须",
invalid: "此域不合格",
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
timeUnits: {
SECOND: "秒",
MINUTE: "分",
HOUR: "时",
DAY: "日",
MONTH: "月",
YEAR: "年"
},
"notOptional": "此域非任选",
"disallowValue": "非法输入包括 {0}.",
"invalidValueOfEnum": "允许输入包括 {0}. [{1}]",
"notEnoughItems": "最小个数 {0}",
"tooManyItems": "最大个数 {0}",
"valueNotUnique": "输入值不独特",
"notAnArray": "不是数组",
"invalidDate": "日期格式因该是 {0}",
"invalidEmail": "伊妹儿格式不对, ex: info@cloudcms.com",
"stringNotAnInteger": "不是整数.",
"invalidIPv4": "不是合法IP地址, ex: 192.168.0.1",
"stringValueTooSmall": "最小值是 {0}",
"stringValueTooLarge": "最大值是 {0}",
"stringValueTooSmallExclusive": "值必须大于 {0}",
"stringValueTooLargeExclusive": "值必须小于 {0}",
"stringDivisibleBy": "值必须能被 {0} 整除",
"stringNotANumber": "不是数字.",
"invalidPassword": "非法密码",
"invalidPhone": "非法电话号码, ex: (123) 456-9999",
"invalidPattern": "此域须有格式 {0}",
"stringTooShort": "此域至少长度 {0}",
"stringTooLong": "此域最多长度 {0}"
}
}
});
})(jQuery);