24 lines
703 B
TypeScript
24 lines
703 B
TypeScript
import type { OrderStatus, PaymentStatus } from "@/types/api";
|
|
|
|
export const ORDER_STATUS_LABELS_FA: Record<OrderStatus, string> = {
|
|
placed: "سفارش ثبت شد",
|
|
preparing: "در حال آمادهسازی",
|
|
ready_to_ship: "آماده ارسال",
|
|
handed_to_courier: "تحویل پیک شد",
|
|
delivered: "تحویل داده شد",
|
|
cancelled: "لغو شده",
|
|
};
|
|
|
|
export const ORDER_STATUS_SEQUENCE: OrderStatus[] = [
|
|
"placed",
|
|
"preparing",
|
|
"ready_to_ship",
|
|
"handed_to_courier",
|
|
"delivered",
|
|
];
|
|
|
|
export const PAYMENT_STATUS_LABELS_FA: Record<PaymentStatus, string> = {
|
|
pending: "در انتظار پرداخت",
|
|
paid: "پرداخت شده",
|
|
failed: "ناموفق",
|
|
};
|