mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
update: pass name to i18n function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user