This function needs to be included in the UI of the Shiny app. It runs the required client side javascript code to update strings when the currently active (selected) language changes.

useShi18ny()