Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import { catalogRegistry, createTranslator } from "@akeru/client-runtime/i18n";
import { describe, expect, it } from "vite-plus/test";
import { settingsSectionLabel } from "./SettingsDialog";
describe("settingsSectionLabel", () => {
it("matches the nav label instead of title-casing the section", () => {
expect(settingsSectionLabel("image-generation")).toBe("Image generation");
expect(settingsSectionLabel("privacy")).toBe("Privacy & data");
expect(settingsSectionLabel("diagnostics")).toBe("Diagnostics");
});
it("returns a catalog key the breadcrumb translates", async () => {
const { t } = createTranslator("zh-CN", await catalogRegistry["zh-CN"]!());
expect(t(settingsSectionLabel("image-generation"))).toBe("图像生成");
expect(t(settingsSectionLabel("privacy"))).toBe("隐私与数据");
});
});