feat(cli): suporte i18n completo — 42 locales, --lang flag, config lang get/set/list (#2285)

feat(cli): suporte i18n completo — 42 locales, --lang flag, config lang get/set/list

- 42 locale files in bin/cli/locales/ (en + pt-BR fully translated, 29 with common/program, 11 scaffolds)
- --lang <code> global flag for per-execution override
- config lang get/set/list subcommands
- Locale persistence via ~/.omniroute/.env
- Path traversal protection via regex validation in normalize()
- Script generate-locales.mjs for scaffolding new locales
- Unit tests for lang commands + normalization security

Integrated into release/v3.8.0
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-05-15 13:14:14 -03:00
committed by GitHub
parent 0d09858526
commit 79d03575ee
51 changed files with 2344 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ export function createProgram() {
t("program.context") || "Server context/profile to use for this command"
).env("OMNIROUTE_CONTEXT")
)
.addOption(new Option("--lang <code>", t("program.lang")))
.showHelpAfterError(true)
.exitOverride();