fix: translate remaining Spanish UI strings and comments to English
- Law10Tab.tsx: Replace hardcoded "Resumen de Cumplimiento" title with translation key - backendMapper.ts: Translate 3 hardcoded Spanish UI strings and ~20 code comments - dataTransformation.ts: Translate Spanish comment about division by zero validation All UI strings now properly use i18next translation keys for EN/ES language switching. Frontend compilation successful with no errors. https://claude.ai/code/session_01GNbnkFoESkRcnPr3bLCYDg
This commit is contained in:
@@ -294,7 +294,7 @@ export function generateTransformationSummary(
|
||||
const assistCount = agenticReadiness.filter(s => s.readiness_category === 'assist_copilot').length;
|
||||
const optimizeCount = agenticReadiness.filter(s => s.readiness_category === 'optimize_first').length;
|
||||
|
||||
// Validar que skillsCount no sea 0 para evitar división por cero
|
||||
// Validate that skillsCount is not 0 to avoid division by zero
|
||||
const automatePercent = skillsCount > 0 ? ((automateCount/skillsCount)*100).toFixed(0) : '0';
|
||||
const assistPercent = skillsCount > 0 ? ((assistCount/skillsCount)*100).toFixed(0) : '0';
|
||||
const optimizePercent = skillsCount > 0 ? ((optimizeCount/skillsCount)*100).toFixed(0) : '0';
|
||||
|
||||
Reference in New Issue
Block a user