Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>2023-05-21 01:59:27 +0300
committerHamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com>2023-05-21 01:59:27 +0300
commitd9b1b200cebb82087037d505f13151dd425577a6 (patch)
treed9c631ac7491d7216300455fcae9867a6395dae4 /web/web.go
parent786a3ac992043e1e1ca398d4b408e34d9ae46973 (diff)
rename I18n to I18nWeb
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/web.go b/web/web.go
index b15731fc..1a631d38 100644
--- a/web/web.go
+++ b/web/web.go
@@ -208,10 +208,10 @@ func (s *Server) initRouter() (*gin.Engine, error) {
}
// Apply locale middleware for i18n
- webI18nFunc := func(key string, params ...string) string {
+ i18nWebFunc := func(key string, params ...string) string {
return locale.I18n(locale.Web, key, params...)
}
- engine.FuncMap["i18n"] = webI18nFunc
+ engine.FuncMap["i18n"] = i18nWebFunc
engine.Use(locale.LocalizerMiddleware())
// set static files and template