-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
The EntityAttributeDateField date picker currently does not support internationalization for day and month labels.
At the moment, the QDate component relies on its default locale configuration, which results in non-translated day and month names.
The goal is to update EntityAttributeDateField so that it retrieves translations from vue-i18n and injects them into the local QDate locale configuration.
Proposed Solution
Modify EntityAttributeDateField to:
- Read translated day and month labels from
i18n - Build a
localeobject compatible withQDate - Pass this object to the
QDatecomponent via itslocaleprop
Example of QDate locale configuration:
locale: {
days: ['dimanche', 'lundi', 'mardi', ...],
daysShort: ['dim', 'lun', 'mar', ...],
months: ['janvier', 'fevrier', ...],
monthsShort: ['jan', 'fev', ...]
}i18n Keys to Add
The following keys should be added to the i18n configuration:
{
"date": {
"days": {
"monday": "lundi"
},
"daysShort": {
"monday": "lun"
},
"months": {
"january": "janvier"
},
"monthsShort": {
"january": "jan"
}
}
}Acceptance Criteria
- Day and month names displayed in
EntityAttributeDateFieldare translated - Translations are sourced exclusively from
vue-i18n QDatereceives a fully populatedlocaleobject- Changing the application language updates the date picker accordingly
Notes
This approach allows EntityAttributeDateField to remain independent from the global Quasar language configuration and ensures consistent behavior across the application.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request