UNPKG

2.42 kBJavaScriptView Raw
1/**
2 * Bootstrap Table Chinese translation
3 * Author: Zhixin Wen<wenzhixin2010@gmail.com>
4 */
5
6$.fn.bootstrapTable.locales['zh-TW'] = {
7 formatCopyRows () {
8 return 'Copy Rows'
9 },
10 formatPrint () {
11 return 'Print'
12 },
13 formatLoadingMessage () {
14 return '正在努力地載入資料,請稍候'
15 },
16 formatRecordsPerPage (pageNumber) {
17 return `每頁顯示 ${pageNumber} 項記錄`
18 },
19 formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
20 if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
21 return `顯示第 ${pageFrom} 到第 ${pageTo} 項記錄,總共 ${totalRows} 項記錄(從 ${totalNotFiltered} 總記錄中過濾)`
22 }
23
24 return `顯示第 ${pageFrom} 到第 ${pageTo} 項記錄,總共 ${totalRows} 項記錄`
25 },
26 formatSRPaginationPreText () {
27 return '上一頁'
28 },
29 formatSRPaginationPageText (page) {
30 return `第${page}頁`
31 },
32 formatSRPaginationNextText () {
33 return '下一頁'
34 },
35 formatDetailPagination (totalRows) {
36 return `總共 ${totalRows} 項記錄`
37 },
38 formatClearSearch () {
39 return '清空過濾'
40 },
41 formatSearch () {
42 return '搜尋'
43 },
44 formatNoMatches () {
45 return '沒有找到符合的結果'
46 },
47 formatPaginationSwitch () {
48 return '隱藏/顯示分頁'
49 },
50 formatPaginationSwitchDown () {
51 return '顯示分頁'
52 },
53 formatPaginationSwitchUp () {
54 return '隱藏分頁'
55 },
56 formatRefresh () {
57 return '重新整理'
58 },
59 formatToggleOn () {
60 return '顯示卡片視圖'
61 },
62 formatToggleOff () {
63 return '隱藏卡片視圖'
64 },
65 formatColumns () {
66 return '列'
67 },
68 formatColumnsToggleAll () {
69 return '切換所有'
70 },
71 formatFullscreen () {
72 return '全屏'
73 },
74 formatAllRows () {
75 return '所有'
76 },
77 formatAutoRefresh () {
78 return '自動刷新'
79 },
80 formatExport () {
81 return '導出數據'
82 },
83 formatJumpTo () {
84 return '跳轉'
85 },
86 formatAdvancedSearch () {
87 return '高級搜尋'
88 },
89 formatAdvancedCloseButton () {
90 return '關閉'
91 },
92 formatFilterControlSwitch () {
93 return '隱藏/顯示過濾控制'
94 },
95 formatFilterControlSwitchHide () {
96 return '隱藏過濾控制'
97 },
98 formatFilterControlSwitchShow () {
99 return '顯示過濾控制'
100 }
101}
102
103Object.assign($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-TW'])