mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-09 22:25:02 +03:00
12 lines
550 B
TypeScript
12 lines
550 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { checkLocale } from "~/i18n/check"
|
|
import { LOCALES } from "~/lib/language"
|
|
|
|
// Every locale keeps the English keys and, in each translation, the English {{params}}, link ids and
|
|
// code spans (src/i18n/check.ts, which also lists what is left to translate).
|
|
for (const locale of LOCALES.slice(1) as Exclude<(typeof LOCALES)[number], "en">[]) {
|
|
test(`${locale} matches the English keys, params, link ids and code spans`, async () => {
|
|
expect((await checkLocale(locale)).errors).toEqual([])
|
|
})
|
|
}
|