Claude
5dacb939c9
feat: Add i18n support for AI insights with structured reasoning
Complete i18n implementation for internal service reasoning:
- Update AIInsight interface to include reasoning_data field
- Integrate useReasoningTranslation hook in AI Insights page
- Add translation keys for safety stock, price forecaster, and optimization
Translation coverage (EN/ES/EU):
- Safety Stock: statistical z-score, advanced variability, fixed percentage, errors
- Price Forecaster: price change predictions, volatility alerts, buying recommendations
- Optimization: EOQ calculations, MOQ/max constraints, tier pricing
Benefits:
- AI insights now display in user's preferred language
- Consistent with PO/Batch reasoning translation pattern
- Structured parameters enable rich, contextualized translations
- Falls back gracefully to description field if translation missing
Implementation:
- frontend/src/api/services/aiInsights.ts: Add reasoning_data to interface
- frontend/src/pages/app/analytics/ai-insights/AIInsightsPage.tsx: Translate insights
- frontend/src/locales/*/reasoning.json: Add safetyStock, priceForecaster, optimization keys
This completes the full i18n implementation for the bakery AI system.
2025-11-07 19:25:08 +00:00
..
2025-11-07 19:25:08 +00:00
2025-10-21 19:50:07 +02:00
2025-09-05 22:46:28 +02:00
2025-11-02 20:24:44 +01:00
2025-10-27 16:33:26 +01:00
2025-10-16 07:28:04 +02:00
2025-10-12 18:47:33 +02:00
2025-10-29 06:58:05 +01:00
2025-10-09 14:11:02 +02:00
2025-10-07 07:15:07 +02:00
2025-10-06 15:27:01 +02:00
2025-10-15 16:12:49 +02:00
2025-10-06 15:27:01 +02:00
2025-10-30 21:08:07 +01:00
2025-11-01 21:35:03 +01:00
2025-10-27 16:33:26 +01:00
2025-11-05 13:34:56 +01:00
2025-10-24 13:05:04 +02:00
2025-10-31 18:57:58 +01:00
2025-09-24 16:42:23 +02:00
2025-10-27 16:33:26 +01:00
2025-10-07 07:15:07 +02:00
2025-10-23 07:44:54 +02:00
2025-10-31 11:54:19 +01:00
2025-10-29 06:58:05 +01:00
2025-10-23 07:44:54 +02:00
2025-11-01 21:35:03 +01:00
2025-10-19 19:22:37 +02:00
2025-10-27 16:33:26 +01:00