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

Support for clean (non html) text? #50

Open
alopezo opened this issue Dec 8, 2020 · 1 comment
Open

Support for clean (non html) text? #50

alopezo opened this issue Dec 8, 2020 · 1 comment

Comments

@alopezo
Copy link

alopezo commented Dec 8, 2020

Hi,

Is this supported? Example:

titlePanel(windowTitle = i18n$t("Title"), title = "")

Would insert a on the page title:

image

@dokato
Copy link
Contributor

dokato commented Dec 11, 2020

hey @alopezo! To enable dynamic translations, we decided to wrap the text with a span that has a class that contains information about the current language. For this specific scenario, I suggest you use re-rendering the object on the server-side. See this example:
https://github.com/Appsilon/shiny.i18n/blob/master/examples/live_language_change/server_app.R

I know it's not ideal, but before we come up with a more robust solution this should fix it.

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

No branches or pull requests

2 participants