calendar.go 2.5 KB

12345
  1. package es
  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 'de' MMMM 'de' y", Long: "d 'de' MMMM 'de' y", Medium: "d MMM y", Short: "d/M/yy"}, AD: ut.CalendarDateFormat{Full: "EEEE, d 'de' MMMM 'de' y", Long: "d 'de' MMMM 'de' y", Medium: "d MMM y", Short: "d/M/yy"}}, Time: ut.CalendarDateFormat{Full: "H:mm:ss (zzzz)", Long: "H:mm:ss z", Medium: "H:mm:ss", Short: "H: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: "oct.", 12: "dic.", 1: "ene.", 3: "mar.", 4: "abr.", 7: "jul.", 9: "sept.", 2: "feb.", 5: "may.", 6: "jun.", 8: "ago.", 11: "nov."}, Narrow: ut.CalendarMonthFormatNameValue{1: "E", 3: "M", 7: "J", 10: "O", 11: "N", 9: "S", 12: "D", 2: "F", 4: "A", 5: "M", 6: "J", 8: "A"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{5: "mayo", 6: "junio", 7: "julio", 9: "septiembre", 8: "agosto", 10: "octubre", 11: "noviembre", 12: "diciembre", 1: "enero", 2: "febrero", 3: "marzo", 4: "abril"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{5: "vie.", 6: "sáb.", 0: "dom.", 1: "lun.", 2: "mar.", 3: "mié.", 4: "jue."}, Narrow: ut.CalendarDayFormatNameValue{2: "M", 3: "X", 4: "J", 5: "V", 6: "S", 0: "D", 1: "L"}, Short: ut.CalendarDayFormatNameValue{3: "MI", 4: "JU", 5: "VI", 6: "SA", 0: "DO", 1: "LU", 2: "MA"}, Wide: ut.CalendarDayFormatNameValue{6: "sábado", 0: "domingo", 1: "lunes", 2: "martes", 3: "miércoles", 4: "jueves", 5: "viernes"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"morning2": "mañana", "evening1": "tarde", "night1": "noche", "am": "a. m.", "noon": "mediodía", "pm": "p. m.", "morning1": "madrugada"}, Narrow: ut.CalendarPeriodFormatNameValue{"am": "a. m.", "noon": "mediodía", "pm": "p. m.", "morning1": "madrugada", "morning2": "mañana", "evening1": "tarde", "night1": "noche"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"night1": "noche", "am": "a. m.", "noon": "mediodía", "pm": "p. m.", "morning1": "madrugada", "morning2": "mañana", "evening1": "tarde"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "después de Cristo", Abbrev: "d. C.", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "antes de Cristo", Abbrev: "a. C.", Narrow: ""}}}}