Commit a12c77f
committed
feat(i18n): refactor i18n system with URL-based localization support
- Refactored existing i18n implementation to support language codes in URLs
- Redesigned routing logic to handle language-aware navigation
- Added new LanguageAwareLink component for consistent language-aware linking
- Implemented AdvancedLanguageRouter for handling language-specific routing
- Added middleware for URL-based language detection and redirection
- Updated all existing components to work with new i18n system
- Added comprehensive language utilities and services
- Added new locale files for multiple languages (en-IN, zh-CN, zh-TC)
- Updated layout components to support language switching
- Added SEO support for multilingual content
Affected components:
- LanguageAwareLink
- AdvancedLanguageRouter
- LanguageSwitcher
- LanguageSEO
- LanguageAwareHeader
- All locale files
- Routing system
- Middleware layers
- Utility functions
BREAKING CHANGE:
- All route navigation must now use LanguageAwareLink instead of regular links
- Existing URLs will be redirected to include language code
- Routing logic has fundamentally changed to support language prefixes1 parent cbd3bca commit a12c77f
71 files changed
Lines changed: 9481 additions & 893 deletions
File tree
- .github/workflows
- cex
- src
- components
- LanguageAware
- LanguageRouter
- LanguageSwitcher
- SEO
- contexts
- hooks
- i18n
- analytics
- config
- hooks
- locales
- en-IN
- zh-CN
- zh-TC
- middleware
- services
- utils
- layouts
- pages
- router
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 | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments