NicolasGrosjean / Translate_helper

A Java application to help to translate the localisation files of the Paradox games.
31 stars 0 forks source link

Add Deepl #49

Closed Vojtak42 closed 2 years ago

Vojtak42 commented 2 years ago

Hello, Please add option to use Deepl translator instead of google.

NicolasGrosjean commented 2 years ago

Hello, The Deepl API is not free even for small daily usage, that's why I have not set it.

But if you are on Windows, you can use Deepl for Windows inside the Translate Helper, it translates with a simple double Ctrl+C.

Vojtak42 commented 2 years ago

Thank you for reply.

Vojtak42 commented 2 years ago

Wouldn't be possible to somehow import .net API?

To use the DeepL .NET Library, you'll need an API authentication key. To get a key, please create an account here. With a DeepL API Free account you can translate up to 500,000 characters/month for free. Source: https://github.com/DeepLcom/deepl-dotnet

NicolasGrosjean commented 2 years ago

I didn't know that DeepL has now a free API plan.

I don't know .Net, but the API can be used with any programming language with HTTP request (like I have done in this Python project).

I will take a look about it this month.

NicolasGrosjean commented 2 years ago

Implemented in the new version.

Download link

You can copy some of your config files to avoid to do it again (accepted_loanwords.txt, available_languages.csv, config.xml).

Setup of DeepL :

@Vojtak42 Do not hesitate to open again this issue if it doesn't work for you.