Skip to content

Translating child attributes in shiny UI components #2

@marton-balazs-kovacs

Description

@marton-balazs-kovacs

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions