2019-07-24 10:34:55 +08:00
|
|
|
import Pagination from 'rc-pagination/lib/locale/es_ES';
|
2024-01-26 16:00:58 +08:00
|
|
|
|
|
|
|
import type { Locale } from '.';
|
2019-07-24 10:34:55 +08:00
|
|
|
import Calendar from '../calendar/locale/es_ES';
|
2022-06-22 14:57:09 +08:00
|
|
|
import DatePicker from '../date-picker/locale/es_ES';
|
|
|
|
import TimePicker from '../time-picker/locale/es_ES';
|
2019-07-24 10:34:55 +08:00
|
|
|
|
2020-07-07 09:31:51 +08:00
|
|
|
const typeTemplate = '${label} no es un ${type} válido';
|
|
|
|
|
2020-03-11 14:56:01 +08:00
|
|
|
const localeValues: Locale = {
|
2019-07-24 10:34:55 +08:00
|
|
|
locale: 'es',
|
|
|
|
Pagination,
|
|
|
|
DatePicker,
|
|
|
|
TimePicker,
|
|
|
|
Calendar,
|
|
|
|
global: {
|
|
|
|
placeholder: 'Seleccione',
|
|
|
|
},
|
|
|
|
Table: {
|
|
|
|
filterTitle: 'Filtrar menú',
|
|
|
|
filterConfirm: 'Aceptar',
|
|
|
|
filterReset: 'Reiniciar',
|
2020-10-11 02:56:12 +08:00
|
|
|
filterEmptyText: 'Sin filtros',
|
2022-04-29 10:28:15 +08:00
|
|
|
filterCheckall: 'Seleccionar todo',
|
|
|
|
filterSearchPlaceholder: 'Buscar en filtros',
|
2020-10-11 02:56:12 +08:00
|
|
|
emptyText: 'Sin datos',
|
2019-07-24 10:34:55 +08:00
|
|
|
selectAll: 'Seleccionar todo',
|
|
|
|
selectInvert: 'Invertir selección',
|
2021-03-31 09:25:30 +08:00
|
|
|
selectNone: 'Vacíe todo',
|
2020-10-11 02:56:12 +08:00
|
|
|
selectionAll: 'Seleccionar todos los datos',
|
2019-07-24 10:34:55 +08:00
|
|
|
sortTitle: 'Ordenar',
|
2020-10-11 02:56:12 +08:00
|
|
|
expand: 'Expandir fila',
|
|
|
|
collapse: 'Colapsar fila',
|
|
|
|
triggerDesc: 'Click para ordenar en orden descendente',
|
|
|
|
triggerAsc: 'Click para ordenar en orden ascendente',
|
|
|
|
cancelSort: 'Click para cancelar ordenamiento',
|
2019-07-24 10:34:55 +08:00
|
|
|
},
|
2024-09-11 20:18:18 +08:00
|
|
|
Tour: {
|
|
|
|
Next: 'Siguiente',
|
|
|
|
Previous: 'Anterior',
|
|
|
|
Finish: 'Finalizar',
|
|
|
|
},
|
2019-07-24 10:34:55 +08:00
|
|
|
Modal: {
|
|
|
|
okText: 'Aceptar',
|
|
|
|
cancelText: 'Cancelar',
|
|
|
|
justOkText: 'Aceptar',
|
|
|
|
},
|
|
|
|
Popconfirm: {
|
|
|
|
okText: 'Aceptar',
|
|
|
|
cancelText: 'Cancelar',
|
|
|
|
},
|
|
|
|
Transfer: {
|
2020-10-11 02:56:12 +08:00
|
|
|
titles: ['', ''],
|
2019-07-24 10:34:55 +08:00
|
|
|
searchPlaceholder: 'Buscar aquí',
|
|
|
|
itemUnit: 'elemento',
|
|
|
|
itemsUnit: 'elementos',
|
2020-10-11 02:56:12 +08:00
|
|
|
remove: 'Eliminar',
|
|
|
|
selectCurrent: 'Seleccionar página actual',
|
2024-08-01 09:16:16 +08:00
|
|
|
removeCurrent: 'Eliminar página actual',
|
2020-10-11 02:56:12 +08:00
|
|
|
selectAll: 'Seleccionar todos los datos',
|
|
|
|
removeAll: 'Eliminar todos los datos',
|
|
|
|
selectInvert: 'Invertir página actual',
|
2019-07-24 10:34:55 +08:00
|
|
|
},
|
|
|
|
Upload: {
|
|
|
|
uploading: 'Subiendo...',
|
|
|
|
removeFile: 'Eliminar archivo',
|
|
|
|
uploadError: 'Error al subir el archivo',
|
|
|
|
previewFile: 'Vista previa',
|
2019-10-23 11:05:21 +08:00
|
|
|
downloadFile: 'Descargar archivo',
|
2019-07-24 10:34:55 +08:00
|
|
|
},
|
|
|
|
Empty: {
|
|
|
|
description: 'No hay datos',
|
|
|
|
},
|
|
|
|
Icon: {
|
|
|
|
icon: 'ícono',
|
|
|
|
},
|
|
|
|
Text: {
|
2020-10-11 02:56:12 +08:00
|
|
|
edit: 'Editar',
|
|
|
|
copy: 'Copiar',
|
|
|
|
copied: 'Copiado',
|
|
|
|
expand: 'Expandir',
|
2019-07-24 10:34:55 +08:00
|
|
|
},
|
2020-07-07 09:31:51 +08:00
|
|
|
Form: {
|
2020-10-11 02:56:12 +08:00
|
|
|
optional: '(opcional)',
|
2020-07-07 09:31:51 +08:00
|
|
|
defaultValidateMessages: {
|
|
|
|
default: 'Error de validación del campo ${label}',
|
2024-08-01 09:16:16 +08:00
|
|
|
required: 'Por favor, rellena ${label}',
|
2020-07-07 09:31:51 +08:00
|
|
|
enum: '${label} debe ser uno de [${enum}]',
|
|
|
|
whitespace: '${label} no puede ser un carácter en blanco',
|
|
|
|
date: {
|
|
|
|
format: 'El formato de fecha de ${label} es inválido',
|
|
|
|
parse: '${label} no se puede convertir a una fecha',
|
|
|
|
invalid: '${label} es una fecha inválida',
|
|
|
|
},
|
|
|
|
types: {
|
|
|
|
string: typeTemplate,
|
|
|
|
method: typeTemplate,
|
|
|
|
array: typeTemplate,
|
|
|
|
object: typeTemplate,
|
|
|
|
number: typeTemplate,
|
|
|
|
date: typeTemplate,
|
|
|
|
boolean: typeTemplate,
|
|
|
|
integer: typeTemplate,
|
|
|
|
float: typeTemplate,
|
|
|
|
regexp: typeTemplate,
|
|
|
|
email: typeTemplate,
|
|
|
|
url: typeTemplate,
|
|
|
|
hex: typeTemplate,
|
|
|
|
},
|
|
|
|
string: {
|
|
|
|
len: '${label} debe tener ${len} caracteres',
|
|
|
|
min: '${label} debe tener al menos ${min} caracteres',
|
|
|
|
max: '${label} debe tener hasta ${max} caracteres',
|
|
|
|
range: '${label} debe tener entre ${min}-${max} caracteres',
|
|
|
|
},
|
|
|
|
number: {
|
|
|
|
len: '${label} debe ser igual a ${len}',
|
|
|
|
min: '${label} valor mínimo es ${min}',
|
|
|
|
max: '${label} valor máximo es ${max}',
|
2024-08-01 09:16:16 +08:00
|
|
|
range: '${label} debe ser entre ${min}-${max}',
|
2020-07-07 09:31:51 +08:00
|
|
|
},
|
|
|
|
array: {
|
|
|
|
len: 'Debe ser ${len} ${label}',
|
|
|
|
min: 'Al menos ${min} ${label}',
|
2024-08-01 09:16:16 +08:00
|
|
|
max: 'Como máximo ${max} ${label}',
|
|
|
|
range: 'El valor de ${label} debe estar entre ${min}-${max}',
|
2020-07-07 09:31:51 +08:00
|
|
|
},
|
|
|
|
pattern: {
|
|
|
|
mismatch: '${label} no coincide con el patrón ${pattern}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-07-14 11:38:10 +08:00
|
|
|
Image: {
|
|
|
|
preview: 'Previsualización',
|
|
|
|
},
|
2019-07-24 10:34:55 +08:00
|
|
|
};
|
2020-03-11 14:56:01 +08:00
|
|
|
|
|
|
|
export default localeValues;
|