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:
Snider 2026-03-17 01:35:18 +00:00
parent b9d9994a36
commit b429736097

View file

@ -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