Welcome to the Wiki for DeepJ.
Usage/Setup
Usage/Setup


Gradle
Gradle
Go to your build.gradle file and type:
and
Maven
Maven
Go to your pom.xml file and type:
and
Create a new Translator:
this:
translator.translate(Translator.Language.Spanish, "Message to translate");
should return:
Mensaje para traducir
or use a Builder:
Translator.newBuilder().setAuthKey(String authKey).setSilent(boolean bool).build();
Use like a normal Translator.
Learn how to set up global api keys.
Global API Keys
Follow the instuctions on this page to add DeepJ to your project.
Sometimes reusing your auth key many times can be repetative and annoying
This sets the default auth key
Translator.setGlobalAPIKey(apiKey)
Create a new Translator:
this:
translator.translate(Translator.Language.Spanish, "Message to translate");
should return:
Mensaje para traducir
or use a Builder:
Translator.newBuilder().setGAK(boolean bool).setSilent(boolean bool).build();