Primeng: Calendar week days are never updated use i18n API.

Created on 24 Dec 2020  路  3Comments  路  Source: primefaces/primeng

weekDays init in createWeekDays method with default traslate. After edit PrimeNGConfig translate weekDays not changed.

{{weekDay}}

Need use

{{weekDay}}

defect

Most helpful comment

weekDays init in createWeekDays method with default traslate. After edit PrimeNGConfig translate weekDays not changed.
""

Need use
""

All 3 comments

weekDays init in createWeekDays method with default traslate. After edit PrimeNGConfig translate weekDays not changed.
""

Need use
""

Find an example of the issue below :

https://stackblitz.com/edit/primeng11-localization-bug?file=src%2Fapp%2Fapp.component.ts

The problem is the same if we want to dynamically change the firstDayOfWeek, it is never applied in the component.
There is also un bug if we change at runtime the dateFormat (it stays displayed with the previous dateFormat until we change the date).

Do you plan to fix this regression soon? Otherwise we would need to find other alternatives.

Btw, for firstDayOfWeek, updateInputfield() update the field as expected :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SchneMa picture SchneMa  路  3Comments

Faigjaz picture Faigjaz  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

mitosandov picture mitosandov  路  3Comments

Helayxa picture Helayxa  路  3Comments