Skip to content

fix(ui5-calendar): translate week number aria-label in DayPicker - #14014

Merged
unazko merged 2 commits into
mainfrom
day_picker_calendar_week
Sep 3, 2026
Merged

fix(ui5-calendar): translate week number aria-label in DayPicker#14014
unazko merged 2 commits into
mainfrom
day_picker_calendar_week

Conversation

@unazko

@unazko unazko commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Issue:
The aria-label on the week number cells in the calendar was hardcoded
in English ("Calendar Week 52"), so screen readers would always announce
it in English regardless of the user's language setting.

Solution:
Added a new i18n key DAY_PICKER_CALENDAR_WEEK and routed the aria-label
through the i18n bundle, so it will be announced in the user's language
once translations are provided.

No automated test is included since the translation files for other locales
are maintained by the translation team and are not yet available. The fix
was verified manually using the German locale.

Fixes: #14003

The aria-label on the week number container (`ui5-dp-weekname-container`)
was hardcoded as an English template literal `Calendar Week ${weekNum}`,
bypassing the i18n bundle and making it untranslatable.

Added a new i18n key `DAY_PICKER_CALENDAR_WEEK` with a `{0}` placeholder
for the week number, and routed the aria-label through
`DayPicker.i18nBundle.getText()` via a new `_getCalendarWeekLabel()` method.

Fixes: #14003
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@unazko
unazko temporarily deployed to netlify-preview September 2, 2026 07:02 — with GitHub Actions Inactive
@unazko
unazko merged commit ba03d30 into main Sep 3, 2026
27 of 29 checks passed
@unazko
unazko deleted the day_picker_calendar_week branch September 3, 2026 12:44
@unazko
unazko temporarily deployed to netlify-preview September 3, 2026 12:44 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🧹 Preview deployment cleaned up: https://pr-14014--ui5-webcomponents.netlify.app

@sap-ui5-webcomponents-release

Copy link
Copy Markdown

🎉 This PR is included in version v2.27.0-rc.1 🎉

The release is available on v2.27.0-rc.1

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DatePicker]: Calendar Week not translated to german

2 participants