franciscop / translate

:sa: Translate text on node.js and the browser with promises
MIT License
288 stars 44 forks source link

Where can i get libre translate api key for free #36

Closed Mohammad-Ali-Rauf closed 2 years ago

Mohammad-Ali-Rauf commented 2 years ago

It is giving me 403 error

franciscop commented 2 years ago

That's up to the Libre Translate project and translate is not associated with it. I believe they changed at some point where there was some free data initially but not anymore, please find info about Libre translate in their homepage: https://libretranslate.com/

They seem to provide 3 ways:

In any case, as documented in translate's README you'll then need to edit the url if you want to point to a mirror or host it yourself, and add the key they provide or you create:

// Specifically in Libretranslate, you can also add a url parameter if you install it on your own server:

translate.url = "https://example.com/";
translate.key = process.env.TRANSLATE_KEY;