Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
// @vitest-environment node
import { describe, expect, it } from "vitest";
import { pickContentLang } from "./index";
describe("pickContentLang", () => {
it("uses the shared locale matcher before selecting persisted content", () => {
expect(pickContentLang("en-US")).toBe("en");
expect(pickContentLang("zh-Hant")).toBe("zh");
expect(pickContentLang("ko-KR")).toBe("ko");
expect(pickContentLang("ja-JP")).toBe("ja");
});
it("falls back to English for unsupported or missing languages", () => {
expect(pickContentLang("pt-PT")).toBe("en");
expect(pickContentLang(null)).toBe("en");
expect(pickContentLang(undefined)).toBe("en");
});
it("uses English authored content for the supported French UI locale", () => {
expect(pickContentLang("fr-FR")).toBe("en");
});
it("uses English authored content for the supported Spanish UI locale", () => {
expect(pickContentLang("es-ES")).toBe("en");
});
});