Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>

Former-commit-id: b30be0c10c507296cdf0a5a14bc8586af77ef604
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-05-04 08:20:55 +03:00
parent 67e47215cd
commit 68fda360db
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,10 @@ func newApp() *iris.Application {
// Configure i18n. // Configure i18n.
// First parameter: Glob filpath patern, // First parameter: Glob filpath patern,
// Second variadic parameter: Optional language tags, the first one is the default/fallback one. // Second variadic parameter: Optional language tags, the first one is the default/fallback one.
app.I18n.Load("./locales/*/*.ini", "en-US", "el-GR", "zh-CN") err := app.I18n.Load("./locales/*/*.ini", "en-US", "el-GR", "zh-CN")
if err != nil {
panic(err)
}
// app.I18n.LoadAssets for go-bindata. // app.I18n.LoadAssets for go-bindata.
// Default values: // Default values:

View File

@ -16,7 +16,7 @@ func init() {
context.SetHandlerName("iris/middleware/rate.(*Limiter).serveHTTP-fm", "iris.ratelimit") context.SetHandlerName("iris/middleware/rate.(*Limiter).serveHTTP-fm", "iris.ratelimit")
} }
// Option delcares a function which can be passed on `Limit` package-level // Option declares a function which can be passed on `Limit` package-level
// to modify its internal fields. Available Options are: // to modify its internal fields. Available Options are:
// * ExceedHandler // * ExceedHandler
// * ClientData // * ClientData