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
locale object compatible with QDate
- Pass this object to the
QDate component via its locale prop
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
EntityAttributeDateField are translated
- Translations are sourced exclusively from
vue-i18n
QDate receives a fully populated locale object
- 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.
Description
The
EntityAttributeDateFielddate picker currently does not support internationalization for day and month labels.At the moment, the
QDatecomponent relies on its default locale configuration, which results in non-translated day and month names.The goal is to update
EntityAttributeDateFieldso that it retrieves translations fromvue-i18nand injects them into the localQDatelocaleconfiguration.Proposed Solution
Modify
EntityAttributeDateFieldto:i18nlocaleobject compatible withQDateQDatecomponent via itslocalepropExample of
QDatelocale configuration: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
EntityAttributeDateFieldare translatedvue-i18nQDatereceives a fully populatedlocaleobjectNotes
This approach allows
EntityAttributeDateFieldto remain independent from the global Quasar language configuration and ensures consistent behavior across the application.