From d2544e7105bf96d2ff8087c324e2b5c7bc141d33 Mon Sep 17 00:00:00 2001 From: Mohammad Foroughi Date: Sun, 30 Oct 2022 04:55:08 +0330 Subject: [PATCH] update: pass name to i18n function --- web/controller/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }