Skip to content

Releases: nicksnyder/go-i18n

v2.0.0-beta.3

11 May 18:44
8c6996e
Compare
Choose a tag to compare
  • i18n.NewBundle(language.English) -> &i18n.Bundle{DefaultLanguage: language.English}
  • Define custom funcs in message templates #100
  • goi18n extract walks current directory by default dfe004a
  • Better example #102
  • Proper semver tag for beta releases #104

2.0.0-beta.2

11 May 18:49
072fa6e
Compare
Choose a tag to compare
  • Update CLDR data to v33.
  • Fix issue that caused extract to always output toml, even if -format parameter was provided.
  • Fix panic when translation is empty.

2.0.0-beta.1

15 Apr 05:23
Compare
Choose a tag to compare

See the changelog for a description of v2.

Please file any issues that you experience.

Although I don't currently anticipate making any more changes to v2 API at this point, breaking changes are possible until v2.0.0 is tagged.

1.10.0

05 Nov 20:09
Compare
Choose a tag to compare

Export language.GetPluralSpec #83

1.9.0

17 Sep 05:44
Compare
Choose a tag to compare

Enhancements

  • Export language.RegisterPluralFunc
  • Export language.Operand
  • Update to CLDR 31.0.1
  • Fix panic in goi18n command #48

1.8.1

12 May 15:40
Compare
Choose a tag to compare

Fix issue with leading comments on .yaml files.

1.8.0

01 Apr 20:12
Compare
Choose a tag to compare

Added support for TOML and a new flatter file format for all encodings (including YAML and JSON).
#65 #66 @BoGeM

1.7.0

05 Dec 20:55
Compare
Choose a tag to compare

Bundles are now goroutine safe.
#54 #59 @emosbaugh

Improved error message when translation file fails to parse.
#55 @mh-cbon

1.6.0

19 Oct 04:37
Compare
Choose a tag to compare

The count used to determine which plural form to use for a translation may now be provided in the template data (#53)

Thanks @mh-cbon and @benoittoulme!

1.5.0

03 Oct 14:56
Compare
Choose a tag to compare

A new command has been added to goi18n.

goi18n constants generates a file of constants for each translation id.

e.g.

package R

// MyHeightInMeters is the identifier for the following localizable string template(s):
// one: "I am {{.Count}} meter tall."
// other: "I am {{.Count}} meters tall."
const MyHeightInMeters = "my_height_in_meters"

Thanks @rodrigocorsi2!