Skip to content

Releases: go-playground/locales

Release 0.10.0

12 Sep 03:00
Compare
Choose a tag to compare

What's New?

  • Added generated tests, just need help from persons with locale knowledge to fill in the test cases

Release 0.9.1

11 Sep 20:32
Compare
Choose a tag to compare

What's changed/was fixed?

  • variables are now stored as string instead of []byte appending a string 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

23 Aug 18:23
Compare
Choose a tag to compare

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.