Skip to content

Releases: nicksnyder/go-i18n

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!

1.4.0

28 Nov 18:39
Compare
Choose a tag to compare

Add support for YAML translation files (uses go-yaml).

Remember to run go get -u github.com/nicksnyder/go-i18n/goi18n to fetch/update transitive dependencies.

Thanks @zippoxer!

1.3.0

20 Oct 02:14
Compare
Choose a tag to compare

Added plural support for all 200+ languages in the Unicode Common Locale Data Repository via code generation.

Added new APIs to inspect translations loaded into the default bundle

Thanks to those who contributed!
@dennisfaust @parkr @dalu