forked from Steven/DeepJ
Update 'Home'
parent
d60cb5d3cb
commit
7123b325df
33
Home.md
33
Home.md
@ -3,3 +3,36 @@
|
|||||||
[Usage/Setup](https://git.nevets.tech/5gi/DeepJ/wiki/Usage)
|
[Usage/Setup](https://git.nevets.tech/5gi/DeepJ/wiki/Usage)
|
||||||
|
|
||||||
KNOWN ISSUES # ADD LATER
|
KNOWN ISSUES # ADD LATER
|
||||||
|
# DeepJ
|
||||||
|
Follow the instuctions on this page to add DeepJ to your project
|
||||||
|
[](https://jitpack.io/#tech.nevets.git.5gi/DeepJ)
|
||||||
|
|
||||||
|
Create a new Translator:
|
||||||
|
|
||||||
|
```
|
||||||
|
Translator translator = new Translator(apiKey);
|
||||||
|
System.out.println(translator.translate(Translator.Language.Spanish, "Message to translate"));
|
||||||
|
```
|
||||||
|
|
||||||
|
this:
|
||||||
|
`translator.translate(Translator.Language.Spanish, "Message to translate");`
|
||||||
|
should return:
|
||||||
|
`Mensaje para traducir`
|
||||||
|
|
||||||
|
# Global Auth Keys
|
||||||
|
Follow the instuctions on this page to add DeepJ to your project
|
||||||
|
[](https://jitpack.io/#tech.nevets.git.5gi/DeepJ)
|
||||||
|
|
||||||
|
This sets the default auth key
|
||||||
|
`Translator.setGlobalAuthKey(apiKey)`
|
||||||
|
|
||||||
|
Create a new Translator:
|
||||||
|
```
|
||||||
|
Translator translator = new Translator();
|
||||||
|
System.out.println(translator.translate(Translator.Language.Spanish, "Message to translate"));
|
||||||
|
```
|
||||||
|
|
||||||
|
this:
|
||||||
|
`translator.translate(Translator.Language.Spanish, "Message to translate");`
|
||||||
|
should return:
|
||||||
|
`Mensaje para traducir`
|
||||||
|
Loading…
Reference in New Issue
Block a user