🐛 Fix use wrong config key

This commit is contained in:
LittleSheep 2025-02-02 14:33:00 +08:00
parent eaa8fb5225
commit 7d1165b87b

View File

@ -3,10 +3,11 @@ package gap
import ( import (
"errors" "errors"
"fmt" "fmt"
"git.solsynth.dev/hypernet/nexus/pkg/nex/localize"
"strings" "strings"
"time" "time"
"git.solsynth.dev/hypernet/nexus/pkg/nex/localize"
"git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/nexus/pkg/nex"
"git.solsynth.dev/hypernet/nexus/pkg/nex/rx" "git.solsynth.dev/hypernet/nexus/pkg/nex/rx"
"git.solsynth.dev/hypernet/nexus/pkg/proto" "git.solsynth.dev/hypernet/nexus/pkg/proto"
@ -84,5 +85,5 @@ func InitializeToNexus() error {
} }
func LoadLocalization() 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"))
} }