v1.4.0
leonelquinteros
released this
12 Sep 18:19
·
108 commits
to master
since this release
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 allowsLocale
objects to use any translation source backend (non-gettext). Locale
andPo
objects now can be serialized. They implement theencoding.BinaryMarshaler
andencoding.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: