select2_locale_zh-CN.js 762 B

12345678910111213141516
  1. /**
  2. * Select2 Chinese translation
  3. */
  4. (function ($) {
  5. "use strict";
  6. $.fn.select2.locales['zh-CN'] = {
  7. formatNoMatches: function () { return "没有找到匹配项"; },
  8. formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
  9. formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
  10. formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
  11. formatLoadMore: function (pageNumber) { return "加载结果中…"; },
  12. formatSearching: function () { return "搜索中…"; }
  13. };
  14. $.extend($.fn.select2.defaults, $.fn.select2.locales['zh-CN']);
  15. })(jQuery);