calendar.go 2.2 KB

12345
  1. package gd
  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'mh' MMMM y", Long: "d'mh' MMMM y", Medium: "d MMM y", Short: "dd/MM/y"}, AD: ut.CalendarDateFormat{Full: "EEEE, d'mh' MMMM y", Long: "d'mh' MMMM y", Medium: "d MMM y", Short: "dd/MM/y"}}, 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} {0}", Long: "{1} {0}", Medium: "{1} {0}", Short: "{1} {0}"}}, FormatNames: ut.CalendarFormatNames{Months: ut.CalendarMonthFormatNames{Abbreviated: ut.CalendarMonthFormatNameValue{10: "Dàmh", 11: "Samh", 1: "Faoi", 3: "Màrt", 4: "Gibl", 7: "Iuch", 9: "Sult", 12: "Dùbh", 2: "Gearr", 5: "Cèit", 6: "Ògmh", 8: "Lùna"}, Narrow: ut.CalendarMonthFormatNameValue{1: "F", 2: "G", 8: "L", 9: "S", 10: "D", 12: "D", 3: "M", 4: "G", 5: "C", 6: "Ò", 7: "I", 11: "S"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{11: "An t-Samhain", 9: "An t-Sultain", 10: "An Dàmhair", 3: "Am Màrt", 4: "An Giblean", 5: "An Cèitean", 6: "An t-Ògmhios", 7: "An t-Iuchar", 8: "An Lùnastal", 1: "Am Faoilleach", 2: "An Gearran", 12: "An Dùbhlachd"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{2: "DiM", 3: "DiC", 4: "Dia", 5: "Dih", 6: "DiS", 0: "DiD", 1: "DiL"}, Narrow: ut.CalendarDayFormatNameValue{4: "A", 5: "H", 6: "S", 0: "D", 1: "L", 2: "M", 3: "C"}, Short: ut.CalendarDayFormatNameValue{0: "Dò", 1: "Lu", 2: "Mà", 3: "Ci", 4: "Da", 5: "hA", 6: "Sa"}, Wide: ut.CalendarDayFormatNameValue{0: "DiDòmhnaich", 1: "DiLuain", 2: "DiMàirt", 3: "DiCiadain", 4: "DiarDaoin", 5: "DihAoine", 6: "DiSathairne"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"am": "m", "pm": "f"}, Narrow: ut.CalendarPeriodFormatNameValue{"am": "m", "pm": "f"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"am": "m", "pm": "f"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "", Abbrev: "", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "Ro Chrìosta", Abbrev: "RC", Narrow: "R"}}}}