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

Translations cannot handle inline tags #1631

Open
CendioOssman opened this issue Mar 10, 2022 · 0 comments
Open

Translations cannot handle inline tags #1631

CendioOssman opened this issue Mar 10, 2022 · 0 comments

Comments

@CendioOssman
Copy link
Member

Describe the bug
Things like This is <b>very</b>important! isn't currently properly handled by our translations. It is currently split up in to This is, very and important! which makes it very difficult to translate things. It also messes up white space as it strips all surrounding white space (which is usually the right thing). But here it isn't really "surrounding".

Expected behavior
Text that includes inline tags should be translated as a single entity.

Additional context
Identifying these occurrences is probably fairly straight forward. The problem is updating them. We probably don't want to use innerHTML as that can easily lead to security issue. So the question is how to handle the tags.

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

No branches or pull requests

2 participants