Python Shiny: adding "lang" data to main <html> or via "http-equiv" in the <head>

Hi!

I'm using Shiny with Python, and I'm not sure how to add a "lang" entry to the <html> element enclosing the page. One alternative might be to use ui.head_content() to add some metadata to the <head> section, but I'm not sure how to get e.g. <meta http-equiv="content-language" content="en"> via that routine (it expects a TagAttrValue - I'm not sure what the appropriate value is for http-equiv).

Can anyone suggest a way to address this?

Thanks!

For anyone who's curious about this, it can apparently be accomplished using Shiny Express via e.g.:

ui.page_opts(lang='en')

1 Like

Nice, thanks for coming back to let us all know!

Best,
Randy

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.