Skip to content

Commit 39853bb

Browse files
committed
Fix bilingual home navigation
1 parent 664a192 commit 39853bb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/components/Header.astro‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const isZh = lang === 'zh';
1010
<a class="brand" href={isZh ? '/zh/' : '/'}><span class="brand-mark" aria-hidden="true"></span>opensource_community</a>
1111
{variant === 'home' ? (
1212
<nav aria-label="Primary navigation">
13-
<a href="#work">Work</a>
14-
<a href="/reports/">Archive</a>
15-
<a class="contact-nav" href="mailto:luqilinheu@gmail.com">Contact ↗</a>
16-
<a class="language" href="/zh/">中文</a>
13+
<a href="#work">{isZh ? '成果' : 'Work'}</a>
14+
<a href="/reports/">{isZh ? '归档' : 'Archive'}</a>
15+
<a class="contact-nav" href="mailto:luqilinheu@gmail.com">{isZh ? '联系' : 'Contact'} ↗</a>
16+
<a class="language" href={isZh ? '/' : '/zh/'}>{isZh ? 'EN' : '中文'}</a>
1717
</nav>
1818
) : (
1919
<nav aria-label="Primary navigation">

0 commit comments

Comments
 (0)