Appsilon / shiny.i18n

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

'Current language' field for translator object #44

Closed Forevener closed 3 years ago

Forevener commented 3 years ago

Could you make translation_language field of a translator object public again, please? Or make a corresponding function.

dokato commented 3 years ago

Good point @Forevener. In theory this is redundant, because by default you use "key translation", then you may change you language with set_translation_language method, so you know explicitly with what language code you're dealing with. But it doesn't harm to have getter for that.

This option is available with get_translation_language, check github installation.