i18n translator for Go using CLDR data and plural rules
open sourceMITfree
universal-translator is go-playground's i18n library for Go: a thin wrapper around its locales package that stores and translates your application's text with plural rules generated from Unicode CLDR data (cardinal, ordinal and range plurals). It also brings month, weekday and time zone names, date and time formatting, and number, currency, accounting and percent formatting for each locale, loads translations from files and exports them for professional translation. Only the Gregorian calendar is supported.
Problems it solves
- translate my Go app's messages with correct plural forms for each language
- format currencies and dates for a user's locale in Go
- export my Go app's strings to send to professional translators
Features
- CLDR plural rules: cardinal, ordinal and range
- month, weekday and time zone names per locale
- date, time, number, currency and percent formatting
- load translations from files and export them for translators
Limitations
- Supports the Gregorian calendar only.1
Alternatives
The same job
These do what universal-translator does.
- locales (Go) Go locale data and formatting functions generated from Unicode CLDR
