diff --git a/frontend/components/tabs/Law10Tab.tsx b/frontend/components/tabs/Law10Tab.tsx index e72d6c5..037c7a5 100644 --- a/frontend/components/tabs/Law10Tab.tsx +++ b/frontend/components/tabs/Law10Tab.tsx @@ -1217,11 +1217,11 @@ function Law10SummaryRoadmap({ - - - - - + + + + + @@ -1271,40 +1271,40 @@ function Law10SummaryRoadmap({
- Cumple: Requisito satisfecho + {t('law10.summaryTable.legend.complies')}
- Parcial: Requiere mejoras + {t('law10.summaryTable.legend.partial')}
- No Cumple: Accion urgente + {t('law10.summaryTable.legend.notComply')}
- Sin Datos: Campos no disponibles en CSV + {t('law10.summaryTable.legend.noData')}
{/* Inversion Estimada */}
-

Coste de no cumplimiento

-

Hasta 100K

-

Multas potenciales/infraccion

+

{t('law10.summaryTable.investment.nonComplianceCost')}

+

{t('law10.summaryTable.investment.upTo100k')}

+

{t('law10.summaryTable.investment.potentialFines')}

-

Inversion recomendada

+

{t('law10.summaryTable.investment.recommendedInvestment')}

{formatCurrency(estimatedInvestment())}

-

Basada en tu operacion

+

{t('law10.summaryTable.investment.basedOnOperation')}

-

ROI de cumplimiento

+

{t('law10.summaryTable.investment.complianceRoi')}

{data.economicModel?.roi3yr ? `${Math.round(data.economicModel.roi3yr / 2)}%` : 'Alto'}

-

Evitar sanciones + mejora CX

+

{t('law10.summaryTable.investment.avoidSanctions')}

@@ -1313,29 +1313,31 @@ function Law10SummaryRoadmap({ // Seccion: Resumen de Madurez de Datos function DataMaturitySummary({ data }: { data: AnalysisData }) { + const { t } = useTranslation(); + // Usar datos economicos reales cuando esten disponibles const currentAnnualCost = data.economicModel?.currentAnnualCost || 0; const annualSavings = data.economicModel?.annualSavings || 0; // Datos disponibles const availableData = [ - { name: 'Cobertura temporal 24/7', article: 'Art. 14' }, - { name: 'Distribucion geografica', article: 'Art. 15 parcial' }, - { name: 'Calidad resolucion proxy', article: 'Art. 17 indirecto' }, + { name: t('law10.dataMaturity.items.coverage247'), article: t('law10.dataMaturity.article', { number: '14' }) }, + { name: t('law10.dataMaturity.items.geoDistribution'), article: t('law10.dataMaturity.articlePartial', { number: '15' }) }, + { name: t('law10.dataMaturity.items.resolutionQuality'), article: t('law10.dataMaturity.articleIndirect', { number: '17' }) }, ]; // Datos estimables const estimableData = [ - { name: 'ASA <3min via proxy abandono', article: 'Art. 8.2', error: '±10%' }, - { name: 'Lenguas cooficiales via pais', article: 'Art. 15', error: 'sin detalle' }, + { name: t('law10.dataMaturity.items.asa3min'), article: t('law10.dataMaturity.article', { number: '8.2' }), error: t('law10.dataMaturity.errorMargin', { margin: '10' }) }, + { name: t('law10.dataMaturity.items.officialLanguages'), article: t('law10.dataMaturity.article', { number: '15' }), error: t('law10.dataMaturity.noDetail') }, ]; // Datos no disponibles const missingData = [ - { name: 'Tiempo resolucion casos', article: 'Art. 17' }, - { name: 'Cobros indebidos <5 dias', article: 'Art. 17' }, - { name: 'Transfer a supervisor', article: 'Art. 8' }, - { name: 'Info incidencias <2h', article: 'Art. 17' }, - { name: 'Auditoria ENAC', article: 'Art. 22', note: 'requiere contratacion externa' }, + { name: t('law10.dataMaturity.items.caseResolutionTime'), article: t('law10.dataMaturity.article', { number: '17' }) }, + { name: t('law10.dataMaturity.items.undueBilling'), article: t('law10.dataMaturity.article', { number: '17' }) }, + { name: t('law10.dataMaturity.items.supervisorTransfer'), article: t('law10.dataMaturity.article', { number: '8' }) }, + { name: t('law10.dataMaturity.items.incidentInfo'), article: t('law10.dataMaturity.article', { number: '17' }) }, + { name: t('law10.dataMaturity.items.enacAudit'), article: t('law10.dataMaturity.article', { number: '22' }), note: t('law10.dataMaturity.items.externalContractRequired') }, ]; return ( @@ -1344,17 +1346,17 @@ function DataMaturitySummary({ data }: { data: AnalysisData }) {
-

Resumen: Madurez de Datos para Compliance

+

{t('law10.dataMaturity.title')}

-

Tu nivel actual de instrumentacion:

+

{t('law10.dataMaturity.currentLevel')}

{/* Datos disponibles */}
-

DATOS DISPONIBLES (3/10)

+

{t('law10.dataMaturity.availableData')}

RequisitoDescripcionEstadoScoreGap{t('law10.summaryTable.requirement')}{t('law10.summaryTable.description')}{t('law10.summaryTable.status')}{t('law10.summaryTable.score')}{t('law10.summaryTable.gap')}