Skip to content

Commit d7bbcfc

Browse files
committed
fix
1 parent 4c0cf6c commit d7bbcfc

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

website/i18n.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"en": "GitHub",
1212
"zh": "GitHub"
1313
},
14+
"latestRelease": {
15+
"en": "Latest release",
16+
"zh": "最新版本"
17+
},
1418
"title": {
1519
"en": "Unified Toolchain for",
1620
"zh": "统一工具链"

website/theme/components/Hero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import styles from './Hero.module.scss';
77
const githubUrl = 'https://github.com/rstackjs/rstack-cli';
88
const releasesUrl = `${githubUrl}/releases`;
99

10-
function ReleaseLink() {
10+
function ReleaseLink({ label }: { label: string }) {
1111
return (
1212
<a
1313
className={styles.releaseLink}
1414
href={releasesUrl}
1515
target="_blank"
1616
rel="noopener noreferrer"
1717
>
18-
Latest release v{rstackPackage.version}
18+
{label} v{rstackPackage.version}
1919
</a>
2020
);
2121
}
@@ -27,7 +27,7 @@ export function Hero() {
2727
return (
2828
<section className={styles.hero} aria-labelledby="home-hero-title">
2929
<div className={styles.inner}>
30-
<ReleaseLink />
30+
<ReleaseLink label={t('latestRelease')} />
3131

3232
<h1 id="home-hero-title" className={styles.title}>
3333
<span>{t('title')}</span>

0 commit comments

Comments
 (0)