const RECHARGE_STATUS_I18N_KEYS: Record<number, string> = {
  0: 'deposit.rechargeStatus0',
  1: 'deposit.rechargeStatus1',
  2: 'deposit.rechargeStatus2',
  3: 'deposit.rechargeStatus3',
  4: 'deposit.rechargeStatus4',
}

/**
 * 充值订单链上状态展示（与各语言 deposit.rechargeStatus* 对齐）
 */
export function rechargeStatusTranslate(
  t: (key: string, values?: Record<string, unknown>) => string,
  status: number,
): string {
  const path = RECHARGE_STATUS_I18N_KEYS[status]
  if (path) {
    return t(path)
  }
  return t('deposit.statusUnknown', { status })
}
