primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.15k stars 4.54k forks source link

p-calendar: I18N API doesn't change translations of dayNamesMin when p-calendar is inline #13793

Open nidhal-belhadj opened 11 months ago

nidhal-belhadj commented 11 months ago

Describe the bug

[X] bug report [ ] feature request [ ] support request

Stackblitz Case (Bug Reports) https://stackblitz.com/edit/primeng11-localization-bug-8x9w6u

Current behavior When calendar is inline, the i18N API doesn't change translations of dayNamesMin. (the view is not updated)

Expected behavior days ans month names should be updated.

Environment

dev env

Reproducer

No response

Angular version

12.0.0

PrimeNG version

12.2.3

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

14.21.1

Browser(s)

Chrome

Steps to reproduce the behavior

1- create an app that contains the p-calendar component as inline (very important) 2- add a btn that change the language (as described by the primeng doc https://www.primefaces.org/primeng-v12-lts/#/i18n) 3- in your env, try to change the language

Expected behavior

days ans month names should be updated.

ashikjs commented 11 months ago

@nidhal-belhadj but it's working on updated version did you try to upgrade it to new version and your stackblize primng & Angular version is 11.