fix group message can't be translated

Signed-off-by: aiyijing <aiyijing@live.com>
pull/16850/head
aiyijing 2023-07-09 21:43:56 +08:00
parent f23e93b1c4
commit 6d0c25e0c0
1 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,8 @@ func init() {
RootCmd.PersistentFlags().Bool(config.SkipAuditFlag, false, "Skip recording the current command in the audit logs.")
RootCmd.PersistentFlags().Bool(config.Rootless, false, "Force to use rootless driver (docker and podman driver only)")
translate.DetermineLocale()
groups := templates.CommandGroups{
{
Message: translate.T("Basic Commands:"),
@ -297,7 +299,6 @@ func init() {
exit.Error(reason.InternalBindFlags, "Unable to bind flags", err)
}
translate.DetermineLocale()
cobra.OnInitialize(initConfig)
}