main.go 300 B

123456789101112131415161718
  1. package nus
  2. import "github.com/go-playground/universal-translator"
  3. var locale = &ut.Locale{
  4. Locale: "nus",
  5. Number: ut.Number{
  6. Symbols: symbols,
  7. Formats: formats,
  8. Currencies: currencies,
  9. },
  10. Calendar: calendar,
  11. PluralRule: pluralRule,
  12. }
  13. func init() {
  14. ut.RegisterLocale(locale)
  15. }