From 7d1165b87b8736a0b262f275afe0ec01b728033e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 2 Feb 2025 14:33:00 +0800 Subject: [PATCH] :bug: Fix use wrong config key --- pkg/internal/gap/server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/internal/gap/server.go b/pkg/internal/gap/server.go index b50d5a5..f43bfa6 100644 --- a/pkg/internal/gap/server.go +++ b/pkg/internal/gap/server.go @@ -3,10 +3,11 @@ package gap import ( "errors" "fmt" - "git.solsynth.dev/hypernet/nexus/pkg/nex/localize" "strings" "time" + "git.solsynth.dev/hypernet/nexus/pkg/nex/localize" + "git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/nexus/pkg/nex/rx" "git.solsynth.dev/hypernet/nexus/pkg/proto" @@ -84,5 +85,5 @@ func InitializeToNexus() error { } func LoadLocalization() error { - return localize.LoadLocalization(viper.GetString("locales_path"), viper.GetString("templates_path")) + return localize.LoadLocalization(viper.GetString("locales_dir"), viper.GetString("templates_dir")) }