calendar.go 2.1 KB

12345
  1. package to
  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 y", Long: "d MMMM y", Medium: "d MMM y", Short: "d/M/yy"}, AD: ut.CalendarDateFormat{Full: "EEEE d MMMM y", Long: "d MMMM y", Medium: "d MMM y", Short: "d/M/yy"}}, Time: ut.CalendarDateFormat{Full: "h:mm:ss a zzzz", Long: "h:mm:ss a z", Medium: "h:mm:ss a", Short: "h:mm a"}, 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: "Maʻa", 4: "ʻEpe", 5: "Mē", 9: "Sep", 11: "Nōv", 2: "Fēp", 6: "Sun", 7: "Siu", 8: "ʻAok", 10: "ʻOka", 12: "Tīs", 1: "Sān"}, Narrow: ut.CalendarMonthFormatNameValue{5: "M", 6: "S", 7: "S", 8: "A", 10: "O", 11: "N", 1: "S", 3: "M", 9: "S", 12: "T", 2: "F", 4: "E"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{6: "Sune", 7: "Siulai", 9: "Sepitema", 11: "Nōvema", 1: "Sānuali", 2: "Fēpueli", 3: "Maʻasi", 5: "Mē", 4: "ʻEpeleli", 8: "ʻAokosi", 10: "ʻOkatopa", 12: "Tīsema"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{0: "Sāp", 1: "Mōn", 2: "Tūs", 3: "Pul", 4: "Tuʻa", 5: "Fal", 6: "Tok"}, Narrow: ut.CalendarDayFormatNameValue{0: "S", 1: "M", 2: "T", 3: "P", 4: "T", 5: "F", 6: "T"}, Short: ut.CalendarDayFormatNameValue{0: "Sāp", 1: "Mōn", 2: "Tūs", 3: "Pul", 4: "Tuʻa", 5: "Fal", 6: "Tok"}, Wide: ut.CalendarDayFormatNameValue{0: "Sāpate", 1: "Mōnite", 2: "Tūsite", 3: "Pulelulu", 4: "Tuʻapulelulu", 5: "Falaite", 6: "Tokonaki"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"am": "AM", "pm": "PM"}, Narrow: ut.CalendarPeriodFormatNameValue{"am": "AM", "pm": "PM"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"am": "AM", "pm": "PM"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "taʻu ʻo Sīsū", Abbrev: "", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "ki muʻa", Abbrev: "KM", Narrow: ""}}}}