We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I may have missed something, but is there an option within a translation file to wrap text with tags?
For example, I have this key: 'auth.confirm': "I confirm that I am 18 years old and I've read the terms of service"
And in the component, I want to use {t('auth.confirm', {link: })}
Thanks for the replies, sorry I had to create a issue
The text was updated successfully, but these errors were encountered:
Hi, I'm not quite sure to understand your question. Could you expand a bit more your example?
Sorry, something went wrong.
Sorry, github ate the markup
Key: 'auth.confirm': "I confirm that I am 18 years old and I've read the <a>terms of service</a>"
'auth.confirm': "I confirm that I am 18 years old and I've read the <a>terms of service</a>"
Call: t('auth.confirm', {a: <a href='/terms' />})
t('auth.confirm', {a: <a href='/terms' />})
HTML output: I confirm that I am 18 years old and I've read the <a href='/terms'>terms of service</a>
I confirm that I am 18 years old and I've read the <a href='/terms'>terms of service</a>
Oh thanks, that's kind of a duplicate of #343 - we'll likely land this feature in the V2: #359
No branches or pull requests
Hi, I may have missed something, but is there an option within a translation file to wrap text with tags?
For example, I have this key:
'auth.confirm':
"I confirm that I am 18 years old and I've read the terms of service"
And in the component, I want to use
{t('auth.confirm', {link: })}
Thanks for the replies, sorry I had to create a issue
The text was updated successfully, but these errors were encountered: