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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
import assert from "node:assert/strict";
import { execFileSync } from "node:child_process";
import { test } from "vitest";
test("i18n autofill parses locale roots with imported shorthand sections", () => {
// `--mock-translations`: the script's DeepSeek-backed translation step only
// runs when a PR adds NEW zh-CN keys (here: the current branch's 38). CI
// has no DEEPSEEK_API_KEY, so this test asserts the parser/dry-run pipeline
// works with the deterministic mock instead of depending on a live API key.
const output = execFileSync(
process.execPath,
[".github/scripts/i18n-autofill.mjs", "--dry-run", "--base-ref", "HEAD", "--mock-translations"],
{ encoding: "utf8" },
);
// Accept every "no new keys / no changes needed" wording used across
// recent PRs (e.g. mongo-clone, consul) plus the "found N new keys" path.
assert.match(output, /(?:No new zh-CN i18n keys compared with HEAD|Found \d+ new zh-CN i18n key\(s\):|No locale files needed changes|Dry run completed)/);
});