From 37f32869ee81937ade11d849a36f7a088af0d688 Mon Sep 17 00:00:00 2001 From: Jakub Nowicki Date: Mon, 7 Aug 2023 15:24:54 +0200 Subject: [PATCH] docs: Fix usei18n example. --- DESCRIPTION | 2 +- R/ui.R | 2 +- man/usei18n.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 202c6b4..5803d71 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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, diff --git a/R/ui.R b/R/ui.R index 66b5002..3e4e64a 100644 --- a/R/ui.R +++ b/R/ui.R @@ -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") #' }) #' }) #' diff --git a/man/usei18n.Rd b/man/usei18n.Rd index 7fc483d..5df5fde 100644 --- a/man/usei18n.Rd +++ b/man/usei18n.Rd @@ -30,7 +30,7 @@ if (interactive()) { server <- shinyServer(function(input, output, session) { observeEvent(input$go,{ - update_lang(session, "pl") + update_lang("pl") }) })