mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 22:05:51 +03:00
[PR #587] [MERGED] feat: |Worker| multi language add messages #644
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#644
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/587
Author: @dreamhunter2333
Created: 2/19/2025
Status: ✅ Merged
Merged: 2/19/2025
Merged by: @dreamhunter2333
Base:
main← Head:feature/dev📝 Commits (1)
9af4321feat: |Worker| multi language add messages📊 Changes
6 files changed (+95 additions, -29 deletions)
View changed files
📝
worker/src/i18n/en.ts(+18 -0)📝
worker/src/i18n/type.ts(+18 -0)📝
worker/src/i18n/zh.ts(+19 -1)📝
worker/src/user_api/oauth2.ts(+14 -9)📝
worker/src/user_api/settings.ts(+4 -1)📝
worker/src/user_api/user.ts(+22 -18)📄 Description
PR Type
enhancement, bug fix
Description
Added multi-language support for user-related messages.
Enhanced OAuth2 and user registration error handling.
Improved localization for English and Chinese languages.
Refactored user API to use localized messages.
Changes walkthrough 📝
en.ts
Add English user-related messagesworker/src/i18n/en.ts
type.ts
Update type definitions for new messagesworker/src/i18n/type.ts
zh.ts
Add Chinese user-related messagesworker/src/i18n/zh.ts
oauth2.ts
Localize OAuth2 error messagesworker/src/user_api/oauth2.ts
settings.ts
Localize user settings error messagesworker/src/user_api/settings.ts
user.ts
Localize user registration and login messagesworker/src/user_api/user.ts
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.