[PR #845] [MERGED] docs: fix i18n language switch path error #802

Closed
opened 2026-02-26 21:33:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/845
Author: @dreamhunter2333
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @dreamhunter2333

Base: mainHead: feature/email


📝 Commits (1)

  • 9553560 docs: fix i18n language switch by using dual prefix locales

📊 Changes

6 files changed (+51 additions, -5 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 vitepress-docs/docs/.vitepress/config.ts (+1 -1)
📝 vitepress-docs/docs/.vitepress/zh.ts (+4 -4)
vitepress-docs/docs/zh/index.md (+31 -0)
vitepress-docs/docs/zh/reference.md (+6 -0)
vitepress-docs/docs/zh/status.md (+8 -0)

📄 Description

Summary

  • Fix VitePress i18n language switch generating incorrect paths like /en/zh/guide/...
  • Change Chinese locale from root to zh prefix, enabling correct /zh//en/ switching
  • Add missing zh/index.md, zh/status.md, zh/reference.md for the new locale structure
  • Update CHANGELOG

Test plan

  • Visit / and verify the Chinese homepage displays correctly
  • Visit /zh/guide/feature/telegram and switch to English, verify it goes to /en/guide/feature/telegram
  • Visit /en/guide/feature/telegram and switch to Chinese, verify it goes to /zh/guide/feature/telegram
  • Verify /status and /reference pages still work

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/845 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/email` --- ### 📝 Commits (1) - [`9553560`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/955356066180ede38cfa43ce2b7c7b9e78953b10) docs: fix i18n language switch by using dual prefix locales ### 📊 Changes **6 files changed** (+51 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `vitepress-docs/docs/.vitepress/config.ts` (+1 -1) 📝 `vitepress-docs/docs/.vitepress/zh.ts` (+4 -4) ➕ `vitepress-docs/docs/zh/index.md` (+31 -0) ➕ `vitepress-docs/docs/zh/reference.md` (+6 -0) ➕ `vitepress-docs/docs/zh/status.md` (+8 -0) </details> ### 📄 Description ## Summary - Fix VitePress i18n language switch generating incorrect paths like `/en/zh/guide/...` - Change Chinese locale from `root` to `zh` prefix, enabling correct `/zh/` ↔ `/en/` switching - Add missing `zh/index.md`, `zh/status.md`, `zh/reference.md` for the new locale structure - Update CHANGELOG ## Test plan - [ ] Visit `/` and verify the Chinese homepage displays correctly - [ ] Visit `/zh/guide/feature/telegram` and switch to English, verify it goes to `/en/guide/feature/telegram` - [ ] Visit `/en/guide/feature/telegram` and switch to Chinese, verify it goes to `/zh/guide/feature/telegram` - [ ] Verify `/status` and `/reference` pages still work 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:33:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#802
No description provided.