Description Usage Arguments Details Value Examples
Add an HTML language attribute to an app.
1 | set_lang(session, lang = "en")
|
session |
Shiny session. |
lang |
character, language abbreviation. |
You can inspect the element in your browser to verify. The <html> tag
will include lang="en" by default.
nothing returned
1 2 3 4 5 6 7 8 9 10 11 12 13 | if(interactive()){
library(shiny)
shinyApp(
ui = fluidPage(
use_access(),
h3("App title")
),
server = function(input, output, session){
set_lang(session, "en")
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.