Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libre engine is asking for an API key #26

Closed
opheliagame opened this issue May 19, 2021 · 4 comments
Closed

Libre engine is asking for an API key #26

opheliagame opened this issue May 19, 2021 · 4 comments

Comments

@opheliagame
Copy link

When trying to get translations using libre engine the promise gets rejected with the following message
Error: Please contact the server operator to obtain an API key

I am wondering if the libre api changed or something else because the process exits with a non zero code.
I was able to do this only a few months back.

@demoprazol
Copy link

Same +1

@opheliagame
Copy link
Author

I think this issue is the reason

@franciscop
Copy link
Owner

franciscop commented May 20, 2021

This is fairly expected since I'm sure a free service like this would get abused at some point. To fix it, you can either get a key from the official website or install Libretranslate on your own server and specify the URL+Key:

// Use the key with the official website
translate.key = process.env.TRANSLATE_KEY;

// OR

// Install in your own server and set up the URL and key:
translate.url = "https://example.com/";
translate.key = process.env.TRANSLATE_KEY;

This should be added as a note somewhere in translate documentation though, so I'll leave the issue it open for now.

@franciscop
Copy link
Owner

Added two notes on the README regarding Libretranslate, so I'm closing this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants