deepl-java
deepl-java copied to clipboard
Language code for Ukranian missing
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
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.
Hi Jan, Is the language code already added?
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 :)
This is available in 1.10.0 now.