Skip to content

Releases: nicksnyder/go-i18n

1.2.0

18 Aug 03:34
Compare
Choose a tag to compare

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

12 Jul 04:15
Compare
Choose a tag to compare

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)

Thanks to those who contributed!
@mash @wichert

1.0.0

09 Jun 03:15
Compare
Choose a tag to compare

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!