Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(docs): browser changelog respects lang instead of falling back to GitHub

t8y275fcd253cb43
diff --git a/docs/lib/changelog.ts b/docs/lib/changelog.ts
index ee74f22407..da67b1c64b 100644
--- a/docs/lib/changelog.ts
+++ b/docs/lib/changelog.ts
@@ -55,10 +55,8 @@ export function changelogUrl(lang: "en" | "cn") {
}
export async function fetchChangelog(lang: "en" | "cn"): Promise<ChangelogData> {
- if (typeof window !== "undefined") {
- return fetchGitHubChangelog();
- }
-
+ // 浏览器端同样优先走 R2 的翻译版 JSON(英文版由 sync-changelog 翻译生成);
+ // 之前客户端直接 fallback 到 GitHub 原文(中文),会导致英文页面 hydrate 后被中文覆盖。
const url = changelogUrl(lang);
try {