UNPKG

1.31 kBJavaScriptView Raw
1/**
2 * Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina)
3 * Author: Felix Vera (felix.vera@gmail.com)
4 * Copiado: Mauricio Vera (mauricioa.vera@gmail.com)
5 * Revisión: J Manuel Corona (jmcg92@gmail.com) (13/Feb/2018).
6 */
7($ => {
8 $.fn.bootstrapTable.locales['es-MX'] = {
9 formatLoadingMessage () {
10 return 'Cargando, espere por favor...'
11 },
12 formatRecordsPerPage (pageNumber) {
13 return `${pageNumber} registros por página`
14 },
15 formatShowingRows (pageFrom, pageTo, totalRows) {
16 return `Mostrando ${pageFrom} a ${pageTo} de ${totalRows} filas`
17 },
18 formatDetailPagination (totalRows) {
19 return `Mostrando ${totalRows} filas`
20 },
21 formatSearch () {
22 return 'Buscar'
23 },
24 formatNoMatches () {
25 return 'No se encontraron registros que coincidan'
26 },
27 formatPaginationSwitch () {
28 return 'Mostrar/ocultar paginación'
29 },
30 formatRefresh () {
31 return 'Actualizar'
32 },
33 formatToggle () {
34 return 'Cambiar vista'
35 },
36 formatFullscreen () {
37 return 'Pantalla completa'
38 },
39 formatColumns () {
40 return 'Columnas'
41 },
42 formatAllRows () {
43 return 'Todo'
44 }
45 }
46
47 $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['es-MX'])
48})(jQuery)