Skip to content

Conversation

@saidy-moregeo
Copy link
Collaborator

@saidy-moregeo saidy-moregeo commented Nov 11, 2025

  1. Fixed import: replaced the non-existent deCH import with de (date-fns exports de, not deCH).
  2. Use [enUS] as the base locale instead of a plain en for international English.
  3. Switch Arabic date-fns weekday labels width to narrow to match the previous version.
  4. Added custom short weekday tokens: ['Mg','Sn','Sl','Rb','Km','Jm','Sb'] for Indonesia locale to match the previous override.
  5. Added custom short weekday tokens: ['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So']; for Polish locale.

Notes:

  • French locale for Canada and Switzerland was using fr locale without any customization, but on date-fns they have separate locale for both Canada and Switzerland which has different configurations for example in Canada the week starts on Sunday do I live it has it is or mimic the previous approach even though we don't use french-canada 🍁 or french-switzerland 🇨🇭 locale.

  • For Italy locale for days on the previous is ['do', 'lu', 'ma', 'me', 'gi', 've', 'sa'] and on the new one is ["dom", "lun", "mar", "mer", "gio", "ven", "sab"] do you think we should change it or stick with this new select as it doesn't break UI as in the case of Indonesia date-fns locale.

@saidy-moregeo saidy-moregeo self-assigned this Nov 11, 2025
@saidy-moregeo saidy-moregeo added codebase Refactors, code quality, and development environment issue or enhancement dependencies Pull requests that update a dependency file labels Nov 11, 2025
@saidy-moregeo saidy-moregeo marked this pull request as ready for review November 11, 2025 19:50
Comment on lines 29 to 30
weekStartsOn: 1, // Monday is the first day of the week.
firstWeekContainsDate: 7, // The week that contains Jan 7th is the first week of the year.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amrirasyidi Please review


export default {dateFormat, timeFormat, dateTimeFormat, locale};
// minimal override to support a custom 'min' width with two-letter weekday tokens
const minDayValues = ['Do', '2ª', '3ª', '4ª', '5ª', '6ª', 'Sá'];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@psacra Are there the commonly used values for calendars / date pickers? The numbers look odd to me :-)

@m-mohr m-mohr merged commit a156160 into vuejs3-migration Nov 22, 2025
@m-mohr
Copy link
Collaborator

m-mohr commented Nov 22, 2025

Merging, but reviews of our translators would still be highly appreciated!

@m-mohr m-mohr deleted the fix/date-picker-format branch November 22, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codebase Refactors, code quality, and development environment issue or enhancement dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants