From 52bd71eab4e7053068b9d12e2a622a3886190864 Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Fri, 25 Dec 2020 12:37:06 +0000 Subject: [PATCH] Load i18n messages --- cmd/panel/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/panel/main.go b/cmd/panel/main.go index 8371029..681a5c7 100644 --- a/cmd/panel/main.go +++ b/cmd/panel/main.go @@ -14,6 +14,7 @@ import ( "github.com/TicketsBot/GoPanel/utils" "github.com/TicketsBot/archiverclient" "github.com/TicketsBot/common/premium" + "github.com/TicketsBot/worker/bot/i18n" "github.com/apex/log" "github.com/rxdn/gdl/rest/request" "math/rand" @@ -38,6 +39,9 @@ func main() { manage.Archiver = archiverclient.NewArchiverClientWithTimeout(config.Conf.Bot.ObjectStore, time.Second*15, []byte(config.Conf.Bot.AesKey)) utils.LoadEmoji() + if err := i18n.LoadMessages(database.Client); err != nil { + panic(err) + } if config.Conf.Bot.ProxyUrl != "" { request.RegisterHook(utils.ProxyHook)