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

docs: Fix usei18n example. #128

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Encoding: UTF-8
LazyData: true
URL: https://appsilon.github.io/shiny.i18n/, https://github.com/Appsilon/shiny.i18n
BugReports: https://github.com/Appsilon/shiny.i18n/issues
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
Suggests:
covr,
googleLanguageR,
Expand Down
2 changes: 1 addition & 1 deletion R/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ i18n_state <- function(init_language) {
#'
#' server <- shinyServer(function(input, output, session) {
#' observeEvent(input$go,{
#' update_lang(session, "pl")
#' update_lang("pl")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea to remove session altogether from this call since the default param should work on most cases anyway!

#' })
#' })
#'
Expand Down
2 changes: 1 addition & 1 deletion man/usei18n.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.