summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJack <[email protected]>2026-03-11 11:07:13 +0800
committerGitHub <[email protected]>2026-03-11 11:07:13 +0800
commit0843964eb31fc355de5b6132e6d20beadb31a4b4 (patch)
tree76969c75946f90cd4e492e4ac411cbec44dadb5d
parenta1b06d63c93e9a7cc5387c8fbaac8ea5621a34b6 (diff)
downloadopencode-0843964eb31fc355de5b6132e6d20beadb31a4b4.tar.gz
opencode-0843964eb31fc355de5b6132e6d20beadb31a4b4.zip
feat(web): use Feishu for Chinese community links (#16908)
Co-authored-by: Frank <[email protected]>
-rw-r--r--README.zh.md2
-rw-r--r--README.zht.md2
-rw-r--r--packages/console/app/src/component/footer.tsx8
-rw-r--r--packages/console/app/src/i18n/en.ts1
-rw-r--r--packages/console/app/src/i18n/zh.ts1
-rw-r--r--packages/console/app/src/i18n/zht.ts1
-rw-r--r--packages/console/app/src/routes/feishu.ts7
7 files changed, 19 insertions, 3 deletions
diff --git a/README.zh.md b/README.zh.md
index b11d9857c..0859ed11d 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -137,4 +137,4 @@ OpenCode 内置两种 Agent,可用 `Tab` 键快速切换:
---
-**加入我们的社区** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)
+**加入我们的社区** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true) | [X.com](https://x.com/opencode)
diff --git a/README.zht.md b/README.zht.md
index 573ca85ab..b7d8b8fc4 100644
--- a/README.zht.md
+++ b/README.zht.md
@@ -137,4 +137,4 @@ OpenCode 內建了兩種 Agent,您可以使用 `Tab` 鍵快速切換。
---
-**加入我們的社群** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)
+**加入我們的社群** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true) | [X.com](https://x.com/opencode)
diff --git a/packages/console/app/src/component/footer.tsx b/packages/console/app/src/component/footer.tsx
index d81bf3247..0ea370ac7 100644
--- a/packages/console/app/src/component/footer.tsx
+++ b/packages/console/app/src/component/footer.tsx
@@ -8,6 +8,12 @@ import { useI18n } from "~/context/i18n"
export function Footer() {
const language = useLanguage()
const i18n = useI18n()
+ const community = createMemo(() => {
+ const locale = language.locale()
+ return locale === "zh" || locale === "zht"
+ ? ({ key: "footer.feishu", link: language.route("/feishu") } as const)
+ : ({ key: "footer.discord", link: language.route("/discord") } as const)
+ })
const githubData = createAsync(() => github())
const starCount = createMemo(() =>
githubData()?.stars
@@ -32,7 +38,7 @@ export function Footer() {
<a href={language.route("/changelog")}>{i18n.t("footer.changelog")}</a>
</div>
<div data-slot="cell">
- <a href={language.route("/discord")}>{i18n.t("footer.discord")}</a>
+ <a href={community().link}>{i18n.t(community().key)}</a>
</div>
<div data-slot="cell">
<a href={config.social.twitter}>{i18n.t("footer.x")}</a>
diff --git a/packages/console/app/src/i18n/en.ts b/packages/console/app/src/i18n/en.ts
index 2a279757b..02d6126c4 100644
--- a/packages/console/app/src/i18n/en.ts
+++ b/packages/console/app/src/i18n/en.ts
@@ -21,6 +21,7 @@ export const dict = {
"footer.github": "GitHub",
"footer.docs": "Docs",
"footer.changelog": "Changelog",
+ "footer.feishu": "Feishu",
"footer.discord": "Discord",
"footer.x": "X",
diff --git a/packages/console/app/src/i18n/zh.ts b/packages/console/app/src/i18n/zh.ts
index 87ba1b245..e12fe7749 100644
--- a/packages/console/app/src/i18n/zh.ts
+++ b/packages/console/app/src/i18n/zh.ts
@@ -24,6 +24,7 @@ export const dict = {
"footer.github": "GitHub",
"footer.docs": "文档",
"footer.changelog": "更新日志",
+ "footer.feishu": "飞书",
"footer.discord": "Discord",
"footer.x": "X",
diff --git a/packages/console/app/src/i18n/zht.ts b/packages/console/app/src/i18n/zht.ts
index b3f1db012..b45f87156 100644
--- a/packages/console/app/src/i18n/zht.ts
+++ b/packages/console/app/src/i18n/zht.ts
@@ -24,6 +24,7 @@ export const dict = {
"footer.github": "GitHub",
"footer.docs": "文件",
"footer.changelog": "更新日誌",
+ "footer.feishu": "飞书",
"footer.discord": "Discord",
"footer.x": "X",
diff --git a/packages/console/app/src/routes/feishu.ts b/packages/console/app/src/routes/feishu.ts
new file mode 100644
index 000000000..35d2fcb0e
--- /dev/null
+++ b/packages/console/app/src/routes/feishu.ts
@@ -0,0 +1,7 @@
+import { redirect } from "@solidjs/router"
+
+export async function GET() {
+ return redirect(
+ "https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true",
+ )
+}