Localizations

The Methods API of Bootstrap Table.

We can import all locale files what you need:

```html
<script src="bootstrap-table-en-US.js"></script>
<script src="bootstrap-table-zh-CN.js"></script>
...

And then use JavaScript to switch locale:

$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['en-US'])
// $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN'])
// ...

Or use data attributes to set locale for table:

<table data-toggle="table" data-locale="en-US">
</table>

Or use JavaScript to set locale for table:

$('#table').bootstrapTable({
  locale: 'en-US'
})

formatLoadingMessage

  • Parameter: undefined

  • Default: 'Loading, please wait…'

formatRecordsPerPage

  • Parameter: pageNumber

  • Default: '%s records per page'

formatShowingRows

  • Parameter: pageFrom, pageTo, totalRows

  • Default: 'Showing %s to %s of %s rows'

formatDetailPagination

  • Parameter: totalRows

  • Default: 'Showing %s rows'

formatSearch

  • Parameter: undefined

  • Default: 'Search'

formatNoMatches

  • Parameter: undefined

  • Default: 'No matching records found'

formatRefresh

  • Parameter: undefined

  • Default: 'Refresh'

formatToggle

  • Parameter: undefined

  • Default: 'Toggle'

formatColumns

  • Parameter: undefined

  • Default: 'Columns'

formatAllRows

  • Parameter: undefined

  • Default: 'All'

formatFullscreen

  • Parameter: undefined

  • Default: 'Fullscreen'