calendar.go 2.7 KB

12345
  1. package zh_Hant
  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: "ah:mm:ss [zzzz]", Long: "ah:mm:ss [z]", 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{7: "7月", 9: "9月", 10: "10月", 11: "11月", 2: "2月", 4: "4月", 5: "5月", 6: "6月", 1: "1月", 3: "3月", 8: "8月", 12: "12月"}, Narrow: ut.CalendarMonthFormatNameValue{3: "3", 4: "4", 11: "11", 1: "1", 2: "2", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 10: "10", 12: "12"}, Short: ut.CalendarMonthFormatNameValue{}, Wide: ut.CalendarMonthFormatNameValue{2: "2月", 3: "3月", 5: "5月", 8: "8月", 9: "9月", 10: "10月", 11: "11月", 1: "1月", 4: "4月", 6: "6月", 7: "7月", 12: "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{6: "六", 0: "日", 1: "一", 2: "二", 3: "三", 4: "四", 5: "五"}, Wide: ut.CalendarDayFormatNameValue{4: "星期四", 5: "星期五", 6: "星期六", 0: "星期日", 1: "星期一", 2: "星期二", 3: "星期三"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"evening1": "晚上", "pm": "下午", "morning2": "上午", "afternoon1": "中午", "afternoon2": "下午", "am": "上午", "midnight": "午夜", "morning1": "清晨", "night1": "凌晨"}, Narrow: ut.CalendarPeriodFormatNameValue{"midnight": "午夜", "pm": "下午", "morning2": "上午", "afternoon1": "中午", "evening1": "晚上", "am": "上午", "morning1": "清晨", "afternoon2": "下午", "night1": "凌晨"}, Short: ut.CalendarPeriodFormatNameValue{}, Wide: ut.CalendarPeriodFormatNameValue{"morning1": "清晨", "afternoon2": "下午", "pm": "下午", "midnight": "午夜", "morning2": "上午", "afternoon1": "中午", "evening1": "晚上", "night1": "凌晨", "am": "上午"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "西元", Abbrev: "西元", Narrow: "西元"}, BC: ut.CalendarEraFormatNames{Full: "西元前", Abbrev: "西元前", Narrow: "西元前"}}}}