bootstrap-table-th-TH.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * Bootstrap Table Thai translation
  3. * Author: Monchai S.<monchais@gmail.com>
  4. */
  5. ($ => {
  6. $.fn.bootstrapTable.locales['th-TH'] = {
  7. formatLoadingMessage () {
  8. return 'กำลังโหลดข้อมูล, กรุณารอสักครู่'
  9. },
  10. formatRecordsPerPage (pageNumber) {
  11. return `${pageNumber} รายการต่อหน้า`
  12. },
  13. formatShowingRows (pageFrom, pageTo, totalRows) {
  14. return `รายการที่ ${pageFrom} ถึง ${pageTo} จากทั้งหมด ${totalRows} รายการ`
  15. },
  16. formatDetailPagination (totalRows) {
  17. return `Showing ${totalRows} rows`
  18. },
  19. formatSearch () {
  20. return 'ค้นหา'
  21. },
  22. formatNoMatches () {
  23. return 'ไม่พบรายการที่ค้นหา !'
  24. },
  25. formatPaginationSwitch () {
  26. return 'Hide/Show pagination'
  27. },
  28. formatRefresh () {
  29. return 'รีเฟรส'
  30. },
  31. formatToggle () {
  32. return 'สลับมุมมอง'
  33. },
  34. formatColumns () {
  35. return 'คอลัมน์'
  36. },
  37. formatFullscreen () {
  38. return 'Fullscreen'
  39. },
  40. formatAllRows () {
  41. return 'All'
  42. },
  43. formatAutoRefresh () {
  44. return 'Auto Refresh'
  45. },
  46. formatExport () {
  47. return 'Export data'
  48. },
  49. formatClearFilters () {
  50. return 'Clear filters'
  51. },
  52. formatJumpto () {
  53. return 'GO'
  54. },
  55. formatAdvancedSearch () {
  56. return 'Advanced search'
  57. },
  58. formatAdvancedCloseButton () {
  59. return 'Close'
  60. }
  61. }
  62. $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['th-TH'])
  63. })(jQuery)