Skip to content

Frontend: Datepicker/calendar control does not use the store locale #6350

Closed
@heldchen

Description

@heldchen

the frontend datepicker control (for example for the DOB field) is not localized: month names, day names and week start date are all using en_US.

Preconditions

  1. Magento 2.1.0 CE
  2. a non-en_US language pack is installed, which contains the translated month and weekday names, assuming de_DE for this issue
  3. frontend store is set to use this language/locale

Steps to reproduce

  1. Admin > Settings > Configuration > Customer > Customer Configuration > "Show Date of Birth: Require"
  2. Admin > Settings > Configuration > General > Locale Options > "First Day of Week: Monday"
  3. clear cache / rebuild static assets if needed
  4. in the frontend, edit your account and use the datepicker of the DoB control

Expected result

  1. the month names in the dropdown are translated
  2. the weekday names are translated
  3. the week starts with monday

Actual result

  1. the month names are in english
  2. the weekday names are in english
  3. the week starts with sunday

Metadata

Metadata

Assignees

Labels

Component: TranslationFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions