Component: Paginator aria replacement problem #15413
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When I started working with paginator component using i18n. I've added custom aria text to "pageLabel" in my language. Unfortunately someone did "replacement" method and replaced "{page}" text to "Page {page}" when this page in brackets is replaced with proper number. Because of it I have screen reader with "Something from my translation Page 1".
Environment
Just windows with node 18+, angular 17 and primeNG 17.15
Reproducer
https://github-qxuv1y.stackblitz.io
Angular version
17.3.0
PrimeNG version
17.15.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
When translation is: "My page {page}", screen reader should read it as "My page 1" instead of "My page Page 1"
The text was updated successfully, but these errors were encountered: