Create the frontend receipes page to use real API

This commit is contained in:
Urtzi Alfaro
2025-09-19 21:39:04 +02:00
parent 8002d89d2b
commit d18c64ce6e
36 changed files with 3356 additions and 3171 deletions

View File

@@ -0,0 +1,267 @@
{
"title": "Recipe Management",
"subtitle": "Manage your bakery's recipes",
"navigation": {
"all_recipes": "All Recipes",
"active_recipes": "Active Recipes",
"draft_recipes": "Drafts",
"signature_recipes": "Signature Recipes",
"seasonal_recipes": "Seasonal Recipes",
"production_batches": "Production Batches"
},
"actions": {
"create_recipe": "Create Recipe",
"edit_recipe": "Edit Recipe",
"duplicate_recipe": "Duplicate Recipe",
"activate_recipe": "Activate Recipe",
"archive_recipe": "Archive Recipe",
"delete_recipe": "Delete Recipe",
"view_recipe": "View Recipe",
"check_feasibility": "Check Feasibility",
"create_batch": "Create Batch",
"start_production": "Start Production",
"complete_batch": "Complete Batch",
"cancel_batch": "Cancel Batch",
"export_recipe": "Export Recipe",
"print_recipe": "Print Recipe"
},
"fields": {
"name": "Recipe Name",
"recipe_code": "Recipe Code",
"version": "Version",
"description": "Description",
"category": "Category",
"cuisine_type": "Cuisine Type",
"difficulty_level": "Difficulty Level",
"yield_quantity": "Yield Quantity",
"yield_unit": "Yield Unit",
"prep_time": "Preparation Time",
"cook_time": "Cooking Time",
"total_time": "Total Time",
"rest_time": "Rest Time",
"instructions": "Instructions",
"preparation_notes": "Preparation Notes",
"storage_instructions": "Storage Instructions",
"quality_standards": "Quality Standards",
"serves_count": "Serving Count",
"is_seasonal": "Is Seasonal",
"season_start": "Season Start",
"season_end": "Season End",
"is_signature": "Is Signature Recipe",
"target_margin": "Target Margin",
"batch_multiplier": "Batch Multiplier",
"min_batch_size": "Minimum Batch Size",
"max_batch_size": "Maximum Batch Size",
"optimal_temperature": "Optimal Temperature",
"optimal_humidity": "Optimal Humidity",
"allergens": "Allergens",
"dietary_tags": "Dietary Tags",
"nutritional_info": "Nutritional Information"
},
"ingredients": {
"title": "Ingredients",
"add_ingredient": "Add Ingredient",
"remove_ingredient": "Remove Ingredient",
"ingredient_name": "Ingredient Name",
"quantity": "Quantity",
"unit": "Unit",
"alternative_quantity": "Alternative Quantity",
"alternative_unit": "Alternative Unit",
"preparation_method": "Preparation Method",
"notes": "Ingredient Notes",
"is_optional": "Is Optional",
"ingredient_order": "Order",
"ingredient_group": "Group",
"substitutions": "Substitutions",
"substitution_ratio": "Substitution Ratio",
"cost_per_unit": "Cost per Unit",
"total_cost": "Total Cost",
"groups": {
"wet_ingredients": "Wet Ingredients",
"dry_ingredients": "Dry Ingredients",
"spices": "Spices & Seasonings",
"toppings": "Toppings",
"fillings": "Fillings",
"decorations": "Decorations"
}
},
"status": {
"draft": "Draft",
"active": "Active",
"testing": "Testing",
"archived": "Archived",
"discontinued": "Discontinued"
},
"difficulty": {
"1": "Very Easy",
"2": "Easy",
"3": "Intermediate",
"4": "Hard",
"5": "Very Hard"
},
"units": {
"g": "grams",
"kg": "kilograms",
"ml": "milliliters",
"l": "liters",
"cups": "cups",
"tbsp": "tablespoons",
"tsp": "teaspoons",
"units": "units",
"pieces": "pieces",
"%": "percentage"
},
"categories": {
"bread": "Breads",
"pastry": "Pastries",
"cake": "Cakes & Tarts",
"cookies": "Cookies",
"savory": "Savory",
"desserts": "Desserts",
"seasonal": "Seasonal",
"specialty": "Specialties"
},
"dietary_tags": {
"vegan": "Vegan",
"vegetarian": "Vegetarian",
"gluten_free": "Gluten Free",
"dairy_free": "Dairy Free",
"nut_free": "Nut Free",
"sugar_free": "Sugar Free",
"low_carb": "Low Carb",
"keto": "Keto",
"organic": "Organic"
},
"allergens": {
"gluten": "Gluten",
"dairy": "Dairy",
"eggs": "Eggs",
"nuts": "Tree Nuts",
"soy": "Soy",
"sesame": "Sesame",
"fish": "Fish",
"shellfish": "Shellfish"
},
"production": {
"title": "Production",
"batch_number": "Batch Number",
"production_date": "Production Date",
"planned_quantity": "Planned Quantity",
"actual_quantity": "Actual Quantity",
"yield_percentage": "Yield Percentage",
"priority": "Priority",
"assigned_staff": "Assigned Staff",
"production_notes": "Production Notes",
"quality_score": "Quality Score",
"quality_notes": "Quality Notes",
"defect_rate": "Defect Rate",
"rework_required": "Rework Required",
"waste_quantity": "Waste Quantity",
"waste_reason": "Waste Reason",
"efficiency": "Efficiency",
"material_cost": "Material Cost",
"labor_cost": "Labor Cost",
"overhead_cost": "Overhead Cost",
"total_cost": "Total Cost",
"cost_per_unit": "Cost per Unit",
"status": {
"planned": "Planned",
"in_progress": "In Progress",
"completed": "Completed",
"failed": "Failed",
"cancelled": "Cancelled"
},
"priority": {
"low": "Low",
"normal": "Normal",
"high": "High",
"urgent": "Urgent"
}
},
"feasibility": {
"title": "Feasibility Check",
"feasible": "Feasible",
"not_feasible": "Not Feasible",
"missing_ingredients": "Missing Ingredients",
"insufficient_ingredients": "Insufficient Ingredients",
"batch_multiplier": "Batch Multiplier",
"required_quantity": "Required Quantity",
"available_quantity": "Available Quantity",
"shortage": "Shortage"
},
"statistics": {
"title": "Recipe Statistics",
"total_recipes": "Total Recipes",
"active_recipes": "Active Recipes",
"signature_recipes": "Signature Recipes",
"seasonal_recipes": "Seasonal Recipes",
"category_breakdown": "Category Breakdown",
"most_popular": "Most Popular",
"most_profitable": "Most Profitable",
"production_volume": "Production Volume"
},
"filters": {
"all": "All",
"search_placeholder": "Search recipes...",
"status_filter": "Filter by Status",
"category_filter": "Filter by Category",
"difficulty_filter": "Filter by Difficulty",
"seasonal_filter": "Seasonal Recipes Only",
"signature_filter": "Signature Recipes Only",
"clear_filters": "Clear Filters"
},
"costs": {
"estimated_cost": "Estimated Cost",
"last_calculated": "Last Calculated",
"suggested_price": "Suggested Price",
"margin_percentage": "Margin Percentage",
"cost_breakdown": "Cost Breakdown",
"ingredient_costs": "Ingredient Costs",
"labor_costs": "Labor Costs",
"overhead_costs": "Overhead Costs"
},
"messages": {
"recipe_created": "Recipe created successfully",
"recipe_updated": "Recipe updated successfully",
"recipe_deleted": "Recipe deleted successfully",
"recipe_duplicated": "Recipe duplicated successfully",
"recipe_activated": "Recipe activated successfully",
"batch_created": "Production batch created successfully",
"batch_started": "Production started successfully",
"batch_completed": "Batch completed successfully",
"batch_cancelled": "Batch cancelled successfully",
"feasibility_checked": "Feasibility checked",
"loading_recipes": "Loading recipes...",
"loading_recipe": "Loading recipe...",
"no_recipes_found": "No recipes found",
"no_ingredients": "No ingredients added",
"confirm_delete": "Are you sure you want to delete this recipe?",
"confirm_cancel_batch": "Are you sure you want to cancel this batch?",
"recipe_name_required": "Recipe name is required",
"at_least_one_ingredient": "Must add at least one ingredient",
"invalid_quantity": "Quantity must be greater than 0",
"ingredient_required": "Must select an ingredient"
},
"placeholders": {
"recipe_name": "e.g. Classic Sourdough Bread",
"recipe_code": "e.g. BRD-001",
"description": "Describe the unique aspects of this recipe...",
"preparation_notes": "Special notes for preparation...",
"storage_instructions": "How to store the finished product...",
"quality_standards": "Quality criteria for the final product...",
"batch_number": "e.g. BATCH-20231201-001",
"production_notes": "Specific notes for this batch...",
"quality_notes": "Quality observations...",
"waste_reason": "Reason for waste..."
},
"tooltips": {
"difficulty_level": "Level from 1 (very easy) to 5 (very hard)",
"yield_quantity": "Amount this recipe produces",
"batch_multiplier": "Factor to scale the recipe",
"target_margin": "Target profit margin percentage",
"optimal_temperature": "Ideal temperature for production",
"optimal_humidity": "Ideal humidity for production",
"is_seasonal": "Check if this is a seasonal recipe",
"is_signature": "Check if this is a bakery signature recipe"
}
}