bootstrap-table-zh-TW.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define([], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory();
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory();
  11. global.bootstrapTableZhTW = mod.exports;
  12. }
  13. })(this, function () {
  14. 'use strict';
  15. /**
  16. * Bootstrap Table Chinese translation
  17. * Author: Zhixin Wen<wenzhixin2010@gmail.com>
  18. */
  19. (function ($) {
  20. $.fn.bootstrapTable.locales['zh-TW'] = {
  21. formatLoadingMessage: function formatLoadingMessage() {
  22. return '正在努力地載入資料,請稍候';
  23. },
  24. formatRecordsPerPage: function formatRecordsPerPage(pageNumber) {
  25. return '\u6BCF\u9801\u986F\u793A ' + pageNumber + ' \u9805\u8A18\u9304';
  26. },
  27. formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows) {
  28. return '\u986F\u793A\u7B2C ' + pageFrom + ' \u5230\u7B2C ' + pageTo + ' \u9805\u8A18\u9304\uFF0C\u7E3D\u5171 ' + totalRows + ' \u9805\u8A18\u9304';
  29. },
  30. formatDetailPagination: function formatDetailPagination(totalRows) {
  31. return '\u7E3D\u5171 ' + totalRows + ' \u9805\u8A18\u9304';
  32. },
  33. formatSearch: function formatSearch() {
  34. return '搜尋';
  35. },
  36. formatNoMatches: function formatNoMatches() {
  37. return '沒有找到符合的結果';
  38. },
  39. formatPaginationSwitch: function formatPaginationSwitch() {
  40. return '隱藏/顯示分頁';
  41. },
  42. formatRefresh: function formatRefresh() {
  43. return '重新整理';
  44. },
  45. formatToggle: function formatToggle() {
  46. return '切換';
  47. },
  48. formatColumns: function formatColumns() {
  49. return '列';
  50. },
  51. formatFullscreen: function formatFullscreen() {
  52. return '全屏';
  53. },
  54. formatAllRows: function formatAllRows() {
  55. return '所有';
  56. },
  57. formatAutoRefresh: function formatAutoRefresh() {
  58. return '自動刷新';
  59. },
  60. formatExport: function formatExport() {
  61. return '導出數據';
  62. },
  63. formatClearFilters: function formatClearFilters() {
  64. return '清空過濾';
  65. },
  66. formatJumpto: function formatJumpto() {
  67. return '跳轉';
  68. },
  69. formatAdvancedSearch: function formatAdvancedSearch() {
  70. return '高級搜尋';
  71. },
  72. formatAdvancedCloseButton: function formatAdvancedCloseButton() {
  73. return '關閉';
  74. }
  75. };
  76. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-TW']);
  77. })(jQuery);
  78. });