feat: phase 2 — i18n messages EN/FR (--lang, AM_LANG/LANG, catalogue tr/tr_fmt, REPL lang) (closes #74)

This commit is contained in:
2026-08-18 15:46:51 -04:00
parent 4c7866a25a
commit 7f4d74f811
19 changed files with 852 additions and 47 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ use clap::Parser;
#[test]
fn tip_page_renders_header_sections_and_options() {
let app = common::test_app("tip", &["tip"]);
// Issue #74: the page follows the locale; force French here so the
// assertions are deterministic whatever the host LANG says.
let app = common::test_app("tip", &["--lang", "fr", "tip"]);
let text = tip_cmd::render(&app, false);
assert!(text.contains("TIP"), "header missing:\n{text}");
assert!(text.contains("antisèche"), "subtitle missing:\n{text}");