diff --git a/i18n/en/code.json b/i18n/en/code.json index 32c97c5..a3509bf 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1556,11 +1556,11 @@ "message": "GitHub" }, "home.hero.tag.email": { - "message": "Email, click to copy" - }, - "home.hero.tag.emailName": { "message": "Email" }, + "home.hero.tag.emailHint": { + "message": "Click to copy the email address" + }, "home.hero.tag.copied": { "message": "Copied ✓" }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 99bb213..1f399d4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -84,6 +84,7 @@ function HeroTags(): JSX.Element { label: string; icon: string; href?: string; + hint?: string; onClick?: () => void; }> = [ { @@ -110,6 +111,7 @@ function HeroTags(): JSX.Element { ? translate({ id: 'home.hero.tag.copied', message: '已复制 ✓' }) : translate({ id: 'home.hero.tag.email', message: '邮箱' }), icon: MAIL_ICON, + hint: translate({ id: 'home.hero.tag.emailHint', message: '点击复制邮箱地址' }), onClick: () => void copyEmail(), }, { @@ -164,7 +166,7 @@ function HeroTags(): JSX.Element { } return ( );