feat(i18n): add multilingual support for all sections

Implement internationalization across all components by adding lang prop and translation keys
Update data structure to use translation keys instead of hardcoded text
Add comprehensive English and Chinese translations in ui.ts
This commit is contained in:
joyzhao
2025-06-15 09:34:17 +08:00
parent 21c337a040
commit 720686751a
10 changed files with 415 additions and 145 deletions

View File

@@ -16,12 +16,12 @@ const lang = getLangFromUrl(Astro.url);
<Layout title="首页" lang={lang}>
<GlassHeader lang={lang} client:only="react" />
<main class="min-h-screen">
<HeroSection client:only="react" />
<ExperienceSection client:only="react" />
<SkillsSection client:only="react" />
<ProjectsSection client:only="react" />
<AwardsSection client:only="react" />
<EducationSection client:only="react" />
<HeroSection lang={lang} client:only="react" />
<ExperienceSection lang={lang} client:only="react" />
<SkillsSection lang={lang} client:only="react" />
<ProjectsSection lang={lang} client:only="react" />
<AwardsSection lang={lang} client:only="react" />
<EducationSection lang={lang} client:only="react" />
</main>
<Footer lang={lang} client:only="react" />
</Layout>