Releases: go-playground/locales
Releases · go-playground/locales
Release 0.10.0
What's New?
- Added generated tests, just need help from persons with locale knowledge to fill in the test cases
Release 0.9.1
What's changed/was fixed?
- variables are now stored as
string
instead of[]byte
appending astring
to a byte array is faster that appending another[]byte
...who knew - l10n functions such as FmtNumber, FmtCurrency... now return string instead of []byte for easier use and potential optimization for the backend in the future ( if needed )
Release 0.9.0
1st Release
this package contains a set of locales which includes:
- Cardinal, Ordinal and Range Plural rules
- Number, Percent, Currency, Accounting, Date and Time formatting
- Some helper methods for developers eg. PluralsCardinal() returns all of the rules for the particular locale
This was done from scratch for use universal-translator but was separated into it's own repo as they can be used independently or in someone else i18n package.