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 |
|
11 |
|
12 |
|
13 |
|
14 | $.fn.multipleSelect.locales['en-US'] = {
|
15 | formatSelectAll: function formatSelectAll() {
|
16 | return '[Select all]';
|
17 | },
|
18 | formatAllSelected: function formatAllSelected() {
|
19 | return 'All selected';
|
20 | },
|
21 | formatCountSelected: function formatCountSelected(count, total) {
|
22 | return count + ' of ' + total + ' selected';
|
23 | },
|
24 | formatNoMatchesFound: function formatNoMatchesFound() {
|
25 | return 'No matches found';
|
26 | }
|
27 | };
|
28 | $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['en-US']);
|
29 |
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 | $.fn.multipleSelect.locales['es-ES'] = {
|
36 | formatSelectAll: function formatSelectAll() {
|
37 | return '[Seleccionar todo]';
|
38 | },
|
39 | formatAllSelected: function formatAllSelected() {
|
40 | return 'Todos seleccionados';
|
41 | },
|
42 | formatCountSelected: function formatCountSelected(count, total) {
|
43 | return count + ' de ' + total + ' seleccionado';
|
44 | },
|
45 | formatNoMatchesFound: function formatNoMatchesFound() {
|
46 | return 'No se encontraron coincidencias';
|
47 | }
|
48 | };
|
49 | $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['es-ES']);
|
50 |
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 | $.fn.multipleSelect.locales['zh-CN'] = {
|
57 | formatSelectAll: function formatSelectAll() {
|
58 | return '[全选]';
|
59 | },
|
60 | formatAllSelected: function formatAllSelected() {
|
61 | return '已选择所有记录';
|
62 | },
|
63 | formatCountSelected: function formatCountSelected(count, total) {
|
64 | return '已从' + total + '条记录中选择' + count + '条';
|
65 | },
|
66 | formatNoMatchesFound: function formatNoMatchesFound() {
|
67 | return '没有找到记录';
|
68 | }
|
69 | };
|
70 | $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-CN']);
|
71 |
|
72 | |
73 |
|
74 |
|
75 |
|
76 |
|
77 | $.fn.multipleSelect.locales['zh-TW'] = {
|
78 | formatSelectAll: function formatSelectAll() {
|
79 | return '[全選]';
|
80 | },
|
81 | formatAllSelected: function formatAllSelected() {
|
82 | return '已選擇所有記錄';
|
83 | },
|
84 | formatCountSelected: function formatCountSelected(count, total) {
|
85 | return '已從' + total + '條記錄中選擇' + count + '條';
|
86 | },
|
87 | formatNoMatchesFound: function formatNoMatchesFound() {
|
88 | return '沒有找到記錄';
|
89 | }
|
90 | };
|
91 | $.extend($.fn.multipleSelect.defaults, $.fn.multipleSelect.locales['zh-TW']);
|
92 |
|
93 | }));
|