[X] I agree to follow this project's Contributing 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 problem
Steps to reproduce
Using the basic example app
create_translation_file("examples/basic/app_csv.R", type = "csv")
just change "lang" and "key" placeholders and add dummy translations then try to use it
i18n <- Translator$new(translation_csvs_path = ".")
Get error: "Key translation is not the same in all files."
Expected behavior
Two things should happen differently:
Output from create_translation_file should be called "translation_lang.csv" so it is more obvious what the right file name is and so it matches json
read_and_merge_csvs should have a check for length(all_files) == 0 and give an informative error that no files were found matching the pattern "translation_.*[.]csv" See this line
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