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!
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!