mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-20 22:22:57 +03:00
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:
committed by
GitHub
parent
0d09858526
commit
79d03575ee
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user