diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts index b71dff8..944bef6 100644 --- a/src/i18n/translations.ts +++ b/src/i18n/translations.ts @@ -19,6 +19,12 @@ export const translations = { description: 'Full Stack Developer specializing in React, Node.js, and modern web technologies', }, hero: { + greeting: "Hello, I'm", + viewProjects: 'View Projects', + contactMe: 'Contact Me', + lookingForJob: 'Looking for a Frontend/TS Full-stack Engineer (Remote)? Contact me!', + digitalNomad: 'Exploring the freelance journey, striving to become a digital nomad', + contactInfo: 'Contact Me', githubLink: 'GitHub Profile', linkedinLink: 'LinkedIn Profile', }, @@ -44,6 +50,16 @@ export const translations = { blog: { slogan: 'This is where innovative thinking meets complex problems.', }, + services: { + title: 'What I Do', + viewAll: 'Learn More', + }, + about: { + title: 'About Me', + sectionTitle: 'About Me', + learnMore: 'Learn More About Me', + toolbox: 'My Toolbox', + }, }, zh: { nav: { @@ -59,6 +75,12 @@ export const translations = { description: '专注于 React、Node.js 和现代 Web 技术的全栈开发者', }, hero: { + greeting: '你好,我是', + viewProjects: '查看项目', + contactMe: '联系我', + lookingForJob: '正在寻找前端/TS 全栈工程师(远程)?联系我!', + digitalNomad: '探索自由职业道路,努力成为数字游民', + contactInfo: '联系我', githubLink: 'GitHub 主页', linkedinLink: 'LinkedIn 主页', }, @@ -69,7 +91,7 @@ export const translations = { tag: { business: '商业项目', opensource: '开源项目', - personal: '个人产品', + personal: '个人项目', portfolio: '作品集', ecommerce: '电子商务', }, @@ -84,6 +106,16 @@ export const translations = { blog: { slogan: '这里是创新思维与复杂问题相遇的地方。', }, + services: { + title: '我能做什么', + viewAll: '了解更多', + }, + about: { + title: '关于我', + sectionTitle: '关于我', + learnMore: '了解更多', + toolbox: '我的工具箱', + }, }, } as const; diff --git a/src/pages/index.astro b/src/pages/index.astro index e5d50a8..602768c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -32,7 +32,7 @@ const pageTitle = t('site.title'); - Hello World! I'm + {t('hero.greeting')} {personalInfo.name} @@ -72,8 +72,8 @@ const pageTitle = t('site.title');
-

Looking for a Frontend/TS Full-stack Engineer (Remote)? Contact me!

-

Exploring the freelance journey, striving to become a digital nomad

+

{t('hero.lookingForJob')}

+

{t('hero.digitalNomad')}

@@ -85,7 +85,7 @@ const pageTitle = t('site.title'); - View Projects + {t('hero.viewProjects')} - Contact Me + {t('hero.contactMe')} @@ -204,7 +204,7 @@ const pageTitle = t('site.title');

- Services I Offer + {t('services.title')}

@@ -235,7 +235,7 @@ const pageTitle = t('site.title'); - 查看所有服务 + {t('services.viewAll')}
@@ -251,7 +251,7 @@ const pageTitle = t('site.title');

- About Me + {t('about.title')}

@@ -263,10 +263,10 @@ const pageTitle = t('site.title');

👋 - About Me + {t('about.sectionTitle')}

- {personalInfo.about.en.map((paragraph) => ( + {personalInfo.about[lang].map((paragraph) => (

{paragraph}

@@ -277,7 +277,7 @@ const pageTitle = t('site.title'); - 了解更多关于我 + {t('about.learnMore')}
@@ -326,7 +326,7 @@ const pageTitle = t('site.title');

💻 - My Toolbox + {t('about.toolbox')}

diff --git a/src/pages/zh/index.astro b/src/pages/zh/index.astro index ec9d2da..5f8e3a0 100644 --- a/src/pages/zh/index.astro +++ b/src/pages/zh/index.astro @@ -32,7 +32,7 @@ const pageTitle = t('site.title'); - 你好世界!我是 + {t('hero.greeting')} {personalInfo.name}
@@ -72,8 +72,8 @@ const pageTitle = t('site.title');
-

如果你正在寻找一名前端/Ts全栈工程师(远程工作),请联系站长!

-

探索自由职业者之路,努力成为数字游民中的一员

+

{t('hero.lookingForJob')}

+

{t('hero.digitalNomad')}

@@ -85,7 +85,7 @@ const pageTitle = t('site.title'); - 查看项目 + {t('hero.viewProjects')} - 联系我 + {t('hero.contactMe')}
@@ -204,7 +204,7 @@ const pageTitle = t('site.title');

- 我提供的服务 + {t('services.title')}

@@ -235,7 +235,7 @@ const pageTitle = t('site.title'); - 查看所有服务 + {t('services.viewAll')}
@@ -251,7 +251,7 @@ const pageTitle = t('site.title');

- 关于我 + {t('about.title')}

@@ -263,10 +263,10 @@ const pageTitle = t('site.title');

👋 - 关于我 + {t('about.sectionTitle')}

- {personalInfo.about.zh.map((paragraph) => ( + {personalInfo.about[lang].map((paragraph) => (

{paragraph}

@@ -278,7 +278,7 @@ const pageTitle = t('site.title'); - 了解更多关于我 + {t('about.learnMore')}
@@ -327,7 +327,7 @@ const pageTitle = t('site.title');

💻 -我的工具箱 + {t('about.toolbox')}