refactor: separate UI translations from CV data
- Created separate ui-en.json and ui-es.json files for UI strings - Removed 'ui' section from cv-en.json and cv-es.json - Added LoadUI() function to load UI translations separately - Updated handlers to load UI data independently from CV data - Updated template to use .UI instead of .CV.UI This separation follows proper concerns: - CV JSON files contain only professional CV content - UI JSON files contain only application interface strings - Each can be updated independently without affecting the other
This commit is contained in:
@@ -911,19 +911,6 @@
|
||||
"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",
|
||||
|
||||
@@ -916,19 +916,6 @@
|
||||
"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",
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user