✨ Provide the ability to localize notifications
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user