Skip to content

Releases: leonelquinteros/gotext

v1.6.0

09 Apr 13:40
c7c2135
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.5.2...v1.6.0

v1.5.2

23 Feb 12:23
6f9bcaa
Compare
Choose a tag to compare

Bump golang.org/x/text from 0.3.7 to 0.3.8

v1.5.1

20 Dec 21:32
531e674
Compare
Choose a tag to compare

Small release with minor improvements, mainly related to dependencies.

v1.5.0

10 May 13:47
1b8a993
Compare
Choose a tag to compare

Long release with small additions.
We're pretty much releasing all small changes and refactoring that have been implemented since the last release.

I think the most important addition is the CLI tool to extract translation strings into .po files. It has been worked for a while in the master branch, but now it's officially included (as is) in a release.

For those who wants to know the exact changes since last release, here is a diff for you: v1.4.0...1b8a993

Enjoy, contribute, create issues and send PRs!

v1.4.0

12 Sep 18:19
Compare
Choose a tag to compare

Biggest release so far!

  • Introducing MO files support! Thanks to @Dexus for the implementation.
  • We have changed the way to parse the plural expressions by implementing our own plural expression parser. Thanks to @Dexus again for the hard work on this! Now this package has no external dependencies, which was a goal to achieve.
  • New Translator interface allows Locale objects to use any translation source backend (non-gettext).
  • Locale and Po objects now can be serialized. They implement the encoding.BinaryMarshaler and encoding.BinaryUnmarshaler interfaces. This way they can be cached as []byte to avoid translation file parsing in concurrent environments.
  • Added support for Go Modules. Now a project using Go Modules can import this package as a module outside the GOPATH.

Relevant commits:

v1.3.1

14 Feb 15:08
Compare
Choose a tag to compare

Following the changes in v1.3.0, this release includes the same approach for the Locale object methods.

Relevant commits

v1.3.0

13 Feb 20:44
Compare
Choose a tag to compare

This release fixes an issue that made GetN and GetNC use always the "default" context instead of looking into the package configuration.

It also includes a refactoring of the package configuration that allows to be used in multiple concurrent goroutines without having data races.

As these 2 changes may conflict with packages using it, by assuming the "default" context on the first, or by introducing deadlocks by the second, we're increasing the minor version number for this release to indicate possible backwards compatibility breaks.

Starting on this version, we now have Pull Requests and Issues templates to fill in before creating any of these to help contributors provide all necessary information.

Relevant issues fixed

  • #14 GetN and GetNC don't honor domain package variable set by SetDomain()

Relevant commits

v1.2.4

02 Nov 13:25
Compare
Choose a tag to compare

Small release to include the following commit:

  • Unify fmt.Sprintf behaviour on Po and Locale

This changes how the Locale object falls back when a translation is not found to behave the same as the Po object and use fmt.Sprintf only when variables are provided.

v1.2.3

10 Sep 17:36
Compare
Choose a tag to compare
  • Rewrite PO headers parsing and handling.
  • Implement correct GNU gettext headers format.
  • Improve tests.
  • Fixes #10

v1.2.2

01 Sep 16:31
Compare
Choose a tag to compare
  • Updates README file replacing println references by fmt.Println
  • Fixes extra use cases for Issue #9
  • Added new tests for untranslated strings cases.
  • Improved race test.