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
+4
View File
@@ -30,6 +30,7 @@ pub mod events;
pub mod help;
pub mod history;
pub mod hooks;
pub mod i18n;
pub mod installers;
pub mod lab;
pub mod models;
@@ -85,6 +86,9 @@ fn real_main() -> i32 {
return code;
}
let cli = cli::Cli::parse();
// Issue #74: resolve the output language before anything else so even
// config errors are localized; the REPL can switch it at runtime.
i18n::set_lang(i18n::resolve(cli.lang));
match app::App::from_cli(cli) {
Ok(app) => {
// Issue #53: enforce the session retention at every startup