/**
 * PisellDateTimeDisplay 按语言预设的格式
 * - zh-cn：完整日期 - 时间 星期（如 2025-12-31 - 2:00 周四）；默认不展示相对日，可传 dateFormat.showRelativeDay: true 开启
 * - en：时间 星期, 日期（如 2:00 Sat, 21 Mar, 2026）；默认不展示相对日，可传 dateFormat.showRelativeDay: true 开启
 */
export var DATETIME_DISPLAY_FORMATS = {
  'zh-cn': {
    dateFormat: {
      order: 'YMD',
      showYear: true,
      separator: '-',
      showChineseUnit: false,
      showRelativeDay: false
    },
    timeFormat: {
      use12Hour: false,
      showSeconds: false
    },
    weekdayFormat: {
      full: false,
      singleLetter: false
    },
    fields: {
      showTime: true,
      showDate: true,
      showWeekday: true,
      fieldOrder: ['date', 'time', 'weekday'],
      inlineSeparators: [' - ', ' ']
    }
  },
  zh: {
    // 兜底 zh
    dateFormat: {
      order: 'YMD',
      showYear: true,
      separator: '-',
      showChineseUnit: false,
      showRelativeDay: false
    },
    timeFormat: {
      use12Hour: false,
      showSeconds: false
    },
    weekdayFormat: {
      full: false,
      singleLetter: false
    },
    fields: {
      showTime: true,
      showDate: true,
      showWeekday: true,
      fieldOrder: ['date', 'time', 'weekday'],
      inlineSeparators: [' - ', ' ']
    }
  },
  en: {
    dateFormat: {
      order: 'DMY',
      shortMonth: true,
      showYear: true,
      showRelativeDay: false,
      useCommaBeforeYear: true
    },
    timeFormat: {
      use12Hour: false,
      showSeconds: false
    },
    weekdayFormat: {
      full: false,
      singleLetter: false,
      trailingComma: true
    },
    fields: {
      showTime: true,
      showDate: true,
      showWeekday: true,
      fieldOrder: ['time', 'weekday', 'date'],
      inlineSeparators: [' ', ' ']
    }
  }
};