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

Translation parameters with numbers #1523

Open
markusbrite opened this issue Jan 28, 2025 · 1 comment
Open

Translation parameters with numbers #1523

markusbrite opened this issue Jan 28, 2025 · 1 comment

Comments

@markusbrite
Copy link

I have a problem I'm not sure how to solve..
Example:
We have a button and support english and finnish
<button>{{general::button::countdown | translate}} {{countdown}}</button>

This works for english but the Finnish language is strange :P
It uses the number inbetween..

fi: Takaisin {{countdown}} kuluttua
en: Back in

I can solve this by adding the countdown as a parameter but that also feels strange because you don't translate numbers.. :P

Suggestions?

@CodeAndWeb
Copy link
Member

Can you please create a small reproduction example. It's hard to help since you are not providing the content of the translation files nor other details.

You can e.g. clone these examples https://github.com/CodeAndWeb/ngx-translate-demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants