Merge pull request #16850 from aiyijing/fix/unable-translate-group-msg

fix group message can't be translated
pull/16863/merge
Medya Ghazizadeh 2023-07-10 12:15:56 -07:00 committed by GitHub
commit d18f2762d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.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)") RootCmd.PersistentFlags().Bool(config.Rootless, false, "Force to use rootless driver (docker and podman driver only)")
translate.DetermineLocale()
groups := templates.CommandGroups{ groups := templates.CommandGroups{
{ {
Message: translate.T("Basic Commands:"), Message: translate.T("Basic Commands:"),
@ -297,7 +299,6 @@ func init() {
exit.Error(reason.InternalBindFlags, "Unable to bind flags", err) exit.Error(reason.InternalBindFlags, "Unable to bind flags", err)
} }
translate.DetermineLocale()
cobra.OnInitialize(initConfig) cobra.OnInitialize(initConfig)
} }