feat: phase 2 — i18n messages EN/FR (--lang, AM_LANG/LANG, catalogue tr/tr_fmt, REPL lang) (closes #74)
This commit is contained in:
@@ -34,7 +34,7 @@ pub fn generate(dir: &Path, force: bool, template: Option<&str>) -> Result<PathB
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ");
|
||||
let stack = if ctx.stack.is_empty() {
|
||||
"aucune détectée".to_string()
|
||||
crate::i18n::tr("aucune détectée").to_string()
|
||||
} else {
|
||||
ctx.stack.join(", ")
|
||||
};
|
||||
@@ -82,7 +82,7 @@ pub fn run(app: &App, force: bool, template: Option<&str>) -> Result<i32> {
|
||||
"wrote {} (stack: {})",
|
||||
path.display(),
|
||||
if ctx.stack.is_empty() {
|
||||
"aucune détectée".to_string()
|
||||
crate::i18n::tr("aucune détectée").to_string()
|
||||
} else {
|
||||
ctx.stack.join(", ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user