Appsilon/shiny.i18n

Placeholder don't display well the shiny.i18n

Opened this issue · 1 comments

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

0.2.1

Platform and OS Version

Windows 10 x64

Existing Issues

No response

What happened?

I am using the shiny.i18n r package in my shinyapp.

Evertything works well, but when i am trying to use the i18n object for the placeholder parameter of a textinput, this is what i can see.

Screenshot_1

the i18n was created by using the following r code

i18n <- shiny.i18n::Translator$new(translation_json_path='translations/translation.json')
i18n$set_translation_language('it')

Steps to reproduce

  1. Create shinyapp
  2. use the shiny.i18n
  3. use the shiny.i18n to the placeholder of textinput

Expected behavior

I am expecting that i can use and visualize

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response

Also occurs in version 0.3

  fileInput(
    "file",
    i18n$t("Select data file"),
    buttonLabel = i18n$t("Browse..."),
    placeholder = i18n$t("No file selected"),    
    accept = c("text/csv",
               "text/comma-separated-values,text/plain",
               ".csv")
  ),

image