fix(ci): Found three actionable i18n regressions: the touched i18n te… · openclaw/openclaw@1e4a37f
clawsweeper
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -126,6 +126,19 @@ describe("i18n", () => {
|
126 | 126 | expect((zh_TW.common as { version?: string }).version).toBeTruthy(); |
127 | 127 | }); |
128 | 128 | |
| 129 | +it("keeps newly exposed locales from shipping as English fallback bundles", () => { |
| 130 | +const englishHealth = (en.common as { health: string }).health; |
| 131 | +for (const [locale, value] of Object.entries({ |
| 132 | + ar, |
| 133 | + fa, |
| 134 | +it: itLocale, |
| 135 | + nl, |
| 136 | +vi: viLocale, |
| 137 | +})) { |
| 138 | +expect((value.common as { health: string }).health, locale).not.toBe(englishHealth); |
| 139 | +} |
| 140 | +}); |
| 141 | + |
129 | 142 | it("keeps shipped locales structurally aligned with English", () => { |
130 | 143 | const englishKeys = flatten(en); |
131 | 144 | for (const [locale, value] of Object.entries({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。