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:
juanatsap
2025-11-09 20:59:10 +00:00
parent 1fc30f6525
commit de0c443764
4 changed files with 53 additions and 11 deletions
+13
View File
@@ -911,6 +911,19 @@
"other": {
"driverLicense": "<strong>Type B</strong>"
},
"ui": {
"infoModal": {
"title": "About this CV",
"description": "This interactive CV was built by myself with <strong>Go + HTMX</strong>, showcasing modern hypermedia architecture without heavy JavaScript frameworks.",
"techStack": {
"goHono": "Go + Hono",
"htmx": "HTMX",
"html5": "Semantic HTML5",
"css3": "Pure CSS3"
},
"viewSource": "View Source Code"
}
},
"meta": {
"version": "2025-11-09",
"lastUpdated": "2025-11-08",