Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language code for Ukranian missing #59

Open
msche opened this issue Dec 6, 2024 · 1 comment
Open

Language code for Ukranian missing #59

msche opened this issue Dec 6, 2024 · 1 comment

Comments

@msche
Copy link

msche commented Dec 6, 2024

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

@JanEbbing
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants