Skip to content

Commit ad7adc5

Browse files
authoredMar 12, 2021
fix(ui5-calendar): re-render header on lang change (#2939)
The CalendarHeader is not language aware, because unlike the Calendar, DatePicker and the rest Date* components, the CalendarHeader is not derived by DateComponentBase class (which is language aware) and thus never re-renders on language change, triggered by the setLanguage API - the week days get translated, but the month text in the CalendarHeader - not.
1 parent b397862 commit ad7adc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/main/src/CalendarHeader.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import styles from "./generated/themes/CalendarHeader.css.js";
2222

2323
const metadata = {
2424
tag: "ui5-calendar-header",
25+
languageAware: true,
2526
properties: {
2627
/**
2728
* Already normalized by Calendar

0 commit comments

Comments
 (0)
Please sign in to comment.