bootstrap-table-en-US.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * Bootstrap Table English translation
  3. * Author: Zhixin Wen<wenzhixin2010@gmail.com>
  4. */
  5. ($ => {
  6. $.fn.bootstrapTable.locales['en-US'] = {
  7. formatLoadingMessage () {
  8. return 'Loading, please wait'
  9. },
  10. formatRecordsPerPage (pageNumber) {
  11. return `${pageNumber} rows per page`
  12. },
  13. formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
  14. if(totalNotFiltered !== undefined && totalNotFiltered > 0) {
  15. return `Showing ${pageFrom} to ${pageTo} of ${totalRows} rows (filtered from ${totalNotFiltered} total entries)`
  16. }
  17. return `Showing ${pageFrom} to ${pageTo} of ${totalRows} rows`
  18. },
  19. formatDetailPagination (totalRows) {
  20. return `Showing ${totalRows} rows`
  21. },
  22. formatSearch () {
  23. return 'Search'
  24. },
  25. formatNoMatches () {
  26. return 'No matching records found'
  27. },
  28. formatPaginationSwitch () {
  29. return 'Hide/Show pagination'
  30. },
  31. formatRefresh () {
  32. return 'Refresh'
  33. },
  34. formatToggle () {
  35. return 'Toggle'
  36. },
  37. formatColumns () {
  38. return 'Columns'
  39. },
  40. formatFullscreen () {
  41. return 'Fullscreen'
  42. },
  43. formatAllRows () {
  44. return 'All'
  45. },
  46. formatAutoRefresh () {
  47. return 'Auto Refresh'
  48. },
  49. formatExport () {
  50. return 'Export data'
  51. },
  52. formatClearFilters () {
  53. return 'Clear filters'
  54. },
  55. formatJumpto () {
  56. return 'GO'
  57. },
  58. formatAdvancedSearch () {
  59. return 'Advanced search'
  60. },
  61. formatAdvancedCloseButton () {
  62. return 'Close'
  63. }
  64. }
  65. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US'])
  66. })(jQuery)