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

DeepL translation discussion #2238

Open
du82 opened this issue May 15, 2023 · 3 comments
Open

DeepL translation discussion #2238

du82 opened this issue May 15, 2023 · 3 comments

Comments

@du82
Copy link

du82 commented May 15, 2023

Here's for the deepl implementation @PalmerAL

I've used DeepL in quite a few of my projects, and its the most accurate translator I've found. It's also cheap from an API request POV, and privacy focused.

@PalmerAL
Copy link
Collaborator

Thanks for opening this.

Deepl pricing looks like $5.49 + $25 per 1 million characters. Taking some random articles off of hacker news, running them through reader view, and looking at the character counts:

const translateCost = () => document.body.textContent.replace(/\s+/g, " ").length * (25 / 1000000)

https://github.com/brexhq/prompt-engineering = $1.26
http://tofspot.blogspot.com/2013/10/9-great-ptolemaic-smackdown-from.html = $0.83
https://xstate.js.org/docs/ = $0.14
https://apnews.com/article/offgrid-solar-electrification-indonesia-0991d77d68f879c4daa12e7d3dfd97ee = $0.16
https://chipsandcheese.com/2021/07/13/arm-or-x86-isa-doesnt-matter/ = $0.41

(Does this calculation seem right?)

For an individual user, this is pretty cheap, but if many people start using this it could get expensive really quickly (or even for an individual user - someone who translates one longish article per day could cost $5-10 per month).

Maybe we should publish a userscript and let people supply their own API key?

@du82
Copy link
Author

du82 commented May 15, 2023

I operate a publicly available version of scripts/matrix-translation-bot with about a thousand characters per day translated. What I do is I make many free trial accounts if one is about to roll over into paid territory, it uses another account.

That's not an option for everyone, so having a place in settings to provide an API key would be awesome. It lets those who are scared of proprietary translation tech not worry since if you dont provide a key, it doesn't do anything. Those who want it can add a key.

@PalmerAL
Copy link
Collaborator

Yeah, that doesn't sound like something we can include in the release, but how about we make a userscript where people can add their own API key and link to it from the release notes?

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

No branches or pull requests

3 participants