updated

This commit is contained in:
landaiqing
2024-11-14 01:58:20 +08:00
parent c95d5fc041
commit 3b8e3df27a
83 changed files with 172212 additions and 343 deletions

View File

@@ -1,16 +0,0 @@
package middleware
import (
"net/http"
"golang.org/x/text/language"
"schisandra-album-cloud-microservices/common/i18n"
)
func I18nMiddleware(next http.HandlerFunc) http.HandlerFunc {
return i18n.NewI18nMiddleware([]language.Tag{
language.English,
language.Chinese,
}, []string{"../../resources/language/active.en.toml", "../../resources/language/active.zh.toml"}).Handle(next)
}