Skip to content

fix(VDateInput): derive display format from date adapter locale - #22976

Merged
J-Sek merged 2 commits into
masterfrom
fix/vdateinput-adapter-locale
Jul 1, 2026
Merged

fix(VDateInput): derive display format from date adapter locale#22976
J-Sek merged 2 commits into
masterfrom
fix/vdateinput-adapter-locale

Conversation

@johnleider

Copy link
Copy Markdown
Member

VDateInput inferred its display/parse format from the i18n locale (useLocale().current) instead of the configured date adapter's locale. Every other date component formats via the adapter, so an app whose date adapter used a different locale (e.g. Luxon en-GB) saw the picker honour en-GB while the input field still rendered en-US.

This routes useDateFormat through the adapter's locale, so the input is consistent with the rest of the date components. It is a no-op for the default setup, where the adapter locale already tracks the i18n locale.

Repro: https://github.com/johnleider/vdateinput-locale-repro
Workaround on current versions: display-format="keyboardDate".

VDateInput inferred its display/parse format from the i18n locale
(useLocale().current) instead of the configured date adapter's locale.
Every other date component formats via the adapter, so an app whose date
adapter used a different locale (e.g. Luxon with en-GB) would see the
picker honour en-GB while the input field still rendered en-US.

Route useDateFormat through the adapter's locale so the input is
consistent with the rest of the date components. No-op for the default
setup, where the adapter locale already tracks the i18n locale.

Repro: https://github.com/johnleider/vdateinput-locale-repro
@johnleider johnleider added this to the v4.1.x milestone Jun 29, 2026
@johnleider johnleider added T: bug Functionality that does not work as intended/expected E: date labels Jun 29, 2026
@johnleider johnleider self-assigned this Jun 29, 2026
@J-Sek
J-Sek merged commit 962cda0 into master Jul 1, 2026
16 checks passed
@J-Sek
J-Sek deleted the fix/vdateinput-adapter-locale branch July 1, 2026 14:44
@J-Sek J-Sek added the i18n Internationalization issue label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

E: date i18n Internationalization issue T: bug Functionality that does not work as intended/expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants