Description Usage Arguments Examples
This function needs to be included in the Server of the Shiny app if if text
is translated in the UI of the app using the ui_
function. It
makes sure the language used by ui_
to do the translation is
updated when the active (selected) language changes.
1 | uiLangUpdate(classes, lang, i18n = NULL)
|
classes |
UI classes; pass |
lang |
Code for the language that the original language should be translated into. In the following example, |
1 2 3 4 5 6 7 | ## Not run:
observeEvent(lang(),{
uiLangUpdate(classes = input$shi18ny_ui_classes,
lang = lang())
})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.