Is there a way to use i18n to generate a text that also includes html tags? #725
Replies: 1 comment
-
|
Hey! I understand the angle, but I believe it's outside the scope of this library. That said, one of the things I do for everything that contains html is explicitly naming it like so. In your example, I'd use something like Alternatively, you can write a helper function that receives all args plus the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is there a way to use i18n to generate a text that also includes html tags?
Example:
I guess we could inline html in the translations file
However I feel this is not a best practice because we "hide" useful stuff such as class names inside the translations file.
spanby just taking a look on the view file. He has to also open the translation file just to be sure, which is not productive at all.What I'm thinking would be something like:
So that the placeholder tag in the translation file would get replaced by the injected
user_elmarkup.Beta Was this translation helpful? Give feedback.
All reactions