From a6c7151797af37eee566a80bfd3230046ef25012 Mon Sep 17 00:00:00 2001 From: Eldar Rakhimberdin Date: Mon, 13 Aug 2018 13:35:55 +0300 Subject: [PATCH 1/2] Fixed localizer example Type for `TemplateData` should be `map[string]interface`, because the value for `Count` is integer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b52d5777..2f07e685 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ localizer.MustLocalize(&i18n.LocalizeConfig{ One: "{{.Name}} has {{.Count}} cat.", Other: "{{.Name}} has {{.Count}} cats.", }, - TemplateData: map[string]string{ + TemplateData: map[string]interface{ "Name": "Nick", "Count": 2, }, From 649a7e4cbe122e8649fdbfe21f08de6a4fe93972 Mon Sep 17 00:00:00 2001 From: Nick Snyder Date: Mon, 13 Aug 2018 20:12:33 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f07e685..33fb0737 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ localizer.MustLocalize(&i18n.LocalizeConfig{ One: "{{.Name}} has {{.Count}} cat.", Other: "{{.Name}} has {{.Count}} cats.", }, - TemplateData: map[string]interface{ + TemplateData: map[string]interface{}{ "Name": "Nick", "Count": 2, },