feat: Add 'awaiting_tracking' status to OrdersTab and update translations across multiple locales

This commit is contained in:
sebseb7
2026-03-23 15:37:42 +01:00
parent a93aa22a76
commit f47fbc5c39
23 changed files with 47 additions and 22 deletions

View File

@@ -35,6 +35,7 @@ const getStatusTranslation = (status, t) => {
cancelled: t ? t('orders.status.cancelled') : "Storniert",
shipped: t ? t('orders.status.shipped') : "Verschickt",
delivered: t ? t('orders.status.delivered') : "Geliefert",
awaiting_tracking: t ? t('orders.status.awaiting_tracking') : "Wird gepackt",
};
return statusMap[status] || status;
};
@@ -47,6 +48,7 @@ const statusEmojis = {
cancelled: "❌",
shipped: "🚚",
delivered: "✅",
awaiting_tracking: "📦",
};
const statusColors = {
@@ -57,6 +59,7 @@ const statusColors = {
cancelled: "#d32f2f", // red for cancelled
shipped: "#2e7d32", // green
delivered: "#2e7d32", // green
awaiting_tracking: "#1565c0", // blue — packing / pre-ship
};
const currencyFormatter = new Intl.NumberFormat("de-DE", {