Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar: Day names don't update #12148

Closed
MartinMa opened this issue Nov 8, 2022 · 0 comments · Fixed by #12237
Closed

Calendar: Day names don't update #12148

MartinMa opened this issue Nov 8, 2022 · 0 comments · Fixed by #12237
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@MartinMa
Copy link

MartinMa commented Nov 8, 2022

Describe the bug

When changing the language using PrimeNGConfig.setTranslation() the day names of the calendar (and month names, too) don't update accordingly.

This is especially obvious when using the calendar component in inline mode.

Expected behavior
The day names (and month names, too) should update immediately when changing the language.

See attached StackBlitz reproduction.

Environment

Node v16.13.1
NPM v8.3.2
Windows 10

Reproducer

https://stackblitz.com/edit/github-k8wzoh?file=src/app/app.component.ts

Angular version

14.0.7

PrimeNG version

14.0.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.13.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the StackBlitz example. The calendar is displayed with English translations.
  2. Click on the "Change language" button
  3. The translation of the day names of the calendar should update immediately. They don't.
  4. (Optional) Change the month and see that the day names do update. But that is too late.

Expected behavior

The day names (and month names, too) should update immediately when changing the language.

@MartinMa MartinMa added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 8, 2022
@mertsincan mertsincan added this to the 14.2.3 milestone Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants