calendar.go 2.7 KB

12345
  1. package zh
  2. import "github.com/go-playground/universal-translator"
  3. var calendar = ut.Calendar{Formats: ut.CalendarFormats{DateEra: ut.DateEra{BC: ut.CalendarDateFormat{Full: "y年M月d日EEEE", Long: "y年M月d日", Medium: "y年M月d日", Short: "y/M/d"}, AD: ut.CalendarDateFormat{Full: "y年M月d日EEEE", Long: "y年M月d日", Medium: "y年M月d日", Short: "y/M/d"}}, Time: ut.CalendarDateFormat{Full: "zzzz ah:mm:ss", Long: "z ah:mm:ss", Medium: "ah:mm:ss", Short: "ah: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{8: "8月", 9: "9月", 1: "1月", 2: "2月", 4: "4月", 7: "7月", 11: "11月", 12: "12月", 3: "3月", 5: "5月", 6: "6月", 10: "10月"}, Narrow: ut.CalendarMonthFormatNameValue{1: "1", 3: "3", 5: "5", 8: "8", 9: "9", 11: "11", 12: "12", 2: "2", 4: "4", 6: "6", 7: "7", 10: "10"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{2: "二月", 3: "三月", 5: "五月", 8: "八月", 10: "十月", 11: "十一月", 1: "一月", 4: "四月", 6: "六月", 7: "七月", 9: "九月", 12: "十二月"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{0: "周日", 1: "周一", 2: "周二", 3: "周三", 4: "周四", 5: "周五", 6: "周六"}, Narrow: ut.CalendarDayFormatNameValue{0: "日", 1: "一", 2: "二", 3: "三", 4: "四", 5: "五", 6: "六"}, Short: ut.CalendarDayFormatNameValue{0: "周日", 1: "周一", 2: "周二", 3: "周三", 4: "周四", 5: "周五", 6: "周六"}, Wide: ut.CalendarDayFormatNameValue{0: "星期日", 1: "星期一", 2: "星期二", 3: "星期三", 4: "星期四", 5: "星期五", 6: "星期六"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"midnight": "午夜", "am": "上午", "morning1": "早上", "morning2": "上午", "afternoon1": "中午", "evening1": "晚上", "pm": "下午", "afternoon2": "下午", "night1": "凌晨"}, Narrow: ut.CalendarPeriodFormatNameValue{"am": "上午", "morning2": "上午", "afternoon2": "下午", "night1": "凌晨", "midnight": "午夜", "morning1": "早上", "afternoon1": "中午", "evening1": "晚上", "pm": "下午"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"evening1": "晚上", "am": "上午", "pm": "下午", "morning1": "早上", "afternoon1": "中午", "midnight": "午夜", "morning2": "上午", "afternoon2": "下午", "night1": "凌晨"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "公元", Abbrev: "公元", Narrow: ""}, BC: ut.CalendarEraFormatNames{Full: "公元前", Abbrev: "公元前", Narrow: "公元前"}}}}