From 5226aa5ca3d34a06433b5fb90eb33dcfa73b6e62 Mon Sep 17 00:00:00 2001 From: Harold Alcala Date: Tue, 10 Aug 2021 07:44:28 +0800 Subject: [PATCH] Fix for when the 'migrate' command drops the custom default language. (Using suggested fix) (#17190) P.S. No ticket for this Co-authored-by: Mattermod --- cmd/mattermost/commands/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/mattermost/commands/config.go b/cmd/mattermost/commands/config.go index a5d758bf86..a443a5ca68 100644 --- a/cmd/mattermost/commands/config.go +++ b/cmd/mattermost/commands/config.go @@ -273,6 +273,10 @@ func configSetCmdF(command *cobra.Command, args []string) error { } func configMigrateCmdF(command *cobra.Command, args []string) error { + if err := utils.TranslationsPreInit(); err != nil { + return errors.Wrap(err, "failed to load translations while migrating config") + } + from := args[0] to := args[1]