mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
fix(ci): Found three actionable i18n regressions: the touched i18n test fi (#74527)
Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com>
This commit is contained in:
@@ -126,6 +126,19 @@ describe("i18n", () => {
|
||||
expect((zh_TW.common as { version?: string }).version).toBeTruthy();
|
||||
});
|
||||
|
||||
it("keeps newly exposed locales from shipping as English fallback bundles", () => {
|
||||
const englishHealth = (en.common as { health: string }).health;
|
||||
for (const [locale, value] of Object.entries({
|
||||
ar,
|
||||
fa,
|
||||
it: itLocale,
|
||||
nl,
|
||||
vi: viLocale,
|
||||
})) {
|
||||
expect((value.common as { health: string }).health, locale).not.toBe(englishHealth);
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps shipped locales structurally aligned with English", () => {
|
||||
const englishKeys = flatten(en);
|
||||
for (const [locale, value] of Object.entries({
|
||||
|
||||
Reference in New Issue
Block a user