diff options
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/v2/i18n/doc.go')
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/v2/i18n/doc.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/v2/i18n/doc.go b/vendor/github.com/nicksnyder/go-i18n/v2/i18n/doc.go index 7b56a7172..73d7a0697 100644 --- a/vendor/github.com/nicksnyder/go-i18n/v2/i18n/doc.go +++ b/vendor/github.com/nicksnyder/go-i18n/v2/i18n/doc.go @@ -2,7 +2,10 @@ // according to a set of locale preferences. // // Create a Bundle to use for the lifetime of your application. -// bundle := &i18n.Bundle{DefaultLanguage: language.English} +// bundle := i18n.NewBundle(language.English) +// +// Load translations into your bundle during initialization. +// bundle.LoadMessageFile("en-US.yaml") // // Create a Localizer to use for a set of language preferences. // func(w http.ResponseWriter, r *http.Request) { |