Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder don't display well the shiny.i18n #122

Open
1 task done
agronomofiorentini opened this issue May 31, 2023 · 1 comment
Open
1 task done

Placeholder don't display well the shiny.i18n #122

agronomofiorentini opened this issue May 31, 2023 · 1 comment
Labels

Comments

@agronomofiorentini
Copy link

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

@dioubernardo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants