calendar.go 2.1 KB

12345
  1. package ast
  2. import "github.com/go-playground/universal-translator"
  3. var calendar = ut.Calendar{Formats: ut.CalendarFormats{DateEra: ut.DateEra{BC: ut.CalendarDateFormat{Full: "EEEE, d MMMM 'de' y", Long: "d MMMM 'de' y", Medium: "d MMM y", Short: "d/M/yy"}, AD: ut.CalendarDateFormat{Full: "EEEE, d MMMM 'de' y", Long: "d MMMM 'de' y", Medium: "d MMM y", Short: "d/M/yy"}}, Time: ut.CalendarDateFormat{Full: "HH:mm:ss zzzz", Long: "HH:mm:ss z", Medium: "HH:mm:ss", Short: "HH:mm"}, DateTime: ut.CalendarDateFormat{Full: "{1} 'a' 'les' {0}", Long: "{1} 'a' 'les' {0}", Medium: "{1}, {0}", Short: "{1} {0}"}}, FormatNames: ut.CalendarFormatNames{Months: ut.CalendarMonthFormatNames{Abbreviated: ut.CalendarMonthFormatNameValue{9: "Set", 4: "Abr", 6: "Xun", 7: "Xnt", 5: "May", 8: "Ago", 10: "Och", 11: "Pay", 12: "Avi", 1: "Xin", 2: "Feb", 3: "Mar"}, Narrow: ut.CalendarMonthFormatNameValue{1: "X", 2: "F", 4: "A", 5: "M", 6: "X", 7: "X", 8: "A", 9: "S", 10: "O", 11: "P", 12: "A", 3: "M"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{7: "xunetu", 9: "setiembre", 1: "xineru", 2: "febreru", 3: "marzu", 4: "abril", 5: "mayu", 6: "xunu", 10: "ochobre", 12: "avientu", 8: "agostu", 11: "payares"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{2: "mar", 3: "mié", 4: "xue", 5: "vie", 6: "sáb", 0: "dom", 1: "llu"}, Narrow: ut.CalendarDayFormatNameValue{4: "X", 5: "V", 6: "S", 0: "D", 1: "L", 2: "M", 3: "M"}, Short: ut.CalendarDayFormatNameValue{0: "do", 1: "ll", 2: "ma", 3: "mi", 4: "xu", 5: "vi", 6: "sá"}, Wide: ut.CalendarDayFormatNameValue{0: "domingu", 1: "llunes", 2: "martes", 3: "miércoles", 4: "xueves", 5: "vienres", 6: "sábadu"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"am": "AM", "pm": "PM"}, Narrow: ut.CalendarPeriodFormatNameValue{"am": "a", "pm": "p"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"am": "mañana", "pm": "tardi"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "después de Cristu", Abbrev: "d.C.", Narrow: "dC"}, BC: ut.CalendarEraFormatNames{Full: "a.C.", Abbrev: "a.C.", Narrow: "aC"}}}}