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

providePrimeNG: translation not supported #16832

Open
steenole opened this issue Nov 25, 2024 · 0 comments
Open

providePrimeNG: translation not supported #16832

steenole opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@steenole
Copy link

Describe the bug

providePrimeNG does not accept translation in the config object.
According to https://v18.primeng.org/configuration#locale translation should be configured here, but the type definition does not allow it.

Environment

Windows 11
Chrome

Reproducer

No response

Angular version

18.2.0

PrimeNG version

18.0.0-rc1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

23.3

Browser(s)

Chrome 131

Steps to reproduce the behavior

Try the example from the docs (https://v18.primeng.org/configuration#locale)

providePrimeNG({
translation: {
accept: 'Aceptar',
reject: 'Rechazar',
//translations
}
})

Expected behavior

No typescript errors

@steenole steenole added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 25, 2024
@mertsincan mertsincan added this to the 18.0.0-rc.2 milestone Nov 26, 2024
@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 26, 2024
@mertsincan mertsincan self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
Status: No status
Development

No branches or pull requests

2 participants