forked from Steven/DeepJ
Added Builders to docs
parent
1825d9b195
commit
c56a948b7c
9
Home.md
9
Home.md
@ -70,6 +70,11 @@ this:
|
|||||||
should return:
|
should return:
|
||||||
`Mensaje para traducir`
|
`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.](https://git.nevets.tech/5gi/DeepJ/wiki/Home#user-content-global-auth-keys)
|
[Learn how to set up global api keys.](https://git.nevets.tech/5gi/DeepJ/wiki/Home#user-content-global-auth-keys)
|
||||||
# Global API Keys
|
# Global API Keys
|
||||||
[Follow the instuctions on this page to add DeepJ to your project.](https://git.nevets.tech/5gi/DeepJ/wiki/Home#user-content-usage-setup)
|
[Follow the instuctions on this page to add DeepJ to your project.](https://git.nevets.tech/5gi/DeepJ/wiki/Home#user-content-usage-setup)
|
||||||
@ -89,3 +94,7 @@ this:
|
|||||||
`translator.translate(Translator.Language.Spanish, "Message to translate");`
|
`translator.translate(Translator.Language.Spanish, "Message to translate");`
|
||||||
should return:
|
should return:
|
||||||
`Mensaje para traducir`
|
`Mensaje para traducir`
|
||||||
|
|
||||||
|
or use a Builder:
|
||||||
|
|
||||||
|
`Translator.newBuilder().setGAK(boolean bool).setSilent(boolean bool).build();`
|
Loading…
Reference in New Issue
Block a user