calendar.go 2.5 KB

12345
  1. package gl
  2. import "github.com/go-playground/universal-translator"
  3. var calendar = ut.Calendar{Formats: ut.CalendarFormats{DateEra: ut.DateEra{BC: ut.CalendarDateFormat{Full: "EEEE dd MMMM y", Long: "dd MMMM y", Medium: "d MMM, y", Short: "dd/MM/yy"}, AD: ut.CalendarDateFormat{Full: "EEEE dd MMMM y", Long: "dd MMMM y", Medium: "d MMM, y", Short: "dd/MM/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} {0}", Long: "{1} {0}", Medium: "{1} {0}", Short: "{1} {0}"}}, FormatNames: ut.CalendarFormatNames{Months: ut.CalendarMonthFormatNames{Abbreviated: ut.CalendarMonthFormatNameValue{3: "Mar", 5: "Mai", 6: "Xuñ", 7: "Xul", 8: "Ago", 1: "Xan", 4: "Abr", 9: "Set", 10: "Out", 11: "Nov", 12: "Dec", 2: "Feb"}, Narrow: ut.CalendarMonthFormatNameValue{9: "S", 3: "M", 5: "M", 6: "X", 8: "A", 10: "O", 11: "N", 12: "D", 1: "X", 2: "F", 4: "A", 7: "X"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{1: "Xaneiro", 2: "Febreiro", 3: "Marzo", 4: "Abril", 12: "Decembro", 11: "Novembro", 5: "Maio", 6: "Xuño", 7: "Xullo", 8: "Agosto", 9: "Setembro", 10: "Outubro"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{5: "Ven", 6: "Sáb", 0: "Dom", 1: "Lun", 2: "Mar", 3: "Mér", 4: "Xov"}, Narrow: ut.CalendarDayFormatNameValue{2: "M", 3: "M", 4: "X", 5: "V", 6: "S", 0: "D", 1: "L"}, Short: ut.CalendarDayFormatNameValue{3: "Mc", 4: "Xv", 5: "Ven", 6: "Sáb", 0: "Dom", 1: "Luns", 2: "Mt"}, Wide: ut.CalendarDayFormatNameValue{6: "Sábado", 0: "Domingo", 1: "Luns", 2: "Martes", 3: "Mércores", 4: "Xoves", 5: "Venres"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"morning1": "madrugada", "morning2": "mañá", "afternoon1": "mediodía", "evening1": "tarde", "night1": "noite", "midnight": "medianoite", "am": "a.m.", "pm": "p.m."}, Narrow: ut.CalendarPeriodFormatNameValue{"am": "a.m.", "pm": "p.m.", "morning1": "madrugada", "morning2": "mañá", "afternoon1": "mediodía", "evening1": "tarde", "night1": "noite", "midnight": "medianoite"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"afternoon1": "mediodía", "evening1": "tarde", "night1": "noite", "midnight": "medianoite", "am": "a.m.", "pm": "p.m.", "morning1": "madrugada", "morning2": "mañá"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "despois de Cristo", Abbrev: "", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "antes de Cristo", Abbrev: "a.C.", Narrow: ""}}}}