Skip to content

bug(Datepicker): Hidden calendar button not in the selected language #25021

@JaDub3

Description

@JaDub3

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

Description

When the locale changes for the datepicker, the calendar switch to the appropriate language. But the hidden 'Close calendar' button stay in english. This is an issue for accessibility, especially for reader application.

image

Reproduction

Steps to reproduce:

  1. Change locale to French
  2. Open the Datepicker
  3. Press 'TAB' until the hidden button appear

Expected Behavior

The label and content of the button should be in the language specified by the locale.

Actual Behavior

The hidden button stay in english

Environment

  • Angular: 11+
  • CDK/Material: Datepicker
  • Browser(s): Chrome, Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/datepickerdocsThis issue is related to documentationgood first issueThis issue is a good place to start for first time contributors to the project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions