fix traslations

This commit is contained in:
Urtzi Alfaro
2026-01-01 14:09:59 +01:00
parent cba55c2805
commit d6728b4bd8
4 changed files with 20 additions and 21 deletions

View File

@@ -116,9 +116,9 @@ export function SystemStatusBlock({ data, loading }: SystemStatusBlockProps) {
{/* Status Message */}
<p className="text-[var(--text-secondary)] mb-4">
{hasIssues
? t('dashboard:new_dashboard.system_status.issues_requiring_action', {
count: issuesRequiringAction,
})
? t('dashboard:new_dashboard.system_status.count', {
count: issuesRequiringAction,
})
: t('dashboard:new_dashboard.system_status.all_clear')}
</p>
@@ -127,9 +127,8 @@ export function SystemStatusBlock({ data, loading }: SystemStatusBlockProps) {
{/* Issues Requiring Action */}
<div className="flex items-center gap-2 px-3 py-2 rounded-lg bg-[var(--bg-primary)] border border-[var(--border-primary)]">
<AlertTriangle
className={`w-5 h-5 ${
issuesRequiringAction > 0 ? 'text-[var(--color-warning-500)]' : 'text-[var(--text-tertiary)]'
}`}
className={`w-5 h-5 ${issuesRequiringAction > 0 ? 'text-[var(--color-warning-500)]' : 'text-[var(--text-tertiary)]'
}`}
/>
<span className="text-sm font-medium text-[var(--text-primary)]">
{issuesRequiringAction}

View File

@@ -585,7 +585,7 @@
"new_dashboard": {
"system_status": {
"title": "System Status",
"issues_requiring_action": "{count, plural, one {# issue} other {# issues} requiring your action}",
"count": "{count, plural, one {# issue} other {# issues}} requiring your action",
"all_clear": "All systems running smoothly",
"never_run": "Never run",
"action_needed_label": "action needed",
@@ -602,7 +602,7 @@
},
"pending_purchases": {
"title": "Pending Purchases",
"count": "{count, plural, one {# order} other {# orders} awaiting approval}",
"count": "{count, plural, one {# order} other {# orders}} awaiting approval",
"no_pending": "No pending purchase orders",
"all_clear": "No purchase orders pending approval",
"po_number": "PO #{number}",
@@ -672,7 +672,7 @@
},
"pending_deliveries": {
"title": "Pending Deliveries",
"count": "{count, plural, one {# delivery} other {# deliveries} expected today}",
"count": "{count, plural, one {# delivery} other {# deliveries}} expected today",
"no_deliveries": "No deliveries expected today",
"all_clear": "No pending deliveries today",
"overdue_section": "Overdue Deliveries",
@@ -686,7 +686,7 @@
},
"production_status": {
"title": "Production Status",
"count": "{count, plural, one {# batch} other {# batches} today}",
"count": "{count, plural, one {# batch} other {# batches}} today",
"no_production": "No production scheduled for today",
"all_clear": "No production scheduled for today",
"late_section": "Late to Start",

View File

@@ -656,7 +656,7 @@
"new_dashboard": {
"system_status": {
"title": "Estado del Sistema",
"issues_requiring_action": "{count, plural, one {# problema requiere} other {# problemas requieren} tu acción}",
"count": "{count, plural, one {# problema requiere} other {# problemas requieren}} tu acción",
"all_clear": "Todos los sistemas funcionan correctamente",
"never_run": "Nunca ejecutado",
"action_needed_label": "acción requerida",
@@ -673,7 +673,7 @@
},
"pending_purchases": {
"title": "Compras Pendientes",
"count": "{count, plural, one {# orden} other {# órdenes} esperando aprobación}",
"count": "{count, plural, one {# orden} other {# órdenes}} esperando aprobación",
"no_pending": "Sin órdenes de compra pendientes",
"all_clear": "Sin órdenes de compra pendientes de aprobación",
"po_number": "OC #{number}",
@@ -695,7 +695,7 @@
},
"pending_deliveries": {
"title": "Entregas Pendientes",
"count": "{count, plural, one {# entrega} other {# entregas} esperadas hoy}",
"count": "{count, plural, one {# entrega} other {# entregas}} esperadas hoy",
"no_deliveries": "Sin entregas esperadas hoy",
"all_clear": "Sin entregas pendientes hoy",
"overdue_section": "Entregas Atrasadas",
@@ -709,7 +709,7 @@
},
"production_status": {
"title": "Estado de Producción",
"count": "{count, plural, one {# lote} other {# lotes} hoy}",
"count": "{count, plural, one {# lote} other {# lotes}} hoy",
"no_production": "Sin producción programada para hoy",
"all_clear": "Sin producción programada para hoy",
"late_section": "Atrasados para Empezar",

View File

@@ -395,7 +395,7 @@
"new_dashboard": {
"system_status": {
"title": "Sistema Egoera",
"issues_requiring_action": "{count, plural, one {# arazok} other {# arazok} zure ekintza behar {count, plural, one {du} other {dute}}",
"count": "{count, plural, one {# arazok} other {# arazok}} zure ekintza behar {count, plural, one {du} other {dute}}",
"all_clear": "Sistema guztiak ondo dabiltza",
"never_run": "Inoiz exekutatu gabe",
"action_needed_label": "ekintza behar",
@@ -411,7 +411,7 @@
},
"pending_purchases": {
"title": "Erosketa Zain",
"count": "{count, plural, one {# agindu} other {# agindu} onarpenaren zai}",
"count": "{count, plural, one {# agindu} other {# agindu}} onarpenaren zai",
"no_pending": "Ez dago erosketa-agindu zain",
"all_clear": "Ez dago erosketa-agindu onartzeko zain",
"po_number": "EA #{number}",
@@ -428,7 +428,7 @@
},
"pending_deliveries": {
"title": "Entrega Zain",
"count": "{count, plural, one {# entrega} other {# entrega} gaur espero}",
"count": "{count, plural, one {# entrega} other {# entrega}} gaur espero",
"no_deliveries": "Ez dago entregarik gaur esperatzen",
"all_clear": "Ez dago entregarik zain gaur",
"overdue_section": "Atzeratutako Entregak",
@@ -442,7 +442,7 @@
},
"production_status": {
"title": "Ekoizpen Egoera",
"count": "{count, plural, one {# lote} other {# lote} gaur}",
"count": "{count, plural, one {# lote} other {# lote}} gaur",
"no_production": "Ez dago ekoizpenik programatuta gaur",
"all_clear": "Ez dago ekoizpenik programatuta gaur",
"late_section": "Hasteko Atzeratua",