calendar.go 2.8 KB

12345
  1. package ru
  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: "dd.MM.yy"}, AD: ut.CalendarDateFormat{Full: "EEEE, d MMMM y 'г'.", Long: "d MMMM y 'г'.", Medium: "d MMM y 'г'.", Short: "dd.MM.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: "окт.", 1: "янв.", 2: "февр.", 3: "март", 4: "апр.", 7: "июль", 8: "авг.", 5: "май", 6: "июнь", 9: "сент.", 11: "нояб.", 12: "дек."}, Narrow: ut.CalendarMonthFormatNameValue{1: "Я", 2: "Ф", 4: "А", 8: "А", 9: "С", 11: "Н", 12: "Д", 3: "М", 5: "М", 6: "И", 7: "И", 10: "О"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{8: "август", 9: "сентябрь", 10: "октябрь", 2: "февраль", 3: "март", 4: "апрель", 5: "май", 6: "июнь", 11: "ноябрь", 12: "декабрь", 1: "январь", 7: "июль"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{1: "пн", 2: "вт", 3: "ср", 4: "чт", 5: "пт", 6: "сб", 0: "вс"}, Narrow: ut.CalendarDayFormatNameValue{2: "В", 3: "С", 4: "Ч", 5: "П", 6: "С", 0: "В", 1: "П"}, Short: ut.CalendarDayFormatNameValue{3: "ср", 4: "чт", 5: "пт", 6: "сб", 0: "вс", 1: "пн", 2: "вт"}, Wide: ut.CalendarDayFormatNameValue{1: "понедельник", 2: "вторник", 3: "среда", 4: "четверг", 5: "пятница", 6: "суббота", 0: "воскресенье"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"afternoon1": "день", "evening1": "веч.", "night1": "ночь", "midnight": "полн.", "am": "ДП", "noon": "полд.", "pm": "ПП", "morning1": "утро"}, Narrow: ut.CalendarPeriodFormatNameValue{"afternoon1": "день", "evening1": "веч.", "night1": "ночь", "midnight": "полн.", "am": "ДП", "noon": "полд.", "pm": "ПП", "morning1": "утро"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"noon": "полдень", "pm": "ПП", "morning1": "утро", "afternoon1": "день", "evening1": "вечер", "night1": "ночь", "midnight": "полночь", "am": "ДП"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "от Рождества Христова", Abbrev: "", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "до Рождества Христова", Abbrev: "до н. э.", Narrow: "до н.э."}}}}