Update 'src/main/java/com/the5gi/DeepJ/Translator.java'

This commit is contained in:
5gi 2022-11-15 10:15:34 -05:00
parent c00f4b1a2d
commit 0e35a2f4c8

View File

@ -52,6 +52,9 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
}
request = new Request(authKey);
}
public void setAPIKey(String authKey) {
request = new Request(authKey);
}
public String translate(Language langToTranslateTo, String sourceMessage) {
String response = "Error processing request";
try {