diff --git a/web/controller/base.go b/web/controller/base.go index 210a0fb6..26e7422b 100644 --- a/web/controller/base.go +++ b/web/controller/base.go @@ -27,7 +27,7 @@ func I18n(c *gin.Context , name string, data ...string) string{ anyfunc, _ := c.Get("I18n") i18n, _ := anyfunc.(func(key string, params ...string) (string, error)) - message, _ := i18n("pages.index.title") + message, _ := i18n(name) return message; }