yandex-translate-api
yandex-translate-api copied to clipboard
Detected Languages Missing Name Optional
I am having trouble getting the name Optional from this: Language in = api.detectionApi().detect(translate).get(); Which gives me an error saying it is empty when I try: in.name().get(). Using a standard Language: Language convert = Language.EN; Works fine when I do this: convert.name().get() Not sure whether this is me or you, but maybe you can see something I don't even if it's my fault. Thanks for the help!
Could you please provide some code snippet with which I can reproduce this situation?
(Pull request with negative unit-test would be great)