forked from Steven/DeepJ
Update 'Home'
parent
d60cb5d3cb
commit
7123b325df
35
Home.md
35
Home.md
@ -2,4 +2,37 @@
|
||||
|
||||
[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