-
-
Notifications
You must be signed in to change notification settings - Fork 655
Could we use formatting functions in the nesting 't' function? #1419
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
Conversation
If possible would you be able to add a test to avoid future regression? |
Hey @jamuhl , sorry about that. I'll amend the pull request :) |
@jamuhl Just finished adding in some tests. Do let me know if you'd like further changes or have other feedback. I have plenty of spare time now that my country is in lockdown. |
thank you...landed in i18next@19.4.0 |
What about nested translations with params?
Could this be possible? |
Based on the tests, it should work: https://github.com/i18next/i18next/blob/master/test/i18next.interpolation.nesting.spec.js but only without formatting function: |
@adrai Yes, I was wondering if there was a way to make it work with formatting. |
no |
For example:
If uppercase is defined as: