mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
add iris.Minify middleware and Context.OnCloseErr/OnConnectionCloseErr
This commit is contained in:
@@ -14,6 +14,7 @@ func newApp() *iris.Application {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
app.I18n.Subdomain
|
||||
// app.I18n.LoadAssets for go-bindata.
|
||||
|
||||
// Default values:
|
||||
@@ -29,7 +30,6 @@ func newApp() *iris.Application {
|
||||
|
||||
app.Get("/", func(ctx iris.Context) {
|
||||
hi := ctx.Tr("hi", "iris")
|
||||
|
||||
locale := ctx.GetLocale()
|
||||
|
||||
ctx.Writef("From the language %s translated output: %s", locale.Language(), hi)
|
||||
|
||||
Reference in New Issue
Block a user