calendar.go 2.5 KB

12345
  1. package is
  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.y"}, AD: ut.CalendarDateFormat{Full: "EEEE, d. MMMM y", Long: "d. MMMM y", Medium: "d. MMM y", Short: "d.M.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} 'kl'. {0}", Long: "{1} 'kl'. {0}", Medium: "{1}, {0}", Short: "{1}, {0}"}}, FormatNames: ut.CalendarFormatNames{Months: ut.CalendarMonthFormatNames{Abbreviated: ut.CalendarMonthFormatNameValue{4: "apr.", 5: "maí", 7: "júl.", 8: "ágú.", 10: "okt.", 12: "des.", 2: "feb.", 3: "mar.", 6: "jún.", 9: "sep.", 11: "nóv.", 1: "jan."}, Narrow: ut.CalendarMonthFormatNameValue{7: "J", 10: "O", 1: "J", 3: "M", 4: "A", 6: "J", 11: "N", 12: "D", 2: "F", 5: "M", 8: "Á", 9: "S"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{4: "apríl", 7: "júlí", 9: "september", 10: "október", 11: "nóvember", 1: "janúar", 2: "febrúar", 3: "mars", 5: "maí", 6: "júní", 8: "ágúst", 12: "desember"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{5: "fös.", 6: "lau.", 0: "sun.", 1: "mán.", 2: "þri.", 3: "mið.", 4: "fim."}, Narrow: ut.CalendarDayFormatNameValue{2: "Þ", 3: "M", 4: "F", 5: "F", 6: "L", 0: "S", 1: "M"}, Short: ut.CalendarDayFormatNameValue{4: "fi.", 5: "fö.", 6: "la.", 0: "su.", 1: "má.", 2: "þr.", 3: "mi."}, Wide: ut.CalendarDayFormatNameValue{0: "sunnudagur", 1: "mánudagur", 2: "þriðjudagur", 3: "miðvikudagur", 4: "fimmtudagur", 5: "föstudagur", 6: "laugardagur"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"midnight": "miðn.", "noon": "hád.", "morning1": "morg.", "afternoon1": "síðd.", "evening1": "kv.", "night1": "nótt"}, Narrow: ut.CalendarPeriodFormatNameValue{"afternoon1": "sd.", "evening1": "kv.", "night1": "n.", "midnight": "mn.", "noon": "hd.", "morning1": "mrg."}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"evening1": "kvöld", "night1": "nótt", "midnight": "miðnætti", "am": "f.h.", "noon": "hádegi", "pm": "e.h.", "morning1": "morgunn", "afternoon1": "eftir hádegi"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "eftir Krist", Abbrev: "e.Kr.", Narrow: "e.k."}, BC: ut.CalendarEraFormatNames{Full: "fyrir Krist", Abbrev: "f.Kr.", Narrow: "f.k."}}}}