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

Language code for Ukranian missing

Open msche opened this issue 1 year ago • 1 comments

I was creating a mapping for our translation service and noted that the LanguageCode for Ukranian (UK) was not defined in the class. Does this mean the language is not supported?

I'm currently using 1.7.0

msche avatar Dec 06 '24 08:12 msche

Good catch! Ukrainian is supported by the API and you should be able to use it anyway with 1.7.0 by calling e.g.

String authKey = "f63c02c5-f056-...";  // Replace with your key
        translator = new Translator(authKey);
        TextResult result =
                translator.translateText("Hello, world!", null, "UK");

but of course it should be in the LanguageCodes. I'll add the missing language(s) and check all other libraries as well, this must've gotten overlooked during the original language release.

JanEbbing avatar Dec 06 '24 10:12 JanEbbing

Hi Jan, Is the language code already added?

msche avatar Apr 26 '25 07:04 msche

Sorry, I thought I had added this already. I made a merge request to add it (outside of the public GitHub), thanks for the reminder :)

JanEbbing avatar Apr 29 '25 14:04 JanEbbing

This is available in 1.10.0 now.

JanEbbing avatar May 01 '25 09:05 JanEbbing