UNPKG

multiple-select

Version:

Multiple select is a jQuery plugin to select multiple elements with checkboxes :).

29 lines (25 loc) 882 B
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); })(this, (function ($) { 'use strict'; /** * Multiple Select zh-TW translation * Author: Zhixin Wen<wenzhixin2010@gmail.com> */ $.fn.multipleSelect.locales['zh-TW'] = { formatSelectAll() { return '[全選]'; }, formatAllSelected() { return '已選擇所有記錄'; }, formatCountSelected(count, total) { return `已從${total}條記錄中選擇${count}條`; }, formatNoMatchesFound() { return '沒有找到記錄'; } }; $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-TW']); }));