From da02349581b6db899984ffa627d780c27882f068 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 9 Aug 2025 18:47:09 +0800 Subject: [PATCH] Update README to add Google Translate support Expanded documentation in both English and Chinese to reflect new support for Google Translate alongside DeepL. Updated endpoint descriptions, feature lists, and architecture diagrams to show multi-provider support and clarified that the service is a free alternative to traditional translation APIs. --- README.md | 22 +++++++++++++++++----- README.zh.md | 22 +++++++++++++++++----- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8b526c4..23ba75c 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,23 @@ ***[汉语](README.zh.md)*** [![License](https://img.shields.io/github/license/xixu-me/deeplx)](#-license) -[![Deployment Status](https://img.shields.io/website?url=https://dplx.xi-xu.me/translate&label=Online%20Service)](#-online-service) +[![Deployment Status](https://img.shields.io/website?url=https://dplx.xi-xu.me/deepl&label=Online%20Service)](#-online-service) [![Cloudflare Workers](https://img.shields.io/badge/Cloudflare-Workers-orange?logo=cloudflare)](#-self-deployment) -Currently, the best serverless implementation of [DeepLX](https://github.com/OwO-Network/DeepLX), optimized for Cloudflare Workers. Through intelligent proxy endpoint rotation, advanced rate limiting algorithms, and circuit breaker mechanisms, it almost completely avoids HTTP 429 errors, providing higher request rate limits and lower network round-trip times than the DeepL API. +Currently, the best serverless implementation of [DeepLX](https://github.com/OwO-Network/DeepLX), optimized for Cloudflare Workers. Through intelligent proxy endpoint rotation, advanced rate limiting algorithms, and circuit breaker mechanisms, it almost completely avoids HTTP 429 errors, providing higher request rate limits and lower network round-trip times than traditional translation APIs. **Now supports both DeepL and Google Translate services.** -## 🆓 **Completely FREE Alternative to DeepL API** +## 🆓 **Completely FREE Alternative to Translation APIs** -**Unlike the paid DeepL API, DeepLX is completely free to use** - no API keys, no subscription fees, no usage limits. Simply deploy once and enjoy unlimited translation requests without any cost concerns. +**Unlike paid translation APIs, DeepLX is completely free to use** - no API keys, no subscription fees, no usage limits. Simply deploy once and enjoy unlimited translation requests without any cost concerns. ## ✨ Features & Performance Advantages +### 🌐 Multi-Provider Support + +- **DeepL Translation** (`/deepl`) - High-quality translation with advanced AI +- **Google Translate** (`/google`) - Wide language support and fast processing +- **Legacy Compatibility** (`/translate`) - Backward compatible endpoint using DeepL + ### 🚀 Performance Advantages DeepLX has significant improvements in performance and stability compared to the DeepL API. Here are key metric comparisons based on specific network environments: @@ -70,6 +76,8 @@ graph TB Router[Hono Router] subgraph "API Endpoints" + DeepL[POST /deepl] + Google[POST /google] Translate[POST /translate] Debug[POST /debug] end @@ -97,9 +105,13 @@ graph TB %% Connections APIClient --> Router + Router --> DeepL + Router --> Google Router --> Translate Router --> Debug + DeepL --> Security + Google --> Security Translate --> Security Security --> RateLimit RateLimit --> Cache @@ -120,7 +132,7 @@ graph TB classDef externalClass fill:#ffebee,stroke:#d32f2f class APIClient clientClass - class Router,Translate,Debug workerClass + class Router,DeepL,Google,Translate,Debug workerClass class Security,RateLimit,Cache,Query,Proxy coreClass class CacheKV,RateLimitKV,Analytics storageClass class XDPL externalClass diff --git a/README.zh.md b/README.zh.md index 6d8403e..535fa81 100644 --- a/README.zh.md +++ b/README.zh.md @@ -3,17 +3,23 @@ ***[English](README.md)*** [![许可证](https://img.shields.io/github/license/xixu-me/deeplx)](#-许可证) -[![部署状态](https://img.shields.io/website?url=https://dplx.xi-xu.me/translate&label=在线服务)](#-在线服务) +[![部署状态](https://img.shields.io/website?url=https://dplx.xi-xu.me/deepl&label=在线服务)](#-在线服务) [![Cloudflare Workers](https://img.shields.io/badge/Cloudflare-Workers-orange?logo=cloudflare)](#-自部署) -目前 [DeepLX](https://github.com/OwO-Network/DeepLX) 的最佳无服务器实现,专为 Cloudflare Workers 优化设计。通过智能代理端点轮换、高级限流算法和熔断器机制,几乎完全避免了 HTTP 429 错误,提供比 DeepL API 更高的请求速率限制和更低的网络往返时间。 +目前 [DeepLX](https://github.com/OwO-Network/DeepLX) 的最佳无服务器实现,专为 Cloudflare Workers 优化设计。通过智能代理端点轮换、高级限流算法和熔断器机制,几乎完全避免了 HTTP 429 错误,提供比传统翻译 API 更高的请求速率限制和更低的网络往返时间。**现已支持 DeepL 和 Google 翻译服务。** -## 🆓 **相较于 DeepL API 完全免费** +## 🆓 **相较于翻译 API 完全免费** -**与付费的 DeepL API 不同,DeepLX 完全免费使用** - 无需 API 密钥、无订阅费用、无使用限制。只需部署一次,即可享受无限制的翻译请求,无需担心任何费用问题。 +**与付费的翻译 API 不同,DeepLX 完全免费使用** - 无需 API 密钥、无订阅费用、无使用限制。只需部署一次,即可享受无限制的翻译请求,无需担心任何费用问题。 ## ✨ 特性与性能优势 +### 🌐 多服务提供商支持 + +- **DeepL 翻译** (`/deepl`) - 高质量的 AI 翻译 +- **Google 翻译** (`/google`) - 广泛的语言支持和快速处理 +- **传统兼容性** (`/translate`) - 使用 DeepL 的向后兼容端点 + ### 🚀 性能优势 DeepLX 在性能和稳定性方面相较于 DeepL API 有显著提升,以下是基于特定网络环境下的关键指标对比: @@ -70,6 +76,8 @@ graph TB Router[Hono 路由器] subgraph "API 端点" + DeepL[POST /deepl] + Google[POST /google] Translate[POST /translate] Debug[POST /debug] end @@ -97,9 +105,13 @@ graph TB %% 连接关系 Client --> Router + Router --> DeepL + Router --> Google Router --> Translate Router --> Debug + DeepL --> Security + Google --> Security Translate --> Security Security --> RateLimit RateLimit --> Cache @@ -120,7 +132,7 @@ graph TB classDef externalClass fill:#ffebee,stroke:#d32f2f class Client clientClass - class Router,Translate,Debug workerClass + class Router,DeepL,Google,Translate,Debug workerClass class Security,RateLimit,Cache,Query,Proxy coreClass class CacheKV,RateLimitKV,Analytics storageClass class XDPL externalClass