Skip to content

Conversation

@luizas
Copy link

@luizas luizas commented Feb 26, 2025

I am encountering an accessibility issue related to the aria-label attribute for the 'year' input in the Flatpickr component. Specifically, when I change the locale of my application (for instance, setting it to French, fr), I pass the appropriate locale to Flatpickr via its locale option. However, despite this, the aria-label for the 'year' field remains in English, not reflecting the selected locale. This indicates that the aria-label for the 'year' element is not being localized properly, even though other elements of the UI appear to be correctly translated.

I have confirmed that the locale is being correctly passed to the Flatpickr instance. The issue appears to be specifically with the localization of the aria-label attribute for the 'year' field, which is critical for screen reader accessibility.

Zierk59 pushed a commit to Zierk59/flatpickr that referenced this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant