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

"L" function in the text template rendering system should support parametric text #3977

Closed
hikalkan opened this issue May 16, 2020 · 0 comments · Fixed by #3989
Closed

"L" function in the text template rendering system should support parametric text #3977

hikalkan opened this issue May 16, 2020 · 0 comments · Fixed by #3989

Comments

@hikalkan
Copy link
Member

For a translation like Hello {0}, how are you?, we need to pass the {0} as a parameter to the L function. Currently, it is no possible.

A good implementation can be like that:

{{ L "HelloKey" "John" }}

or (using a model property)

{{ L "HelloKey" model.name }}

which produces Hello John, how are you?

If it can be implemented, also update the document.

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

Successfully merging a pull request may close this issue.

2 participants