Setting up Translation Tool API (DeepL X) Using Docker - Freedom in Multilingual Translation
Offering a multilingual translation interface, providing translation services for programs/systems.
Purpose
Providing a multilingual translation interface, rendering translation services for programs/systems.
December 30, 2023, Practical use of Python for testing (to achieve a multilingual solution in Hexo):
After making multiple requests, errors occurred.
1 | Thread-1 is translating from Chinese to English, length=437 |
Overall, the performance is quite disappointing, feeling rather useless.
How to Use
Post to http://192.168.6.116:1188/translate
If using GET, the usage is printed out:
{“code”:200,”message”:”DeepL Free API - Go to /translate with POST.”}
For curl usage:
1 | curl -X POST http://localhost:1188/translate \ |
Further Reading
Implementation Approach
One-click launch
1 | version: "3" |
Open firewall port 1188, reverse proxy (if required)
Next Steps
I aim to feed all Chinese language content to this API for translation into English and Traditional Chinese, thus achieving full multilingual functionality; but there’s still a long way to go…
Source of Inspiration
translator - Simple, lightweight, and easy-to-use word translation software