You've already forked uutils.github.io
mirror of
https://github.com/uutils/uutils.github.io.git
synced 2026-06-10 16:12:28 -07:00
Add French l10n test for arch --help in WASM playground
This commit is contained in:
@@ -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 =====
|
||||
|
||||
Reference in New Issue
Block a user