deepl-java icon indicating copy to clipboard operation
deepl-java copied to clipboard

Multilingual glossary cannot be created from CSV correctly

Open MTSxoff opened this issue 5 months ago • 4 comments

Problem:

  • When calling createMultilingualGlossaryFromCsv it is required to pass the sourceLanguageCode and targetLanguageCode parameters, 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:

  • createMultilingualGlossaryFromCsv should not accept the sourceLanguageCode and targetLanguageCode parameters
  • createGlossaryFromCsvInternal should 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.

MTSxoff avatar Jun 18 '25 13:06 MTSxoff