refactor(i18n): split content into structure JSON and per-language dictionaries

Phase 1 of spec-v4-live-edit: data/i18n foundation, no visible feature.

- src/data/{profile,skills,experience,projects}.json: language-neutral
  structure documents with thin typed loaders; all prose moved to
  src/i18n/locales/{vi,en}/content.json; chrome strings to ui.json
- src/i18n/: dict-types, cross-document validator (runs at module load and
  via pnpm validate:content), loader joining structure+text once (UI/CONTENT),
  I18nProvider/useI18n mounted in App under LanguageProvider
- all 22 consumers read joined records via useI18n(); field.ts and
  strings.ts deleted; *En field pairs removed from the domain types
- hero tagline renders as plain-text segments (D9); philosophy quotes as
  paragraph arrays; footer display name now localizes per language (D6)
- resume generator consumes UI/CONTENT; generated resume HTML verified
  byte-identical (EN+VI) before/after the migration
- AGENTS.md and v3/v3-i18n + v4 specs updated; deploy.yml concurrency group
This commit is contained in:
dong.nguyen committed 2026-10-22 07:29:06 +07:00
1 parent f5687cce1c
commit e6b4d83084
50 files changed
+2215 -961

No files matched your search

+131
View File
@@ -0,0 +1,131 @@
[
{
"id": "iot-dws-integration",
"category": "logistics",
"role": "Senior Software Engineer — System Owner",
"technologies": [
"Java",
"HTTP",
"HMAC",
"RocketMQ",
"DWS"
],
"metrics": [
"16 sortations deployed"
],
"featured": true,
"sections": [
{
"id": "context",
"type": "text"
},
{
"id": "problem",
"type": "text"
},
{
"id": "solution",
"type": "text"
},
{
"id": "architecture",
"type": "diagram"
},
{
"id": "challenges",
"type": "text"
},
{
"id": "result",
"type": "text"
}
]
},
{
"id": "awb-detection",
"category": "computer-vision",
"role": "Senior Software Engineer — ML Engineering",
"technologies": [
"Python",
"OpenCV",
"YOLO",
"ONNX",
"OCR"
],
"metrics": [
"70,000 images/month processed"
],
"featured": true,
"sections": [
{
"id": "context",
"type": "text"
},
{
"id": "problem",
"type": "text"
},
{
"id": "pipeline",
"type": "diagram"
},
{
"id": "challenges",
"type": "text"
},
{
"id": "result",
"type": "text"
}
]
},
{
"id": "facility-management",
"category": "software-engineering",
"role": "Senior Software Engineer — Platform Design",
"technologies": [
"Go",
"TypeScript",
"Docker",
"Event-driven"
],
"featured": true,
"sections": [
{
"id": "vision",
"type": "text"
},
{
"id": "architecture",
"type": "diagram"
},
{
"id": "result",
"type": "text"
}
]
},
{
"id": "local-llm-experiments",
"category": "experiment",
"role": "Engineering Experiment",
"technologies": [
"llama.cpp",
"Qwen",
"MoE",
"Python",
"CUDA"
],
"featured": true,
"sections": [
{
"id": "exploration",
"type": "text"
},
{
"id": "learnings",
"type": "text"
}
]
}
]