feat(i18n): implement astro i18n integration and refactor locale handling
- Add i18n configuration to astro.config.mjs with default locale and routing - Refactor language handling to use Astro.currentLocale instead of URL parsing - Update tsconfig to include only necessary files for better type checking - Improve LanguageSwitcher to handle routing based on astro i18n config - Add new translation keys and update components to use dynamic titles - Simplify MotionWrapper component by removing unused default animations
This commit is contained in:
@@ -16,6 +16,7 @@ export const ui = {
|
||||
'nav.education': 'Education',
|
||||
'footer.rights': 'All rights reserved.',
|
||||
'site.title': 'My Portfolio',
|
||||
'page.home.title': 'Home',
|
||||
|
||||
// Personal Info
|
||||
'personal.name': 'Rishikesh S',
|
||||
@@ -158,6 +159,7 @@ export const ui = {
|
||||
'nav.education': '教育背景',
|
||||
'footer.rights': '版权所有。',
|
||||
'site.title': '我的作品集',
|
||||
'page.home.title': '首页',
|
||||
|
||||
// Personal Info
|
||||
'personal.name': 'Rishikesh S',
|
||||
|
||||
Reference in New Issue
Block a user