mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Shared Claude Code translation pipeline (scripts/i18n, no API key) plus Astro/VitePress/Scalar i18n wiring. Landing and API reference translated into all 20 languages; docs i18n wiring + English source anchors. The translated docs markdown (apps/docs/<locale>/**, 3,620 files) follows in a companion PR because it exceeds GitHub's per-PR CI file limit.
18 lines
561 B
TypeScript
18 lines
561 B
TypeScript
// tests/unit/scripts/i18n/registry.test.ts
|
|
import { describe, expect, it } from "vitest";
|
|
import { ADAPTERS, resolveSurfaces } from "../../../../scripts/i18n/adapters/registry.mjs";
|
|
|
|
describe("registry", () => {
|
|
it("exports an ADAPTERS object", () => {
|
|
expect(typeof ADAPTERS).toBe("object");
|
|
});
|
|
|
|
it("resolveSurfaces('all') returns all registered keys", () => {
|
|
expect(resolveSurfaces("all")).toEqual(Object.keys(ADAPTERS));
|
|
});
|
|
|
|
it("resolveSurfaces filters to known keys", () => {
|
|
expect(resolveSurfaces("nope")).toEqual([]);
|
|
});
|
|
});
|