♻️ Replace i18n services with nexus one

This commit is contained in:
2025-02-02 14:28:03 +08:00
parent ec0048042a
commit eaa8fb5225
10 changed files with 38 additions and 119 deletions

View File

@ -3,6 +3,7 @@ package gap
import (
"errors"
"fmt"
"git.solsynth.dev/hypernet/nexus/pkg/nex/localize"
"strings"
"time"
@ -81,3 +82,7 @@ func InitializeToNexus() error {
return err
}
func LoadLocalization() error {
return localize.LoadLocalization(viper.GetString("locales_path"), viper.GetString("templates_path"))
}