Commit Graph

5 Commits

Author SHA1 Message Date
Claude
bafd8e3f61 feat: complete translation of remaining Spanish strings in Law10Tab and RoadmapTab
Law10Tab changes:
- Fixed 3 Spanish time unit abbreviations (año→yr, mes→mo)
- Changed "65K/año" to "65K/yr" (line 1444)
- Changed "35K + 8K/mes" to "35K + 8K/mo" (line 1448)
- Changed "12-18K/año" to "12-18K/yr" (line 1452)

RoadmapTab changes (41 strings translated):
- Translated DECISION_GATES object (18 keys) - converted to getDecisionGates(t) function
- Translated timeline title and description (2 keys)
- Translated all payback tooltip texts (5 keys)
- Translated wave descriptions and recommendations (12 keys)
- Translated scenario comparison texts (4 keys)
- Added useTranslation() hook to RoadmapTimeline component
- Updated recommendation generation to use t() with interpolation

Translation keys added:
- roadmap.payback.* (5 new keys)
- roadmap.decisionGates.* (12 keys)
- roadmap.timeline.* (2 keys)
- roadmap.specificRecommendations.* (12 keys)
- roadmap.scenarios.* (3 keys)
- roadmap.wave2Description.* (2 keys)

All components now fully support Spanish-English translation switching.

https://claude.ai/code/session_01GNbnkFoESkRcnPr3bLCYDg
2026-02-07 18:40:10 +00:00
Claude
496da958c2 Fix RoadmapTab runtime error: pass t parameter to helper functions
Fixed "ReferenceError: t is not defined" error by:
- Adding t parameter to calcularPaybackCompleto() function
- Adding t parameter to formatearPaybackResult() function
- Updating all call sites to pass t from useTranslation() hook

Helper functions defined outside React components cannot directly
access the t() function from useTranslation() hook. They must receive
it as a parameter from the component.

https://claude.ai/code/session_01GNbnkFoESkRcnPr3bLCYDg
2026-02-07 18:05:47 +00:00
Claude
0b778557d3 feat: complete RoadmapTab Spanish-to-English translation
Translate all remaining ~30 hardcoded Spanish strings in RoadmapTab:
- Wave 1-4 iniciativas: nombres and KPIs now use t('roadmap.initiatives.*')
- Wave 1-4 criteriosExito: success criteria use t('roadmap.successCriteriaTemplates.*')
- Wave 1-4 porQueNecesario: descriptions use t('roadmap.porQueNecesarioTemplates.*')
- Skills fallback values: use t('roadmap.fallbackSkills.*')

All translation keys properly interpolate dynamic values (counts, volumes, percentages).
RoadmapTab now uses 137+ translation keys for complete EN/ES language support.
Frontend compiles successfully with no errors.

Translation coverage:
- Tier labels, payback messages, wave metadata
- Initiatives, success criteria, decision gates
- Investment scenarios, timeline, comparison tables
- Entry/exit criteria, recommendations

https://claude.ai/code/session_01GNbnkFoESkRcnPr3bLCYDg
2026-02-07 17:55:17 +00:00
Claude
cbe074f43c refactor: implement i18n in RoadmapTab and Law10Tab (phase 5)
Refactored two major tab components to use react-i18next:

RoadmapTab (2,719 lines):
- Opportunity bubble chart with all quadrants and methodology
- Wave cards with risk levels and strategic recommendations
- Tier classification (TIER 1-4) with distribution analysis
- Economic impact and feasibility axis labels
- 100+ translation keys for visualization and strategy content

Law10Tab (1,533 lines):
- Spanish regulatory compliance (Ley 10/2025) analysis
- All 12 requirements with status evaluations
- Time coverage, response speed, resolution quality sections
- Compliance messages and action recommendations
- 80+ translation keys for regulatory content

Added comprehensive translation keys to es.json and en.json:
- roadmap section: 100+ keys
- law10 section: 80+ keys

Build verified successfully.

https://claude.ai/code/session_4f888c33-8937-4db8-8a9d-ddc9ac51a725
2026-02-06 19:43:01 +00:00
sujucu70
1bb0765766 Initial commit - ACME demo version 2026-02-04 11:08:21 +01:00