mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 13:55:53 +03:00
[PR #797] [MERGED] feat: add i18n support for backend API and Telegram bot #774
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#774
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/797
Author: @dreamhunter2333
Created: 12/29/2025
Status: ✅ Merged
Merged: 12/30/2025
Merged by: @dreamhunter2333
Base:
main← Head:feature/email📝 Commits (2)
29cd746feat: add i18n support for backend API and Telegram botb483523fix: improve Telegram bot language preference feature📊 Changes
25 files changed (+762 additions, -276 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
CHANGELOG_EN.md(+2 -0)📝
worker/src/admin_api/admin_user_api.ts(+18 -15)📝
worker/src/admin_api/cleanup_api.ts(+30 -10)📝
worker/src/admin_api/index.ts(+20 -15)📝
worker/src/admin_api/ip_blacklist_settings.ts(+11 -18)📝
worker/src/common.ts(+20 -15)📝
worker/src/i18n/en.ts(+123 -0)📝
worker/src/i18n/type.ts(+123 -0)📝
worker/src/i18n/zh.ts(+123 -0)📝
worker/src/mails_api/address_auth.ts(+2 -4)📝
worker/src/mails_api/auto_reply.ts(+8 -5)📝
worker/src/mails_api/index.ts(+7 -12)📝
worker/src/mails_api/send_mail_api.ts(+18 -16)📝
worker/src/mails_api/webhook_settings.ts(+5 -2)📝
worker/src/telegram_api/common.ts(+18 -13)📝
worker/src/telegram_api/index.ts(+8 -5)📝
worker/src/telegram_api/miniapp.ts(+8 -7)📝
worker/src/telegram_api/telegram.ts(+169 -95)📝
worker/src/types.d.ts(+1 -0)...and 5 more files
📄 Description
User description
Summary
/lang命令设置语言偏好Changes
Test plan
🤖 Generated with Claude Code
PR Type
enhancement, bug_fix, documentation
Description
Added comprehensive i18n support for backend API and Telegram bot.
/langcommand for Telegram bot to set language preferences.Refactored error handling to utilize i18n messages across APIs.
Updated documentation and changelogs to reflect i18n and Telegram enhancements.
Changes walkthrough 📝
16 files
Add i18n support and `/lang` command for Telegram botIntegrate i18n for error messages in address bindingRefactor common utilities to support i18n messagesAdd i18n support for admin API error handlingRefactor mail API to use i18n for error messagesAdd i18n support for SQL cleanup validation and error handlingIntegrate i18n for passkey-related operationsAdd i18n support for auto-reply featureAdd i18n support for webhook settings validationRefactor user API to include i18n error messagesAdd i18n support for OAuth2-related error messagesAdd i18n support for Telegram bot initializationRefactor address authentication to use i18n messagesAdd i18n support for user settings APIAdd i18n support for Telegram mini-app integrationAdd i18n support for IP blacklist settings validation4 files
Add Chinese translations for new i18n messagesAdd English translations for new i18n messagesExtend i18n type definitions for new messagesUpdate changelog to include i18n and Telegram features4 files
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.