Improve the frontend and repository layer

This commit is contained in:
Urtzi Alfaro
2025-10-23 07:44:54 +02:00
parent 8d30172483
commit 07c33fa578
112 changed files with 14726 additions and 2733 deletions

View File

@@ -0,0 +1,131 @@
{
"title": "Settings",
"description": "Configure your bakery's operational parameters",
"save_all": "Save Changes",
"reset_all": "Reset All",
"unsaved_changes": "You have unsaved changes",
"discard": "Discard",
"save": "Save",
"loading": "Loading settings...",
"saving": "Saving...",
"procurement": {
"title": "Procurement and Sourcing",
"auto_approval": "Purchase Order Auto-Approval",
"auto_approve_enabled": "Enable purchase order auto-approval",
"auto_approve_threshold": "Auto-Approval Threshold (EUR)",
"min_supplier_score": "Minimum Supplier Score",
"require_approval_new_suppliers": "Require approval for new suppliers",
"require_approval_critical_items": "Require approval for critical items",
"planning": "Planning and Forecasting",
"lead_time_days": "Lead Time (days)",
"demand_forecast_days": "Demand Forecast Days",
"safety_stock_percentage": "Safety Stock (%)",
"workflow": "Approval Workflow",
"approval_reminder_hours": "Approval Reminder (hours)",
"critical_escalation_hours": "Critical Escalation (hours)"
},
"inventory": {
"title": "Inventory Management",
"stock_control": "Stock Control",
"low_stock_threshold": "Low Stock Threshold",
"reorder_point": "Reorder Point",
"reorder_quantity": "Reorder Quantity",
"expiration": "Expiration Management",
"expiring_soon_days": "Days for 'Expiring Soon'",
"expiration_warning_days": "Expiration Warning Days",
"quality_score_threshold": "Quality Threshold (0-10)",
"temperature": "Temperature Monitoring",
"temperature_monitoring_enabled": "Enable temperature monitoring",
"refrigeration": "Refrigeration (°C)",
"refrigeration_temp_min": "Minimum Temperature",
"refrigeration_temp_max": "Maximum Temperature",
"freezer": "Freezer (°C)",
"freezer_temp_min": "Minimum Temperature",
"freezer_temp_max": "Maximum Temperature",
"room_temp": "Room Temperature (°C)",
"room_temp_min": "Minimum Temperature",
"room_temp_max": "Maximum Temperature",
"temp_alerts": "Deviation Alerts",
"temp_deviation_alert_minutes": "Normal Deviation (minutes)",
"critical_temp_deviation_minutes": "Critical Deviation (minutes)"
},
"production": {
"title": "Production",
"planning": "Planning and Batches",
"planning_horizon_days": "Planning Horizon (days)",
"minimum_batch_size": "Minimum Batch Size",
"maximum_batch_size": "Maximum Batch Size",
"production_buffer_percentage": "Production Buffer (%)",
"schedule_optimization_enabled": "Enable schedule optimization",
"capacity": "Capacity and Working Hours",
"working_hours_per_day": "Working Hours per Day",
"max_overtime_hours": "Maximum Overtime Hours",
"capacity_utilization_target": "Capacity Utilization Target",
"capacity_warning_threshold": "Capacity Warning Threshold",
"quality": "Quality Control",
"quality_check_enabled": "Enable quality checks",
"minimum_yield_percentage": "Minimum Yield (%)",
"quality_score_threshold": "Quality Score Threshold (0-10)",
"time_buffers": "Time Buffers",
"prep_time_buffer_minutes": "Prep Time Buffer (minutes)",
"cleanup_time_buffer_minutes": "Cleanup Time Buffer (minutes)",
"costs": "Costs",
"labor_cost_per_hour": "Labor Cost per Hour (EUR)",
"overhead_cost_percentage": "Overhead Cost Percentage (%)"
},
"supplier": {
"title": "Supplier Management",
"default_terms": "Default Terms",
"default_payment_terms_days": "Default Payment Terms (days)",
"default_delivery_days": "Default Delivery Days",
"delivery_performance": "Performance Thresholds - Delivery",
"excellent_delivery_rate": "Excellent Delivery Rate (%)",
"good_delivery_rate": "Good Delivery Rate (%)",
"quality_performance": "Performance Thresholds - Quality",
"excellent_quality_rate": "Excellent Quality Rate (%)",
"good_quality_rate": "Good Quality Rate (%)",
"critical_alerts": "Critical Alerts",
"critical_delivery_delay_hours": "Critical Delivery Delay (hours)",
"critical_quality_rejection_rate": "Critical Quality Rejection Rate (%)",
"high_cost_variance_percentage": "High Cost Variance (%)",
"info": "These thresholds are used to automatically evaluate supplier performance. Suppliers performing below 'good' thresholds will receive automatic alerts."
},
"pos": {
"title": "Point of Sale (POS)",
"sync": "Synchronization",
"sync_interval_minutes": "Sync Interval (minutes)",
"sync_interval_help": "Frequency at which POS syncs with central system",
"auto_sync_products": "Automatic product synchronization",
"auto_sync_transactions": "Automatic transaction synchronization",
"info": "These settings control how information syncs between the central system and point of sale terminals.",
"info_details": [
"A shorter interval keeps data more current but uses more resources",
"Automatic synchronization ensures changes reflect immediately",
"Disabling automatic sync requires manual synchronization"
]
},
"order": {
"title": "Orders and Business Rules",
"pricing": "Discounts and Pricing",
"max_discount_percentage": "Maximum Discount (%)",
"max_discount_help": "Maximum discount percentage allowed on orders",
"discount_enabled": "Enable order discounts",
"dynamic_pricing_enabled": "Enable dynamic pricing",
"delivery": "Delivery Configuration",
"default_delivery_window_hours": "Default Delivery Window (hours)",
"default_delivery_window_help": "Default time for order delivery",
"delivery_tracking_enabled": "Enable delivery tracking",
"info": "These settings control the business rules applied to orders.",
"info_details": {
"dynamic_pricing": "Automatically adjusts prices based on demand, inventory, and other factors",
"discounts": "Allows applying discounts to products and orders within the set limit",
"delivery_tracking": "Enables customers to track their orders in real-time"
}
},
"messages": {
"save_success": "Settings saved successfully",
"save_error": "Error saving settings",
"load_error": "Error loading settings",
"validation_error": "Validation error"
}
}

