calendar.go 2.3 KB

12345
  1. package mgo
  2. import "github.com/go-playground/universal-translator"
  3. var calendar = ut.Calendar{Formats: ut.CalendarFormats{DateEra: ut.DateEra{BC: ut.CalendarDateFormat{Full: "EEEE, y MMMM dd", Long: "y MMMM d", Medium: "y MMM d", Short: "y-MM-dd"}, AD: ut.CalendarDateFormat{Full: "EEEE, y MMMM dd", Long: "y MMMM d", Medium: "y MMM d", Short: "y-MM-dd"}}, 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{3: "imeg mbəŋchubi", 4: "iməg ngwə̀t", 8: "iməg ichika", 9: "iməg kud", 10: "iməg tèsiʼe", 11: "iməg zò", 1: "mbegtug", 2: "imeg àbùbì", 5: "iməg fog", 6: "iməg ichiibɔd", 7: "iməg àdùmbə̀ŋ", 12: "iməg krizmed"}, Narrow: ut.CalendarMonthFormatNameValue{2: "A2", 4: "N4", 7: "A7", 8: "I8", 12: "12", 1: "M1", 3: "M3", 5: "F5", 6: "I6", 9: "K9", 10: "10", 11: "11"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{3: "imeg mbəŋchubi", 5: "iməg fog", 8: "iməg ichika", 9: "iməg kud", 12: "iməg krizmed", 1: "iməg mbegtug", 4: "iməg ngwə̀t", 6: "iməg ichiibɔd", 7: "iməg àdùmbə̀ŋ", 10: "iməg tèsiʼe", 11: "iməg zò", 2: "imeg àbùbì"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{1: "Aneg 2", 2: "Aneg 3", 3: "Aneg 4", 4: "Aneg 5", 5: "Aneg 6", 6: "Aneg 7", 0: "Aneg 1"}, Narrow: ut.CalendarDayFormatNameValue{2: "A3", 3: "A4", 4: "A5", 5: "A6", 6: "A7", 0: "A1", 1: "A2"}, Short: ut.CalendarDayFormatNameValue{4: "5", 5: "6", 6: "7", 0: "1", 1: "2", 2: "3", 3: "4"}, Wide: ut.CalendarDayFormatNameValue{0: "Aneg 1", 1: "Aneg 2", 2: "Aneg 3", 3: "Aneg 4", 4: "Aneg 5", 5: "Aneg 6", 6: "Aneg 7"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"am": "AM", "pm": "PM"}, Narrow: ut.CalendarPeriodFormatNameValue(nil), Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"am": "AM", "pm": "PM"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "", Abbrev: "", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "", Abbrev: "BCE", Narrow: ""}}}}