dynomake/libretranslate-java

403 Response

Closed this issue · 1 comments

I test it as follows,but get 403 response,what parameters are missing

Translator.setUrlApi("https://libretranslate.com/translate");
System.out.println(Translator.translate(Language.RUSSIAN, Language.CHINESE, "Для примера, переведем текст с русского на английский и выведем в консоль:"));

Kind regards

Hi. Its because of libretranslate.com requires api key.

Translator.setApiKey("your_api_key");