deepl-java
deepl-java copied to clipboard
Multilingual glossary cannot be created from CSV correctly
Problem:
- When calling
createMultilingualGlossaryFromCsvit is required to pass thesourceLanguageCodeandtargetLanguageCodeparameters, which is weird, since Multilingual Glossaries themselves have no source and target languages. - The parameters are passed on to
createGlossaryFromCsvInternal, which creates a glossary with one single dictionary with the given source- and targetLanguageCode. - So, if I want to create a multilingual glossary from a CSV with 3 language pairs, I can always only select one language pair to be included in the newly created glossary.
Expected behavior:
createMultilingualGlossaryFromCsvshould not accept thesourceLanguageCodeandtargetLanguageCodeparameterscreateGlossaryFromCsvInternalshould iterate through the CSV entries and create dictionaries with all language pairs of the CSV. Those dictionaries should be then sent all to the endpoint, instead of just one.