Provide the ability to localize notifications

This commit is contained in:
2025-02-16 22:59:44 +08:00
parent 50ff8304e4
commit 5fb769823a
13 changed files with 205 additions and 309 deletions

View File

@@ -2,10 +2,12 @@ package gap
import (
"fmt"
"strings"
"git.solsynth.dev/hypernet/nexus/pkg/nex"
"git.solsynth.dev/hypernet/nexus/pkg/nex/localize"
"git.solsynth.dev/hypernet/nexus/pkg/proto"
"github.com/rs/zerolog/log"
"strings"
"github.com/spf13/viper"
)
@@ -37,3 +39,7 @@ func InitializeToNexus() error {
return err
}
func LoadLocalization() error {
return localize.LoadLocalization(viper.GetString("locales_dir"))
}