datastorm-open / shinymanager

Simple and secure authentification mechanism for single shiny applications.
https://datastorm-open.github.io/shinymanager/
381 stars 79 forks source link

I would like to add support for greek language - unicode? #138

Closed lefkiospaikousis closed 1 year ago

lefkiospaikousis commented 2 years ago

Hi! Thanks for this great package I am using it a lot and I would like to contribute in some way

I can add support for the Greek language I am worried though about the greek letters and the Unicode representation

for example:

pkgEnv$label_gr = list(
  "Please authenticate" = "Ονομα χρήστη",
  "Username:" = "Συνθηματικό:"
...

Do I need to write the entire translation in Unicode? Greek_script_in_Unicode

Thanks

pvictor commented 2 years ago

Hello,

In package prefixer I have an addin to convert non-ascii characters, it'll transform your text like so:

pkgEnv$label_gr = list(
  "Please authenticate" = "\u039f\u03bd\u03bf\u03bc\u03b1 \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7",
  "Username:" = "\u03a3\u03c5\u03bd\u03b8\u03b7\u03bc\u03b1\u03c4\u03b9\u03ba\u03cc:"
)

I also can do it for you if you open a PR.

Victor

lefkiospaikousis commented 2 years ago

Great, thanks! Will do it that way Lefkios