Skip to content

Commit

Permalink
header title
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <laixy7@gmail.com>
  • Loading branch information
coder-sett committed Nov 21, 2023
1 parent ca4790c commit e779616
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"header.explore": {
"message": "Explore"
},
"header.projects": {
"message": "Projects"
},
"header.docs": {
"message": "Docs"
},
"header.metrics_models": {
"message": "Metrics Models"
},
Expand Down
6 changes: 6 additions & 0 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"header.explore": {
"message": "探索"
},
"header.projects": {
"message": "项目"
},
"header.docs": {
"message": "文档"
},
"header.metrics_models": {
"message": "评估模型"
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/MobileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ const MobileHeader: React.FC<PropsWithChildren> = ({ children }) => {
legacyBehavior: true,
},
{
title: translate({ id: 'header.explore' }),
title: translate({ id: 'header.projects' }),
href: '/explore',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.metrics_models' }),
title: translate({ id: 'header.Docs' }),
href: '/docs/dimensions-define',
icon: null,
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Header: React.FC<{
href="/explore"
className={'mx-6 px-2.5 font-medium text-white 2xl:mx-2'}
>
<Translate id={'header.explore'} />
<Translate id={'header.projects'} />
</a>

<Link
Expand All @@ -43,7 +43,7 @@ const Header: React.FC<{
'mx-6 flex-shrink-0 px-2.5 font-medium text-white 2xl:mx-2'
}
>
<Translate id={'header.metrics_models'} />
<Translate id={'header.Docs'} />
</Link>

<CommunityDropdown />
Expand Down

1 comment on commit e779616

@vercel
Copy link

@vercel vercel bot commented on e779616 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.