View File

@@ -260,6 +260,50 @@
"subtitle": "No hidden costs, no long commitments. Start free and scale as you grow.",
"compare_link": "View complete feature comparison"
},
"sustainability": {
"badge": "UN SDG 12.3 & EU Green Deal Aligned",
"title_main": "Not Just Reduce Waste",
"title_accent": "Prove It to the World",
"subtitle": "The only AI platform with built-in UN SDG 12.3 compliance tracking. Reduce waste, save money, and qualify for EU sustainability grants—all with verifiable environmental impact metrics.",
"metrics": {
"co2_avoided": "CO₂ Avoided Monthly",
"co2_equivalent": "Equivalent to 43 trees planted",
"water_saved": "Water Saved Monthly",
"water_equivalent": "Equivalent to 4,500 showers",
"grants_eligible": "Grant Programs Eligible",
"grants_value": "Up to €50,000 in funding"
},
"sdg": {
"title": "UN SDG 12.3 Compliance",
"subtitle": "Halve food waste by 2030",
"description": "Real-time tracking toward the UN Sustainable Development Goal 12.3 target. Our AI helps you achieve 50% waste reduction with verifiable, auditable data for grant applications and certifications.",
"progress_label": "Progress to Target",
"baseline": "Baseline",
"current": "Current",
"target": "Target 2030",
"features": {
"tracking": "Automated waste baseline and progress tracking",
"export": "One-click grant application report export",
"certification": "Certification-ready environmental impact data"
}
},
"grants": {
"eu_horizon": "EU Horizon Europe",
"eu_horizon_req": "Requires 30% reduction",
"farm_to_fork": "Farm to Fork",
"farm_to_fork_req": "Requires 20% reduction",
"circular_economy": "Circular Economy",
"circular_economy_req": "Requires 15% reduction",
"un_sdg": "UN SDG Certified",
"un_sdg_req": "Requires 50% reduction",
"eligible": "Eligible",
"on_track": "On Track"
},
"differentiator": {
"title": "The Only AI Platform",
"description": "With built-in UN SDG 12.3 tracking, real-time environmental impact calculations, and one-click grant application exports. Not just reduce waste—prove it."
}
},
"final_cta": {
"scarcity_badge": "12 spots remaining of the 20 pilot program",
"title": "Be Among the First 20 Bakeries",

View File

@@ -0,0 +1,93 @@
{
"widget": {
"title": "Sustainability Impact",
"subtitle": "Environmental & SDG 12.3 Compliance",
"footer": "Aligned with UN SDG 12.3 & EU Green Deal"
},
"sdg": {
"progress_label": "SDG 12.3 Target Progress",
"target_note": "Target: 50% food waste reduction by 2030",
"status": {
"compliant": "SDG 12.3 Compliant",
"on_track": "On Track to Compliance",
"progressing": "Making Progress",
"baseline": "Establishing Baseline"
}
},
"metrics": {
"waste_reduction": "Waste Reduction",
"co2_avoided": "CO₂ Avoided",
"water_saved": "Water Saved",
"grants_eligible": "Grants Eligible",
"trees": "trees",
"programs": "programs"
},
"financial": {
"potential_savings": "Potential Monthly Savings"
},
"actions": {
"view_details": "View Details",
"export_report": "Export Report"
},
"errors": {
"load_failed": "Unable to load sustainability metrics"
},
"dashboard": {
"title": "Sustainability Dashboard",
"description": "Environmental Impact & Grant Readiness"
},
"environmental": {
"co2_emissions": "CO₂ Emissions",
"water_footprint": "Water Footprint",
"land_use": "Land Use",
"equivalents": {
"car_km": "Car kilometers equivalent",
"showers": "Showers equivalent",
"phones": "Smartphone charges",
"trees_planted": "Trees to plant"
}
},
"grants": {
"title": "Grant Program Eligibility",
"overall_readiness": "Overall Readiness",
"programs": {
"eu_horizon_europe": "EU Horizon Europe",
"eu_farm_to_fork": "EU Farm to Fork",
"national_circular_economy": "Circular Economy Grants",
"un_sdg_certified": "UN SDG Certification"
},
"confidence": {
"high": "High Confidence",
"medium": "Medium Confidence",
"low": "Low Confidence"
},
"status": {
"eligible": "Eligible",
"not_eligible": "Not Eligible",
"requirements_met": "Requirements Met"
}
},
"waste": {
"total_waste": "Total Food Waste",
"production_waste": "Production Waste",
"inventory_waste": "Inventory Waste",
"by_reason": {
"production_defects": "Production Defects",
"expired_inventory": "Expired Inventory",
"damaged_inventory": "Damaged Inventory",
"overproduction": "Overproduction"
}
},
"report": {
"title": "Sustainability Report",
"export_success": "Report exported successfully",
"export_error": "Failed to export report",
"types": {
"general": "General Sustainability Report",
"eu_horizon": "EU Horizon Europe Format",
"farm_to_fork": "Farm to Fork Report",
"circular_economy": "Circular Economy Report",
"un_sdg": "UN SDG Certification Report"
}
}
}