File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : " 统一工具链"
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import styles from './Hero.module.scss';
77const githubUrl = 'https://github.com/rstackjs/rstack-cli' ;
88const 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 >
You can’t perform that action at this time.
0 commit comments