Some shiny UI components contain a collection of HTML tags, such as shiny::textInput, which creates a label and input inside of a div. In this case, if one aims to translate something in the input or label the translation will not work as with_i18n appends the outer div tag with the data-i18n attribute. However, htmltools::tagAppendAttributes has a CSS selector argument that could be used to append inner tags. What do you think?
Some shiny UI components contain a collection of HTML tags, such as
shiny::textInput, which creates alabelandinputinside of adiv. In this case, if one aims to translate something in the input or label the translation will not work aswith_i18nappends the outerdivtag with the data-i18n attribute. However,htmltools::tagAppendAttributeshas a CSS selector argument that could be used to append inner tags. What do you think?