i18n: replace gettext implementation (#1056)

This commit is contained in:
UUBulb
2025-04-13 12:26:03 +08:00
committed by GitHub
parent 663688ea94
commit 91cb5e903f
5 changed files with 108 additions and 63 deletions

4
go.mod
View File

@@ -4,7 +4,6 @@ go 1.24.0
require (
github.com/appleboy/gin-jwt/v2 v2.10.2
github.com/chai2010/gettext-go v1.0.3
github.com/dustinkirkland/golang-petname v0.0.0-20240428194347-eebcea082ee0
github.com/gin-contrib/pprof v1.5.2
github.com/gin-gonic/gin v1.10.0
@@ -18,6 +17,7 @@ require (
github.com/knadh/koanf/providers/env v1.0.0
github.com/knadh/koanf/providers/file v1.1.2
github.com/knadh/koanf/v2 v2.1.2
github.com/leonelquinteros/gotext v1.7.1
github.com/libdns/cloudflare v0.1.3
github.com/libdns/he v1.0.2
github.com/libdns/libdns v0.2.3
@@ -29,6 +29,7 @@ require (
github.com/robfig/cron/v3 v3.0.1
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.4
github.com/tidwall/gjson v1.18.0
golang.org/x/crypto v0.36.0
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
@@ -74,7 +75,6 @@ require (
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/swaggo/swag v1.16.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect