-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot make use of the TriStateCheckbox component when I configure the filter language or filter options of the Datatable #6550
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Comments
norvey28
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Oct 10, 2024
There is a community supported PrimeLocale repository here: https:/primefaces/primelocale A working version here: https://stackblitz.com/edit/primevue-3-vite-issue-template-6thv7p?file=src%2Fmain.js app.use(PrimeVue, {
locale: {
accept: 'Sí',
addRule: 'Agregar regla',
am: 'AM',
apply: 'Aplicar',
cancel: 'Cancelar',
choose: 'Escoger',
chooseDate: 'Elige fecha',
chooseMonth: 'Elige el mes',
chooseYear: 'Elige Año',
clear: 'Limpiar',
completed: 'Terminado',
contains: 'Contenga',
custom: 'Personalizar',
dateAfter: 'Fecha después de',
dateBefore: 'Fecha antes de',
dateFormat: 'dd/mm/yy',
dateIs: 'Fecha igual a',
dateIsNot: 'Fecha diferente a',
dayNames: [
'Domingo',
'Lunes',
'Martes',
'Miércoles',
'Jueves',
'Viernes',
'Sábado',
],
dayNamesMin: ['D', 'L', 'M', 'X', 'J', 'V', 'S'],
dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'],
emptyFilterMessage: 'Sin opciones disponibles',
emptyMessage: 'No se han encontrado resultados',
emptySearchMessage: 'Sin opciones disponibles',
emptySelectionMessage: 'Ningún artículo seleccionado',
endsWith: 'Termine con',
equals: 'Igual a',
fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
filter: 'Filtrar',
firstDayOfWeek: 1,
gt: 'Mayor que',
gte: 'Mayor o igual a',
lt: 'Menor que',
lte: 'Menor o igual a',
matchAll: 'Coincidir todo',
matchAny: 'Coincidir con cualquiera',
medium: 'Medio',
monthNames: [
'Enero',
'Febrero',
'Marzo',
'Abril',
'Mayo',
'Junio',
'Julio',
'Agosto',
'Septiembre',
'Octubre',
'Noviembre',
'Diciembre',
],
monthNamesShort: [
'Ene',
'Feb',
'Mar',
'Abr',
'May',
'Jun',
'Jul',
'Ago',
'Sep',
'Oct',
'Nov',
'Dic',
],
nextDecade: 'Próxima década',
nextHour: 'próxima hora',
nextMinute: 'Siguiente minuto',
nextMonth: 'Próximo mes',
nextSecond: 'Siguiente segundo',
nextYear: 'El próximo año',
noFilter: 'Sin filtro',
notContains: 'No contenga',
notEquals: 'Diferente a',
now: 'Ahora',
passwordPrompt: 'Escriba una contraseña',
pending: 'Pendiente',
pm: 'PM',
prevDecade: 'Década anterior',
prevHour: 'Hora anterior',
prevMinute: 'Minuto anterior',
prevMonth: 'Mes anterior',
prevSecond: 'Anterior Segundo',
prevYear: 'Año anterior',
reject: 'No',
removeRule: 'Eliminar regla',
searchMessage: '{0} resultados están disponibles',
selectionMessage: '{0} elementos seleccionados',
showMonthAfterYear: false,
startsWith: 'Comience con',
strong: 'Fuerte',
today: 'Hoy',
upload: 'Subir',
weak: 'Débil',
weekHeader: 'Sem',
aria: {
cancelEdit: 'Cancelar editado',
close: 'Cerrar',
collapseLabel: 'Colapsar',
collapseRow: 'Reducir Fila',
editRow: 'Editar fila',
expandLabel: 'Expandir',
expandRow: 'Expandir Fila',
falseLabel: 'Falso',
filterConstraint: 'Restricción de filtro',
filterOperator: 'Operador de filtro',
firstPageLabel: 'Primera Página',
gridView: 'Vista de cuadrícula',
hideFilterMenu: 'Ocultar menú del filtro',
jumpToPageDropdownLabel: 'Ir al menú desplegable de página',
jumpToPageInputLabel: 'Ir a la entrada de página',
lastPageLabel: 'Última Página',
listView: 'Vista de lista',
moveAllToSource: 'Mover todo al origen',
moveAllToTarget: 'Mover todo al objetivo',
moveBottom: 'Desplazarse hacia abajo',
moveDown: 'Bajar',
moveTop: 'Mover arriba',
moveToSource: 'Mover al origen',
moveToTarget: 'Mover al objetivo',
moveUp: 'Subir',
navigation: 'Navegación',
next: 'Siguiente',
nextPageLabel: 'Siguiente Página',
nullLabel: 'No seleccionado',
otpLabel: 'Introduzca el carácter de contraseña de un solo uso {0}',
pageLabel: 'Página {page}',
passwordHide: 'Contraseña oculta',
passwordShow: 'Mostrar contraseña',
previous: 'Anterior',
previousPageLabel: 'Página Anterior',
removeLabel: 'Eliminar',
rotateLeft: 'Girar a la izquierda',
rotateRight: 'Girar a la derecha',
rowsPerPageLabel: 'Filas por página',
saveEdit: 'Guardar editado',
scrollTop: 'Desplazarse hacia arriba',
selectAll: 'Seleccionar todos',
selectLabel: 'Seleccionar',
selectRow: 'Seleccionar fila',
showFilterMenu: 'Mostrar menú del filtro',
slide: 'Deslizar',
slideNumber: '{slideNumber}',
star: '1 estrella',
stars: '{star} estrellas',
trueLabel: 'Verdadero',
unselectAll: 'Deseleccionar todos',
unselectLabel: 'Deseleccionar',
unselectRow: 'Desmarcar fila',
zoomImage: 'Ampliar imagen',
zoomIn: 'Ampliar',
zoomOut: 'Reducir',
},
},
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
I configured the main.js file to have the filters and calendar options in Spanish, but I noticed that it generated problems when I used the TriStateCheckbox component, I checked if it was a special configuration in the locale, but no matter what property I translate, this component stops working.
with the configuration presented above such a component does not work, but if I use the default configuration there is no problem.
This is the error message in the browser console when using TriStateCheckbox in a filter with the following settings for the translation:
Reproducer
https://stackblitz.com/edit/primevue-3-vite-issue-template-77ppjk?file=src%2FApp.vue
PrimeVue version
^3.52.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
See that now the component is working.
Expected behavior
No response
The text was updated successfully, but these errors were encountered: