datastorm-open / shinymanager

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

DE Language Support #88

Closed aktuare-ASE closed 3 years ago

aktuare-ASE commented 3 years ago

Hello,

Could you please add support for the German language?

I find this to be a really great package. I am a developer working for a German company and we would really appreciate it!

pvictor commented 3 years ago

Hello,

You can change labels displayed in app like this:

set_labels(
  language = "en",
  "Please authenticate" = "Bitte authentifizieren",
  "Username:" = "Benutzername:",
  "Password:" = "Passwort:",
  "Login" = "Anmeldung"
)

Complete list of labels is available here: https://github.com/datastorm-open/shinymanager/blob/master/R/language.R

If you want to add support for German directly in the package, you can create a Pull Request by adding a list like the one for fench: https://github.com/datastorm-open/shinymanager/blob/cf5b0bf4b3b88cc80d5edde194d6fb876dff280c/R/language.R#L67

Add translations for DT tables : https://github.com/datastorm-open/shinymanager/blob/cf5b0bf4b3b88cc80d5edde194d6fb876dff280c/R/language.R#L235

Add german in this list: https://github.com/datastorm-open/shinymanager/blob/cf5b0bf4b3b88cc80d5edde194d6fb876dff280c/R/language.R#L208 and others in the rest of the script

And here for using language with secure_app : https://github.com/datastorm-open/shinymanager/blob/cf5b0bf4b3b88cc80d5edde194d6fb876dff280c/R/secure-app.R#L29

aktuare-ASE commented 3 years ago

thank you very much!