gotext v1.4.0 Release Notes

Release Date: 2018-09-12 // over 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:

Previous changes from v1.3.1

  • ๐Ÿš€ Following the changes in v1.3.0, this release includes the same approach for the Locale object methods.

    Relevant commits