Name | Parameter | Default |
---|---|---|
formatLoadingMessage | - | 'Loading, please wait…' |
formatRecordsPerPage | pageNumber | '%s records per page' |
formatShowingRows | pageFrom, pageTo, totalRows | 'Showing %s to %s of %s rows' |
formatDetailPagination | totalRows | 'Showing %s rows' |
formatSearch | - | 'Search' |
formatNoMatches | - | 'No matching records found' |
formatRefresh | - | 'Refresh' |
formatToggle | - | 'Toggle' |
formatColumns | - | 'Columns' |
formatAllRows | - | 'All' |
PS:
We can import all locale files what you need:
<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'});