Gotext Versions Save

Go (Golang) GNU gettext utilities package

v1.6.0

1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/leonelquinteros/gotext/compare/v1.5.2...v1.6.0

v1.5.2

1 year ago

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

v1.5.1

1 year ago

Small release with minor improvements, mainly related to dependencies.

v1.5.0

3 years ago

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: https://github.com/leonelquinteros/gotext/compare/v1.4.0...1b8a993ae40a69bc9e9ed20a93b526c1e6b7d457

Enjoy, contribute, create issues and send PRs!

v1.4.0

5 years ago

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

6 years ago

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

Relevant commits

v1.3.0

6 years ago

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

Relevant commits

v1.2.4

6 years ago

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

6 years ago

v1.2.2

6 years ago
  • 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.