I want to start with translation in R Shiny. At the very beginning, I am creating the simplest app in Shiny and trying to translate it. But I get the following error:
Warning in load_local_config(translation_csv_config) :
You didn't specify config translation yaml file. Default settings are used.
Error in multmerge(all_files, sep) :
Key translation is not the same in all files.
Even when I comment all the app, just running the first line for defining the translation gives me this error.
I have created a csv file for translation.
The code is:
library(shiny)
library(shiny.i18n)
i18n <- Translator$new(translation_csvs_path = "translation_no.csv")
i18n$set_translation_language("en")
ui <- fluidPage(p(i18n$t("Hello")))
server <- function(input, output) {}
shinyApp(ui, server)
I have saved the csv file in the same directory as my working directory. The csv file is:
en,no
Hello,Hei