Appsilon / shiny.i18n

Shiny applications internationalization made easy
https://appsilon.github.io/shiny.i18n/
Other
168 stars 38 forks source link

[Feature]: `usei18n(i18n)` opt-out option for certain UI elements #136

Open stewerner opened 2 months ago

stewerner commented 2 months ago

Guidelines

Description

Create an option to opt-out of usei18n(i18n) for certain UI elements / strings.

Problem

Currently when enabling usei18n(i18n) in the UI, HTML titles are printed as is (including HTML tags).

Example:

actionButton("my_button", "my_button label", title = i18n$t("my_button title"))

grafik

Proposed Solution

Implement a parameter which allows to avoid wrapping the string in HTML tags.

Alternatives Considered

Not aware of any.