-
Notifications
You must be signed in to change notification settings - Fork 11
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
feature idea: Trans component #4
Comments
why would you want this? just curious. |
How would you interpolate a text like the one in my example? i.e. english like this: <div>
Hi from <a href="https://www.i18next.com" target="_blank" rel="noopener">i18next</a> 👋
</div> i.e. german like this: <div>
Ein freundliches 👋 "Hallo" von <a href="https://www.i18next.com" target="_blank" rel="noopener">i18next</a>
</div> i.e. italian like this: <div>
<a href="https://www.i18next.com" target="_blank" rel="noopener">i18next</a> ti saluta 👋
</div> |
Yes please I'm in the need for the same thing in Svelte trying to add links to translations 🙏 |
I concur. Running into this issue with HTML and a on:click in the middle of the string. Not sure how to address this right now |
I've come up with a quick solution to be improved Translation component: (loc is the translation store)
Translation file
Then in one template
|
It would be awesome to have also something like a Trans component, like in react-i18next.
That would help to interpolate components/html elements...
The text was updated successfully, but these errors were encountered: