Bump github.com/gin-contrib/i18n from 0.0.1 to 1.0.0 (fixes #14)
Change-Id: I25ef8e400117aae46c4285bd10c41708b9d50346
diff --git a/service.go b/service.go
index e48ad11..79fa30f 100644
--- a/service.go
+++ b/service.go
@@ -178,9 +178,9 @@
r.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "main.html", gin.H{
"korapServer": korapServer,
- "title": ginI18n.MustGetMessage("fulltext"),
- "noAccess": ginI18n.MustGetMessage("noAccess"),
- "fromProvider": ginI18n.MustGetMessage("fromProvider"),
+ "title": ginI18n.MustGetMessage(c, "fulltext"),
+ "noAccess": ginI18n.MustGetMessage(c, "noAccess"),
+ "fromProvider": ginI18n.MustGetMessage(c, "fromProvider"),
})
})