Skip to content

Commit 7640d76

Browse files
committed
fix: nav links
1 parent 475a797 commit 7640d76

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

app/components/app-header.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ import { Logo } from "./logo";
1010
import { ThemeToggle } from "./theme-toggle";
1111

1212
export default function AppHeader() {
13-
const { tw } = useI18n();
13+
const { tw, locale } = useI18n();
1414

1515
const navs = [
1616
{
1717
label: tw('产品功能', 'Features'),
18-
url: 'https://docs.rustfs.com/docs/features',
18+
url: `https://docs.rustfs.com/${locale}/features/distributed/`,
1919
},
2020
{
2121
label: tw('架构', 'Architecture'),
22-
url: 'https://docs.rustfs.com/docs/architecture',
22+
url: `https://docs.rustfs.com/${locale}/architecture.html`,
2323
},
2424
{
2525
label: tw('解决方案', 'Solutions'),
26-
url: 'https://docs.rustfs.com/docs/solutions',
27-
},
28-
{
29-
label: tw('集成', 'Integrations'),
30-
url: 'https://docs.rustfs.com/docs/intergrations'
26+
url: `https://docs.rustfs.com/${locale}/features/data-lake/`,
3127
},
28+
// {
29+
// label: tw('集成', 'Integrations'),
30+
// url: `https://docs.rustfs.com/${locale}/intergrations`
31+
// },
3232
{
3333
label: tw('AI 支持', 'AI'),
34-
url: 'https://docs.rustfs.com/docs/ai'
34+
url: `https://docs.rustfs.com/${locale}/features/ai`
3535
},
3636
{
3737
label: tw('文档', 'Documentation'),
38-
url: 'https://docs.rustfs.com/docs'
38+
url: tw('https://docs.rustfs.com/zh/', 'https://docs.rustfs.com/')
3939
},
4040
// {
4141
// label: '博客',
@@ -47,7 +47,7 @@ export default function AppHeader() {
4747
},
4848
{
4949
label: tw('关于我们', 'About Us'),
50-
url: '/about'
50+
url: `https://docs.rustfs.com/${locale}/about`
5151
}
5252
]
5353

0 commit comments

Comments
 (0)