vbauer / yandex-translate-api Goto Github PK
View Code? Open in Web Editor NEWA simple REST client library for Yandex.Translate
License: MIT License
A simple REST client library for Yandex.Translate
License: MIT License
Steps to reproduce:
4.0.0<groupId>com.acme</groupId> <artifactId>yandex-translate</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>com.github.vbauer</groupId> <artifactId>yandex-translate-api</artifactId> <version>1.2.2</version> </dependency> </dependencies> <repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories>
Execute the following peace of code:
api.detectionApi().detect("Hello, World!");
The following error occurs:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder
at com.github.vbauer.yta.service.transport.impl.DataConverterImpl.createConverter(DataConverterImpl.java:59)
at com.github.vbauer.yta.service.transport.impl.DataConverterImpl.(DataConverterImpl.java:44)
at com.github.vbauer.yta.service.basic.ApiContext.of(ApiContext.java:80)
at com.github.vbauer.yta.service.YTranslateApiImpl.(YTranslateApiImpl.java:58)
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!
Guys, do you have any idea why maven doesn't want to pull out your project?
Getting many calls to add translation to my app and since its generating a ton of text from many many generators i have created, translating them all would mean that ...well i do not have that may years left in me lol google api charges (my app is free so that is a big no no there) i came across yandex and your api but i have never used an api before so not sure if i am doing it right but i only get as far as the setup gradle part
i load up android studio, open my project go to the build.gradle (the first one as there is two)
add
url "https://jitpack.io" to the repository list result = http://pastebin.com/veBtDLNj
now android studio tells me that the gradle files have changed and the project needs to be synced, when i do that i get this error:
Error:(6, 0) Could not find method url() for arguments [https://jitpack.io] on repository container.
Open File
is there a special way to use this in an android project? (i did find it strange i did not need to download anything, was i meant to ? )
any tips would be gratefully recieved
Hi - tried to submit request through your website but have not received a response. Re: the attribution clause in the license, is this waived if one is to purchase translations? Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.