Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 7f0a83f

Browse files
authored
Merge pull request #7 from fishshi/main
Add Chinese translation
2 parents 7ca2dad + 743dfce commit 7f0a83f

File tree

3 files changed

+104
-11
lines changed

3 files changed

+104
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# twinny-docs
22

3-
Source code for [twinny](https://rjmacarthy.github.io/twinny-docs/) documentation website.
3+
Source code for [twinny](https://twinnydotdev.github.io/twinny-docs/) documentation website.

astro.config.mjs

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,65 @@ import tailwind from '@astrojs/tailwind';
44

55
// https://astro.build/config
66
export default defineConfig({
7-
site: 'https://github.com/rjmacarthy/twinny-docs.github.io',
7+
site: 'https://twinnydotdev.github.io',
88
base: '/twinny-docs',
99
integrations: [
1010
starlight({
1111
title: 'twinny',
12+
defaultLocale: 'root',
13+
locales: {
14+
root: { label: 'English', lang: 'en' },
15+
'zh-cn': { label: '简体中文', lang: 'zh-CN' },
16+
},
1217
social: {
13-
github: 'https://github.com/rjmacarthy/twinny',
18+
github: 'https://github.com/twinnydotdev/twinny',
1419
'x.com': 'https://x.com/twinnydotdev',
1520
},
1621
sidebar: [
1722
{
1823
label: '/',
1924
items: [
20-
{ label: 'Quick start', link: '/general/quick-start' },
21-
{ label: 'Inference providers', link: '/general/providers' },
22-
{ label: 'Supported models', link: '/general/supported-models' },
23-
{ label: 'Chat', link: '/general/chat' },
24-
{ label: 'Fill in middle', link: '/general/fill-in-middle' },
25-
{ label: 'Keyboard shortcuts', link: '/general/keyboard-shortcuts' },
26-
{ label: 'Symmetry Network', link: '/general/symmetry' },
27-
{ label: 'Support twinny', link: '/general/support-twinny' },
25+
{
26+
label: 'Quick start', link: '/general/quick-start',
27+
translations: {
28+
'zh-CN': '快速开始'
29+
}
30+
},
31+
{ label: 'Inference providers', link: '/general/providers',
32+
translations: {
33+
'zh-CN': '推理提供者'
34+
}
35+
},
36+
{ label: 'Supported models', link: '/general/supported-models',
37+
translations: {
38+
'zh-CN': '支持的模型'
39+
}
40+
},
41+
{ label: 'Chat', link: '/general/chat',
42+
translations: {
43+
'zh-CN': '对话'
44+
}
45+
},
46+
{ label: 'Fill in middle', link: '/general/fill-in-middle',
47+
translations: {
48+
'zh-CN': '自动补全'
49+
}
50+
},
51+
{ label: 'Keyboard shortcuts', link: '/general/keyboard-shortcuts',
52+
translations: {
53+
'zh-CN': '键盘快捷键'
54+
}
55+
},
56+
{ label: 'Symmetry Network', link: '/general/symmetry',
57+
translations: {
58+
'zh-CN': 'Symmetry网络'
59+
}
60+
},
61+
{ label: 'Support twinny', link: '/general/support-twinny',
62+
translations: {
63+
'zh-CN': '支持twinny'
64+
}
65+
},
2866
],
2967
},
3068
],

src/content/docs/zh-cn/index.mdx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: 欢迎来到 twinny
3+
description: Visual Studio Code 的免费私有 AI 扩展。有自动补全代码、与 AI 对话等功能。
4+
template: splash
5+
hero:
6+
title: |
7+
twinny
8+
image:
9+
file: ../../../assets/twinny.svg
10+
tagline: |
11+
Visual Studio Code 的免费私有 AI 扩展。有自动补全代码、与 AI 对话等功能。
12+
actions:
13+
- text: 开始使用
14+
link: /twinny-docs/zh-cn/general/quick-start
15+
icon: right-arrow
16+
variant: secondary
17+
---
18+
19+
import { Card, CardGrid, LinkCard } from "@astrojs/starlight/components";
20+
21+
## 了解更多
22+
23+
<CardGrid stagger>
24+
<LinkCard
25+
title="快速开始"
26+
description="一个针对使用 twinny 的快速入门指南"
27+
href="/twinny-docs/zh-cn/general/quick-start"
28+
/>
29+
<LinkCard
30+
title="推理提供者"
31+
description="了解如何在 twinny 中使用推理提供者"
32+
href="/twinny-docs/zh-cn/general/providers"
33+
></LinkCard>
34+
<LinkCard
35+
title="支持的模型"
36+
description="了解 twinny 支持的 AI 模型"
37+
href="/twinny-docs/zh-cn/general/supported-models"
38+
></LinkCard>
39+
<LinkCard
40+
title="Symmetry"
41+
description="去中心化的 AI 推理网络"
42+
href="/twinny-docs/zh-cn/general/symmetry"
43+
></LinkCard>
44+
</CardGrid>
45+
46+
## 主要功能
47+
48+
<CardGrid stagger>
49+
<Card title="代码补全" icon="seti:json">
50+
twinny 为你的代码提供自动补全建议
51+
</Card>
52+
<Card title="Chat with AI" icon="pencil">
53+
twinny 提供一个聊天界面来与私人 AI 互动
54+
</Card>
55+
</CardGrid>

0 commit comments

Comments
 (0)