Appsilon/shiny.i18n

Support for clean (non html) text?

Opened this issue · 1 comments

Hi,

Is this supported? Example:

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

Would insert a on the page title:

image

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.