feat: add bilingual support to info modal
- Added 'ui' section to cv-en.json and cv-es.json with modal translations - Updated Go models to include UI, InfoModal, and TechStack structs - Modified template to use JSON data instead of inline if/else statements - Used template.HTML for Description field to allow HTML rendering - Modal now fully supports English and Spanish translations Translations include: - Modal title - Description text - Tech stack labels (HTML5 Semántico vs Semantic HTML5, etc.) - View source button text
This commit is contained in:
@@ -916,6 +916,19 @@
|
||||
"other": {
|
||||
"driverLicense": "<strong>Tipo B</strong>"
|
||||
},
|
||||
"ui": {
|
||||
"infoModal": {
|
||||
"title": "Acerca de este CV",
|
||||
"description": "Este CV interactivo fue construido por mí mismo con <strong>Go + HTMX</strong>, demostrando arquitectura moderna de hipermedia sin frameworks pesados de JavaScript.",
|
||||
"techStack": {
|
||||
"goHono": "Go + Hono",
|
||||
"htmx": "HTMX",
|
||||
"html5": "HTML5 Semántico",
|
||||
"css3": "CSS3 Puro"
|
||||
},
|
||||
"viewSource": "Ver código fuente"
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"version": "2025-11-09",
|
||||
"lastUpdated": "2025-11-08",
|
||||
|
||||
Reference in New Issue
Block a user