Go (Golang) GNU gettext utilities package
fs.FS
by @kobergj in https://github.com/leonelquinteros/gotext/pull/68
Full Changelog: https://github.com/leonelquinteros/gotext/compare/v1.5.2...v1.6.0
Bump golang.org/x/text from 0.3.7 to 0.3.8
Small release with minor improvements, mainly related to dependencies.
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!
Biggest release so far!
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.Relevant commits:
Following the changes in v1.3.0, this release includes the same approach for the Locale object methods.
Relevant commits
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
Small release to include the following commit:
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.
println
references by fmt.Println