Add French l10n test for arch --help in WASM playground

This commit is contained in:
Sylvestre Ledru
2026-04-04 11:11:32 +02:00
parent d66a1d720f
commit e6d078d6b2
+5 -4
View File
@@ -431,15 +431,16 @@ async function runTests() {
if (T.wasmReady) {
section("l10n WASM integration");
// l10n tests are skipped for now — they require French translations
// baked into the WASM binary, which is only available in full CI builds.
// TODO: re-enable once the l10n data is bundled in feat_wasm.
T.locale = "en-US";
const enHelp = await executeCommandLine("arch --help");
assert("arch --help in English contains English text",
enHelp.includes("Display machine architecture"), true);
T.locale = "fr-FR";
const frHelp = await executeCommandLine("arch --help");
assert("arch --help in French contains French text",
frHelp.includes("Afficher l'architecture de la machine"), true);
T.locale = "en-US";
// ===== UTF-8 / multibyte WASM tests =====