You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# 🌍 Polyglot - Scalable Translation Service
2
2
3
-
A fast, reliable, and modular translation API that supports multiple translation providers with automatic fallback mechanisms. It uses a mixture of free undocumented APIs as well as official ones requiring API keys. It's been designed to be scalable to meet FxEmbed's needs, intended to run across many web hosting providers behind load balancing to have the highest rate limits possible across different translation services.
3
+
A fast, reliable, and modular translation API designed to meet the scale required by FxEmbed.
4
4
5
-
## ✨ Features
5
+
## 🔄 Native Multi-Provider Architecture
6
6
7
-
- 🔄 **Multi-Provider Architecture**: Google Translate, DeepLX, Bing Translate so far, more to come
7
+
We support both scraping free translations from popular services like Google Translate, Bing Translate, and DeepL, as well as paid APIs such as Azure, DeepL API
8
+
- 🎯 **Dynamic Selection**: Chooses between providers based on target language and availability
8
9
- ⚖️ **Load Balancing and Rate Limit Leveling**: Distributes requests across providers
9
-
- 🛡️ **Automatic Fallback**: If one provider fails, automatically tries others
10
+
- 🛡️ **Automatic Failover**: If one provider fails, automatically tries others
11
+
- 🐍 **Designed to Scale**: Use higher rate limits for free services by scaling across servers and network providers
10
12
11
13
## 🚀 Quick Start
12
14
@@ -30,6 +32,32 @@ bun run index.ts
30
32
31
33
The API will be available at `http://localhost:3000`
32
34
35
+
### Optional: Configure Paid APIs
36
+
37
+
Relying on free services alone is not ideal since requests can be throttled or blocked (DeepL in particular is very aggressive at this). So we support a variety of paid translation providers, which luckily have free tiers:
38
+
Azure AI Translator - 2M characters free per month
39
+
DeepL - 500K characters free per month
40
+
AWS - 2M characters free per month, 12 months only
0 commit comments