Commit e5d9fee
authored
feat(i18n): add multi-language support with next-intl (#1775)
1. Integrate next-intl/routing for locale-based routing
2. Add translation files for Chinese, English, and Japanese
3. Replace hardcoded Chinese strings with translation keys across components
4. Implement LocaleSwitcherFAB for language switching in footer
5. Update middleware to handle Accept-Language header and locale cookies
6. Migrate all pages to [locale]/ route structure
7. Replace next/link with enhanced Link/Router for locale-aware navigation1 parent f016fb2 commit e5d9fee
142 files changed
Lines changed: 4782 additions & 1040 deletions
File tree
- .github/workflows
- src
- atoms
- collections
- types
- components
- app
- Error
- HoC
- If
- Meta
- Seo
- WrapperNextPage
- common
- AckRead
- KamiMarkdown/renderers
- RelativeTime
- in-page
- Friend
- ApplyLink
- FriendSection
- Home
- SectionNews
- Note
- NoteActionBar
- NotePasswordConfirm
- NoteTimelineList
- NoteTopic
- WarningOverlay
- Post
- Outdate
- PostBlock
- Project
- Recently
- RefPreview
- SendBox
- layouts
- ArticleLayout
- SiteLayout
- Header
- ui
- AnimateChangeInHeight
- Button
- FloatPopover
- Icons
- ImageTagPreview
- Input
- Markdown
- components/gallery
- parsers
- renderers
- Modal
- Overlay
- widgets
- ArticleAction
- CodeHighlighter
- Comment
- renderers
- Copyright
- Player
- Search
- SubscribeBell
- Subscribe
- Toast
- Toc
- xLogInfo
- xLogSummary
- hooks
- app
- common
- ui
- i18n
- messages
- pages
- [locale]
- [page]
- categories
- favorite
- friends
- login
- notes
- topics
- posts
- [category]
- preview
- projects
- recently
- says
- timeline
- provider
- socket
- utils
- third/qp
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
0 commit comments