UNPKG

1.02 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3 typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4 (global = global || self, factory(global.jQuery));
5}(this, function ($) { 'use strict';
6
7 $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
8
9 /**
10 * Multiple Select zh-TW translation
11 * Author: Zhixin Wen<wenzhixin2010@gmail.com>
12 */
13
14 $.fn.multipleSelect.locales['zh-TW'] = {
15 formatSelectAll: function formatSelectAll() {
16 return '[全選]';
17 },
18 formatAllSelected: function formatAllSelected() {
19 return '已選擇所有記錄';
20 },
21 formatCountSelected: function formatCountSelected(count, total) {
22 return '已從' + total + '條記錄中選擇' + count + '條';
23 },
24 formatNoMatchesFound: function formatNoMatchesFound() {
25 return '沒有找到記錄';
26 }
27 };
28 $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-TW']);
29
30}));