refactor: pass locales via RegisterCommands instead of direct i18n call
Clean init(): cli.RegisterCommands(AddDevCommands, locales.FS) No more i18n.AddLoader — CLI handles locale loading automatically. Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
b9d9994a36
commit
b429736097
1 changed files with 1 additions and 3 deletions
|
|
@ -39,9 +39,7 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
// Load go-devops translations (cmd.dev.*, cmd.deploy.*, cmd.docs.*, etc.)
|
||||
i18n.LoadFS(locales.FS, ".")
|
||||
cli.RegisterCommands(AddDevCommands)
|
||||
cli.RegisterCommands(AddDevCommands, locales.FS)
|
||||
}
|
||||
|
||||
// Style aliases from shared package
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue