Appsilon / shiny.i18n

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

fix: order of the arguments in the example #112

Closed DeepanshKhurana closed 1 year ago

DeepanshKhurana commented 1 year ago

Description

In the tutorial, the order of arguments is reversed. Doing it the way it is written sends the language code to the session variable which leads to the $ is not applicable for atomic vectors error since "en" or "pl" would be a string and not a session object. There is nothing wrong with the update_lang() function (I've checked that as well).

The PR fixes the tutorial with a small commit.