/**
 * Tenant module i18n (en)
 *
 * Note: This file is merged into `tenant.*` namespace at i18n bootstrap.
 */
export default {
  // Detail Drawer
  detail: {
    title: 'Tenant Detail',
    basicInfo: 'Basic Info',
    statusInfo: 'Status Info',
    subscriptionInfo: 'Subscription',
    quotaInfo: 'Quota',
    billingInfo: 'Billing',

    tenantId: 'Tenant ID',
    name: 'Tenant Name',
    code: 'Tenant Code',
    shortName: 'Short Name',
    industry: 'Industry',
    contactName: 'Contact Name',
    contactPhone: 'Contact Phone',
    contactEmail: 'Contact Email',

    status: 'Tenant Status',
    verificationStatus: 'Verification Status',
    autoRenew: 'Auto Renew',
    effectiveFrom: 'Effective From',
    effectiveTo: 'Effective To',
    currentPackage: 'Current Plan'
  },

  // Tabs
  tabs: {
    basicInfo: 'Basic Info',
    statusInfo: 'Status Info',
    subscription: 'Subscription',
    quotaOverview: 'Quota Overview',
    billing: 'Billing'
  },

  // Quota
  quota: {
    title: 'Quota Overview',
    usageSummary: 'Quota Usage',
    usageHistory: 'Quota Usage Details',
    purchaseHistory: 'Quota Purchase History',

    recordedAt: 'Recorded At',
    changeType: 'Change Type',
    snapshot: 'Snapshot',
    historyNotice: 'Current data is real-time snapshot. History feature pending backend API.',
    fullOrderId: 'Full Order ID',

    orderNo: 'Order No',
    quotaType: 'Quota Type',
    quotaPackage: 'Quota Package',
    limitValue: 'Limit',
    usedValue: 'Used',
    remainingValue: 'Remaining',
    usagePercentage: 'Usage Rate',
    resetCycle: 'Reset Cycle',
    lastResetAt: 'Last Reset At',

    purchaseValue: 'Quantity',
    price: 'Price',
    purchasedAt: 'Purchased At',
    expiredAt: 'Expired At',
    notes: 'Notes',

    type: {
      store: 'Stores',
      account: 'Accounts',
      storageGb: 'Storage (GB)',
      smsCredits: 'SMS Credits',
      deliveryOrders: 'Delivery Orders',
      unknown: 'Unknown ({value})'
    }
  },

  // 公告管理
  announcement: {
    title: 'Tenant Announcements',
    listTitle: 'Announcement List',
    createTitle: 'Create Announcement',
    editTitle: 'Edit Announcement',
    detailTitle: 'Announcement Detail',

    search: {
      status: 'Status',
      statusPlaceholder: 'All Statuses',
      keyword: 'Keyword',
      keywordPlaceholder: 'Title/Content keyword',
      dateRange: 'Date Range',
      dateRangePlaceholder: 'Select date range'
    },

    field: {
      title: 'Title',
      content: 'Content',
      announcementType: 'Type',
      priority: 'Priority',
      status: 'Status',
      effectiveRange: 'Effective Range',
      effectiveFrom: 'Effective From',
      effectiveTo: 'Effective To',
      targetType: 'Audience',
      targetParameters: 'Target Parameters',
      departmentIds: 'Department IDs',
      roleIds: 'Role IDs',
      tagIds: 'Tag IDs',
      publishedAt: 'Published At',
      revokedAt: 'Revoked At',
      isActive: 'Active',
      rowVersion: 'Row Version'
    },

    action: {
      create: 'Create',
      edit: 'Edit',
      detail: 'Detail',
      publish: 'Publish',
      revoke: 'Revoke',
      delete: 'Delete',
      save: 'Save',
      back: 'Back',
      more: 'More'
    },

    status: {
      draft: 'Draft',
      published: 'Published',
      revoked: 'Revoked'
    },

    type: {
      system: 'System',
      billing: 'Billing/Subscription',
      operation: 'Operation',
      systemPlatformUpdate: 'Platform Update',
      systemSecurityNotice: 'Security Notice',
      systemCompliance: 'Compliance',
      tenantInternal: 'Tenant Internal',
      tenantFinance: 'Tenant Finance',
      tenantOperation: 'Tenant Operation'
    },

    targetType: {
      all: 'All',
      roles: 'Roles',
      users: 'Users',
      rules: 'Rules',
      manual: 'Manual'
    },

    placeholder: {
      title: 'Enter announcement title',
      content: 'Enter announcement content',
      type: 'Select announcement type',
      priority: 'Enter priority',
      effectiveRange: 'Select effective range',
      targetType: 'Select audience',
      roleIds: 'Enter role IDs, separated by commas',
      userIds: 'Enter user IDs, separated by commas',
      departmentIds: 'Enter department IDs, separated by commas',
      tagIds: 'Enter tag IDs, separated by commas'
    },

    validation: {
      titleRequired: 'Please enter title',
      titleLength: 'Title must be 2-128 characters',
      contentRequired: 'Please enter content',
      typeRequired: 'Please select type',
      priorityRequired: 'Please enter priority',
      effectiveRangeRequired: 'Please select effective range',
      targetTypeRequired: 'Please select audience',
      roleIdsRequired: 'Please enter at least one role ID',
      userIdsRequired: 'Please enter at least one user ID',
      targetRuleRequired: 'Please fill at least one rule field'
    },

    message: {
      loadListFailed: 'Failed to load list',
      loadDetailFailed: 'Failed to load detail',
      detailNotFound: 'Announcement not found. Please return to the list.',
      tenantIdMissing: 'Tenant ID not found',
      publishConfirm: 'Publish this announcement?',
      revokeConfirm: 'Revoke this announcement?',
      deleteConfirm: 'Delete this announcement?',
      publishSuccess: 'Announcement published',
      revokeSuccess: 'Announcement revoked',
      deleteSuccess: 'Announcement deleted',
      createSuccess: 'Announcement created',
      updateSuccess: 'Announcement updated',
      actionNotAllowed: 'Action not allowed for current status',
      empty: 'No announcements'
    },

    tip: {
      tenantScope: 'This is a tenant-level announcement and will be sent to this tenant only.',
      draftAutoSave: 'Auto-saving draft',
      draftSaved: 'Draft saved at {time}',
      draftLoaded: 'Draft loaded',
      draftNotEditable: 'Only draft announcements can be edited'
    },

    section: {
      content: 'Content',
      audience: 'Audience'
    }
  },

  // Edit/Create Dialog
  edit: {
    titleEdit: 'Edit Tenant',
    titleCreate: 'Add Tenant',

    placeholder: {
      code: 'Enter tenant code',
      name: 'Enter tenant name',
      shortName: 'Enter short name',
      industry: 'Enter industry',
      contactName: 'Enter contact name',
      contactPhone: 'Enter contact phone',
      contactEmail: 'Enter contact email',
      tenantPackageId: 'Select plan',
      effectiveFrom: 'Select effective date'
    },

    package: {
      title: 'Plan Info',
      select: 'Plan',
      durationMonths: 'Duration'
    },

    packageType: {
      free: 'Free',
      paid: 'Paid'
    },

    unit: {
      month: 'month(s)'
    },

    validation: {
      codeRequired: 'Please enter tenant code',
      nameRequired: 'Please enter tenant name',
      tenantPackageIdRequired: 'Please select plan'
    }
  },

  // Messages
  warning: {
    updateApiNotReady: 'Tenant update API is under development. Please try again later.'
  },
  error: {
    loadDetailFailed: 'Failed to load tenant detail',
    loadQuotaFailed: 'Failed to load quota info',
    loadBillingFailed: 'Failed to load billing info',
    loadSubscriptionFailed: 'Failed to load subscription info',
    updateFailed: 'Update failed, please retry'
  },
  success: {
    registerSuccess: 'Registered successfully',
    updateSuccess: 'Updated successfully'
  }
}
