Fix build errors: localization syntax, key paths, and ViewOrderCard widget

This commit is contained in:
2026-02-14 16:26:10 +05:30
parent 097481d26a
commit 4e1a41ebff
25 changed files with 420 additions and 207 deletions

View File

@@ -148,9 +148,17 @@
"edit_mode_active": "Edit Mode Active",
"drag_instruction": "Drag to reorder, toggle visibility",
"reset": "Reset",
"todays_coverage": "TODAY'S COVERAGE",
"percent_covered": "$percent% Covered",
"metric_needed": "Needed",
"metric_filled": "Filled",
"metric_open": "Open",
"spending": {
"this_week": "This Week",
"next_7_days": "Next 7 Days",
"shifts_count": "$count shifts",
"scheduled_count": "$count scheduled"
},
"view_all": "View all",
"insight_lightbulb": "Save $amount/month",
"insight_tip": "Book 48hrs ahead for better rates"
@@ -237,6 +245,14 @@
"scan_button": "Scan NFC Tag",
"tag_identified": "Tag Identified",
"assign_button": "Assign Tag"
},
"delete_dialog": {
"title": "Confirm Hub Deletion",
"message": "Are you sure you want to delete \"$hubName\"?",
"undo_warning": "This action cannot be undone.",
"dependency_warning": "Note that if there are any shifts/orders assigned to this hub we shouldn't be able to delete the hub.",
"cancel": "Cancel",
"delete": "Delete"
}
},
"client_create_order": {
@@ -337,14 +353,26 @@
"cancelled": "CANCELLED",
"get_direction": "Get direction",
"total": "Total",
"hrs": "HRS",
"hrs": "Hrs",
"workers": "$count workers",
"clock_in": "CLOCK IN",
"clock_out": "CLOCK OUT",
"coverage": "Coverage",
"workers_label": "$filled/$needed Workers",
"confirmed_workers": "Workers Confirmed",
"no_workers": "No workers confirmed yet."
"no_workers": "No workers confirmed yet.",
"today": "Today",
"tomorrow": "Tomorrow",
"workers_needed": "$count Workers Needed",
"all_confirmed": "All Workers Confirmed",
"confirmed_workers_title": "CONFIRMED WORKERS",
"message_all": "Message All",
"show_more_workers": "Show $count more workers",
"checked_in": "Checked In",
"call_dialog": {
"title": "Call",
"message": "Do you want to call $phone?"
}
}
},
"client_billing": {
@@ -498,6 +526,10 @@
"menu_items": {
"personal_info": "Personal Info",
"emergency_contact": "Emergency Contact",
"emergency_contact_page": {
"save_success": "Emergency contacts saved successfully",
"save_continue": "Save & Continue"
},
"experience": "Experience",
"attire": "Attire",
"documents": "Documents",
@@ -853,6 +885,7 @@
},
"staff_certificates": {
"title": "Certificates",
"error_loading": "Error loading certificates",
"progress": {
"title": "Your Progress",
"verified_count": "$completed of $total verified",
@@ -988,6 +1021,41 @@
"applying_dialog": {
"title": "Applying"
}
},
"card": {
"just_now": "Just now",
"assigned": "Assigned $time ago",
"accept_shift": "Accept shift",
"decline_shift": "Decline shift"
},
"my_shifts_tab": {
"confirm_dialog": {
"title": "Accept Shift",
"message": "Are you sure you want to accept this shift?",
"success": "Shift confirmed!"
},
"decline_dialog": {
"title": "Decline Shift",
"message": "Are you sure you want to decline this shift? This action cannot be undone.",
"success": "Shift declined."
},
"sections": {
"awaiting": "Awaiting Confirmation",
"cancelled": "Cancelled Shifts",
"confirmed": "Confirmed Shifts"
},
"empty": {
"title": "No shifts this week",
"subtitle": "Try finding new jobs in the Find tab"
},
"date": {
"today": "Today",
"tomorrow": "Tomorrow"
},
"card": {
"cancelled": "CANCELLED",
"compensation": "• 4hr compensation"
}
}
},
"staff_time_card": {

View File

@@ -148,9 +148,17 @@
"edit_mode_active": "Modo Edición Activo",
"drag_instruction": "Arrastra para reordenar, cambia la visibilidad",
"reset": "Restablecer",
"todays_coverage": "COBERTURA DE HOY",
"percent_covered": "$percent% Cubierto",
"metric_needed": "Necesario",
"metric_filled": "Lleno",
"metric_open": "Abierto",
"spending": {
"this_week": "Esta Semana",
"next_7_days": "Próximos 7 Días",
"shifts_count": "$count turnos",
"scheduled_count": "$count programados"
},
"view_all": "Ver todo",
"insight_lightbulb": "Ahorra $amount/mes",
"insight_tip": "Reserva con 48h de antelación para mejores tarifas"
@@ -237,6 +245,14 @@
"scan_button": "Escanear Etiqueta NFC",
"tag_identified": "Etiqueta Identificada",
"assign_button": "Asignar Etiqueta"
},
"delete_dialog": {
"title": "Confirmar eliminación de Hub",
"message": "¿Estás seguro de que quieres eliminar \"$hubName\"?",
"undo_warning": "Esta acción no se puede deshacer.",
"dependency_warning": "Ten en cuenta que si hay turnos/órdenes asignados a este hub no deberíamos poder eliminarlo.",
"cancel": "Cancelar",
"delete": "Eliminar"
}
},
"client_create_order": {
@@ -337,14 +353,26 @@
"cancelled": "CANCELADO",
"get_direction": "Obtener dirección",
"total": "Total",
"hrs": "HRS",
"hrs": "Hrs",
"workers": "$count trabajadores",
"clock_in": "ENTRADA",
"clock_out": "SALIDA",
"coverage": "Cobertura",
"workers_label": "$filled/$needed Trabajadores",
"confirmed_workers": "Trabajadores Confirmados",
"no_workers": "Ningún trabajador confirmado aún."
"no_workers": "Ningún trabajador confirmado aún.",
"today": "Hoy",
"tomorrow": "Mañana",
"workers_needed": "$count Trabajadores Necesarios",
"all_confirmed": "Todos los trabajadores confirmados",
"confirmed_workers_title": "TRABAJADORES CONFIRMADOS",
"message_all": "Mensaje a todos",
"show_more_workers": "Mostrar $count trabajadores más",
"checked_in": "Registrado",
"call_dialog": {
"title": "Llamar",
"message": "¿Quieres llamar a $phone?"
}
}
},
"client_billing": {
@@ -498,6 +526,10 @@
"menu_items": {
"personal_info": "Información Personal",
"emergency_contact": "Contacto de Emergencia",
"emergency_contact_page": {
"save_success": "Contactos de emergencia guardados con éxito",
"save_continue": "Guardar y Continuar"
},
"experience": "Experiencia",
"attire": "Vestimenta",
"documents": "Documentos",
@@ -853,6 +885,7 @@
},
"staff_certificates": {
"title": "Certificados",
"error_loading": "Error al cargar certificados",
"progress": {
"title": "Tu Progreso",
"verified_count": "$completed de $total verificados",
@@ -988,6 +1021,41 @@
"applying_dialog": {
"title": "Solicitando"
}
},
"card": {
"just_now": "Recién",
"assigned": "Asignado hace $time",
"accept_shift": "Aceptar turno",
"decline_shift": "Rechazar turno"
},
"my_shifts_tab": {
"confirm_dialog": {
"title": "Aceptar Turno",
"message": "¿Estás seguro de que quieres aceptar este turno?",
"success": "¡Turno confirmado!"
},
"decline_dialog": {
"title": "Rechazar Turno",
"message": "¿Estás seguro de que quieres rechazar este turno? Esta acción no se puede deshacer.",
"success": "Turno rechazado."
},
"sections": {
"awaiting": "Esperando Confirmación",
"cancelled": "Turnos Cancelados",
"confirmed": "Turnos Confirmados"
},
"empty": {
"title": "Sin turnos esta semana",
"subtitle": "Intenta buscar nuevos trabajos en la pestaña Buscar"
},
"date": {
"today": "Hoy",
"tomorrow": "Mañana"
},
"card": {
"cancelled": "CANCELADO",
"compensation": "• Compensación de 4h"
}
}
},
"staff_time_card": {