From 3013a8c333f90ef355c407753a806ec4a30c9773 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 14 Dec 2019 00:18:51 +0200 Subject: [PATCH] fix indentation --- Localization.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Localization.md b/Localization.md index 864ec92..aa143b6 100644 --- a/Localization.md +++ b/Localization.md @@ -182,7 +182,7 @@ func newApp() *iris.Application { ctx.Writef("%s", ctx.Tr("hi", "iris")) }) - app.Get("/multi", func(ctx iris.Context) { + app.Get("/other", func(ctx iris.Context) { language := ctx.GetLocale().Language() fromFirstFileValue := ctx.Tr("key1") @@ -230,14 +230,14 @@ func main() { // or http://localhost:8080/some-path?lang=el-GR // ^ (by url parameter) // - // or http://localhost:8080 (default is en-US) - // or http://localhost:8080/?lang=zh-CN - // - // go to http://localhost:8080/multi?lang=el-GR - // or http://localhost:8080/multi (default is en-US) - // or http://localhost:8080/multi?lang=en-US - // - // or use cookies to set the language. + // or http://localhost:8080 (default is en-US) + // or http://localhost:8080/?lang=zh-CN + // + // go to http://localhost:8080/other?lang=el-GR + // or http://localhost:8080/other (default is en-US) + // or http://localhost:8080/other?lang=en-US + // + // or use cookies to set the language. app.Run(iris.Addr(":8080"), iris.WithSitemap("http://localhost:8080")) } ``` @@ -268,10 +268,10 @@ GET http://localhost:8080/sitemap.xml - http://localhost:8080/multi - - - + http://localhost:8080/other + + + http://localhost:8080/templates