Releases: nicksnyder/go-i18n
Releases · nicksnyder/go-i18n
1.2.0
Template data may now be passed into a Tfunc as a struct (previously only maps were supported).
// These will print the same thing
fmt.Println(T("person_greeting", map[string]interface{}{"Person": "Bob"}))
fmt.Println(T("person_greeting", struct{ Person string }{Person: "Bob"}))
New language support
- Thai (
th
)
Thanks to those who contributed!
@parkr @ExUltima
1.1.0
Better support for short language tags
- If a user requests “zh” and there are no translations for that locale, then translations for “zh-hans” or “zh-hans-cn” will be used if available.
Added new APIs to retrieve the language associated with Tfunc
- TfuncAndLanguage
- MustTfuncAndLanguage
New language support
- Burmese (
my
)
1.0.0
There haven't been any backward incompatible changes to the API for over a year now so I think it is time to call the current API stable.
Going forward, release numbers will follow semantic versioning.
Thanks to all who have contributed!