Skip to content

Commit a4329c3

Browse files
docs: translate top nav (#586)
Co-authored-by: M Haidar Hanif <git@mhaidarhanif.com>
1 parent 16ac8a8 commit a4329c3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/Layout/TopNav/TopNav.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export default function TopNav({
300300
<div className="flex items-center -space-x-2.5 xs:space-x-0 ">
301301
<div className="flex md:hidden">
302302
<button
303-
aria-label="Search"
303+
aria-label="Cari"
304304
type="button"
305305
className="active:scale-95 transition-transform flex md:hidden w-12 h-12 rounded-full items-center justify-center hover:bg-secondary-button hover:dark:bg-secondary-button-dark outline-link"
306306
onClick={onOpenSearch}>
@@ -310,7 +310,7 @@ export default function TopNav({
310310
<div className="flex dark:hidden">
311311
<button
312312
type="button"
313-
aria-label="Use Dark Mode"
313+
aria-label="Gunakan Mode Gelap"
314314
onClick={() => {
315315
window.__setPreferredTheme('dark');
316316
}}
@@ -321,7 +321,7 @@ export default function TopNav({
321321
<div className="hidden dark:flex">
322322
<button
323323
type="button"
324-
aria-label="Use Light Mode"
324+
aria-label="Gunakan Mode Terang"
325325
onClick={() => {
326326
window.__setPreferredTheme('light');
327327
}}
@@ -334,7 +334,7 @@ export default function TopNav({
334334
href="https://github.com/facebook/react/releases"
335335
target="_blank"
336336
rel="noreferrer noopener"
337-
aria-label="Open on GitHub"
337+
aria-label="Buka di GitHub"
338338
className="active:scale-95 transition-transform flex w-12 h-12 rounded-full items-center justify-center hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link">
339339
{githubIcon}
340340
</Link>
@@ -361,17 +361,17 @@ export default function TopNav({
361361
<Suspense fallback={null}>
362362
<div className="pl-3 xs:pl-5 xs:gap-0.5 xs:text-base overflow-x-auto flex flex-row lg:hidden text-base font-bold text-secondary dark:text-secondary-dark">
363363
<NavItem isActive={section === 'learn'} url="/learn">
364-
Learn
364+
Belajar
365365
</NavItem>
366366
<NavItem
367367
isActive={section === 'reference'}
368368
url="/reference/react">
369-
Reference
369+
Referensi
370370
</NavItem>
371371
<NavItem
372372
isActive={section === 'community'}
373373
url="/community">
374-
Community
374+
Komunitas
375375
</NavItem>
376376
<NavItem isActive={section === 'blog'} url="/blog">
377377
Blog

0 commit comments

Comments
 (0)