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

[Bug]: Trouble translating HTML tags #83

Open
1 task done
shahronak47 opened this issue Oct 12, 2022 · 0 comments
Open
1 task done

[Bug]: Trouble translating HTML tags #83

shahronak47 opened this issue Oct 12, 2022 · 0 comments
Labels

Comments

@shahronak47
Copy link

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

0.2.0

Platform and OS Version

No response

Existing Issues

No response

What happened?

I have a text which is like

HTML("This is a long text <br> with a line break")

This basically returns "with a line break" on next line since <br> is a line break. I want to translate the same using shiny.i18n however, that doesn't seem to work with HTML tags.

HTML(i18n$t("This is a long text <br> with a line break"))

It displays the same text in English even when I change the language.

This is how my translation csv looks

en, fr
This is a long text <br> with a line break, Ceci est un long texte <br> avec un saut de ligne

The rest of the translation works fine as expected.

Steps to reproduce

Run the translation code with HTML tags.

Expected behavior

Corresponding translation should be available for HTML tags just like the other ones.

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response

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

No branches or pull requests

1 participant