diff --git a/src/js/select2/i18n/zh-CN.js b/src/js/select2/i18n/zh-CN.js new file mode 100644 index 00000000..4aaec39e --- /dev/null +++ b/src/js/select2/i18n/zh-CN.js @@ -0,0 +1,36 @@ +define(function () { + // Chinese (Simplified) + return { + errorLoading: function () { + return '无法载入结果。'; + }, + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + var message = '请删除' + overChars + '个字符'; + + return message; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + var message = '请再输入至少' + remainingChars + '个字符'; + + return message; + }, + loadingMore: function () { + return '载入更多结果…'; + }, + maximumSelected: function (args) { + var message = '最多只能选择' + args.maximum + '个项目'; + + return message; + }, + noResults: function () { + return '未找到结果'; + }, + searching: function () { + return '搜索中…'; + } + }; +});