vbauer / yandex-translate-api

A simple REST client library for Yandex.Translate
MIT License
35 stars 14 forks source link

Detected Languages Missing Name Optional #7

Open MitchellShapiro opened 7 years ago

MitchellShapiro commented 7 years ago

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!

vbauer commented 7 years ago

Could you please provide some code snippet with which I can reproduce this situation?

(Pull request with negative unit-test would be great)