[Bug]: files created by create_translation_file
not found when creating new translator
#137
Open
1 task done
Labels
Guidelines
Project Version
0.3.0
Platform and OS Version
Windows 11
Existing Issues
No response
What happened?
The default output file name for
create_translation_file
and the RStudio addin for csv output is "translate_lang.csv" which I expected I would just need to add the language to eg "translate_fr.csv" and change the "key" in the first column to "en" and "lang" in the second column to "fr", fill in the translations and it would work. But I got an error that "Key translation is not the same in all files.". This was missleading since the keys were not part of the problemSteps to reproduce
create_translation_file("examples/basic/app_csv.R", type = "csv")
i18n <- Translator$new(translation_csvs_path = ".")
Get error: "Key translation is not the same in all files."
Expected behavior
Two things should happen differently:
create_translation_file
should be called "translation_lang.csv" so it is more obvious what the right file name is and so it matches jsonread_and_merge_csvs
should have a check forlength(all_files) == 0
and give an informative error that no files were found matching the pattern "translation_.*[.]csv" See this lineAttachments
No response
Screenshots or Videos
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: