Closed Sebastianmarzini closed 2 years ago
Hello @Sebastianmarzini, this error happens when your translation csv files don't have the same "base" translation language.
This error occurs when you have for example two such csv files in your translation_csvs_path
:
translation_it.csv
en,it
Hello,Ciao
translation_es.csv
e,es
Hello,Hola
First column of all translation files should have the same name, if our "base" translation language is English, then first column in both files should be en
. Error is thrown due to translation_es.csv
having first column named e
.
Do you have any other csv
files in your C/Users/Seba/Progetti_gitLab/aforclimate/C4/test_pasciona/www/
folder? The issue in your case may be coming from that the function that reads translation csvs actually reads all csvs in the directory, see this function. This is confusing as vignette says that the file needs to have translation_
prefix. This needs to be fixed on our side. At the moment I'd like to suggest you use a separate folder for storing translations (C/Users/Seba/Progetti_gitLab/aforclimate/C4/test_pasciona/www/translations
) to make sure only those files are read by Translator
.
I hope this helps you solve your issue. In case you have any other questions feel free to reach out. Cheers
Good morning, I am quite new in using R and R shiny. I am trying to create an app and to give the possibility to change the language using the shiny.i18n package. I have created a csv file as mentioned in the vignette, with 2 columns (1 for english and 1 for italian) but as I run the script it gives me this 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.
Here i post all the code:
I really hope that someone could give me a hint about to solve this issue. Thanks in advance!!