refactor(i18n): move person text out of ui.json and localize structure-held strings (spec-v4 rows 18-19)

Row 18: ui.about.subtitle/experience.tldrText/philosophy.quotes -> profile.subtitle/.tldr/.philosophyQuotes in content.{vi,en}.json; call sites repointed with EditableText wrap; SectionHeading subtitle prop becomes ReactNode; edit.fields labels added. Row 19: experience.company/.duration, projects.role/.metrics, profile.currentInterests/.roles, philosophy keywords move to text documents; VI carries localized dates/company labels/metrics, en overrides with originals, proper nouns and term lists identical (en omits); draft templates, JsonPanel hints, loader comments, resume TL;DR follow the new shapes. Verified: build, validate:content, lint (no new warnings), smoke-draft 7/7, per-language SSR marker smoke on affected routes, build:resume-all.
This commit is contained in:
dong.nguyen committed 2026-10-22 22:53:26 +07:00
1 parent 2c3ee8271d
commit fecbd44899
23 files changed
+273 -169

No files matched your search

+28 -9
View File
@@ -21,17 +21,16 @@ export type ProjectSectionStructure = {
export type ProjectStructure = {
id: ProjectId;
category: ProjectCategory;
role: string;
technologies: string[];
metrics?: string[];
featured: boolean;
sections: ProjectSectionStructure[];
};
// Only language-neutral fields stay: location is a proper noun, `variant` and
// `logo` are decoration switches. Company and duration are display strings and
// therefore text (row 19) — the timeline renders them per language.
export type ExperienceStructure = {
id: ExperienceId;
company: string;
duration: string;
location?: string;
variant?: 'current' | 'gap';
logo?: string;
@@ -49,11 +48,10 @@ export type ProfileStructure = {
linkedinHandle: string;
telegramUrl: string;
telegramHandle: string;
currentInterests: string[];
roles: string[];
// The display name is localized (D6) and therefore lives in the text
// documents, never here; only the language-neutral name parts stay.
philosophy: Array<{ id: PhilosophyId; keywords: string[] }>;
// Philosophy keeps only the ordered ids — keywords are display text (row 19).
philosophy: Array<{ id: PhilosophyId }>;
};
// --- text (src/i18n/locales/{vi,en}/content.json) ---
@@ -69,10 +67,17 @@ export type SectionText = { title: string; content: string };
export type ProjectText = {
title: string;
summary: string;
role: string;
metrics?: string[];
sections: Record<string, SectionText>;
};
export type ExperienceText = { title: string; responsibilities: string[] };
export type ExperienceText = {
title: string;
company: string;
duration: string;
responsibilities: string[];
};
export type SkillGroupText = { title: string };
@@ -80,8 +85,22 @@ export type ProfileText = {
name: string;
title: string;
bio: string;
// Row 18: the /about heading subtitle, the timeline TL;DR line, and the
// philosophy essays are person text, not chrome — they moved out of ui.json
// so edit mode can edit them like any other content.
subtitle: string;
tldr: string;
tagline: TaglineSegment[];
philosophy: Record<PhilosophyId, { title: string; description: string }>;
// Row 19: tag lists are display text. Term lists (interests, roles) follow
// the technologies/skills convention — EN-only until the owner translates
// them in the text document; the field is now localizable per language.
currentInterests: string[];
roles: string[];
philosophyQuotes: Array<{ title: string; details: string[] }>;
philosophy: Record<
PhilosophyId,
{ title: string; description: string; keywords: string[] }
>;
};
export type ContentVi = {
+6 -6
View File
@@ -410,17 +410,17 @@ export class DraftStore {
if (kind === 'project') {
const projects = structuredClone(this.dataOf('projects')) as Record<string, any>[];
const id = uniqueId('new-project', projects.map((p) => p.id));
projects.push({ id, category: 'experiment', role: 'Owner', technologies: [], featured: false, sections: [] });
projects.push({ id, category: 'experiment', technologies: [], featured: false, sections: [] });
candidates.set('projects', projects);
const stub = { title: 'New project', summary: 'Write the summary here.', sections: {} };
const stub = { title: 'New project', summary: 'Write the summary here.', role: 'Owner', sections: {} };
vi.projects = { ...vi.projects, [id]: structuredClone(stub) };
en.projects = { ...en.projects, [id]: structuredClone(stub) };
} else if (kind === 'experience') {
const experiences = structuredClone(this.dataOf('experience')) as Record<string, any>[];
const id = uniqueId('new-experience', experiences.map((e) => e.id));
experiences.push({ id, company: 'New company', duration: 'present' });
experiences.push({ id });
candidates.set('experience', experiences);
const stub = { title: 'New role', responsibilities: ['Write a responsibility here.'] };
const stub = { title: 'New role', company: 'New company', duration: 'present', responsibilities: ['Write a responsibility here.'] };
vi.experience = { ...vi.experience, [id]: structuredClone(stub) };
en.experience = { ...en.experience, [id]: structuredClone(stub) };
} else if (kind === 'skill-group') {
@@ -434,9 +434,9 @@ export class DraftStore {
const profile = structuredClone(this.dataOf('profile')) as Record<string, any>;
const points = profile.philosophy as Record<string, any>[];
const id = uniqueId('new-philosophy-point', points.map((p) => p.id));
points.push({ id, keywords: ['new-keyword'] });
points.push({ id });
candidates.set('profile', profile);
const stub = { title: 'New principle', description: 'Write the principle here.' };
const stub = { title: 'New principle', description: 'Write the principle here.', keywords: ['new-keyword'] };
vi.profile = { ...vi.profile, philosophy: { ...vi.profile.philosophy, [id]: structuredClone(stub) } };
en.profile = { ...en.profile, philosophy: { ...en.profile.philosophy, [id]: structuredClone(stub) } };
} else {
+9 -7
View File
@@ -18,6 +18,7 @@ import type {
ProfileText,
ProjectSectionStructure,
ProjectStructure,
ProjectText,
SectionText,
SkillGroupStructure,
SkillGroupText,
@@ -71,15 +72,14 @@ export const UI: Record<Language, UIDict> = { vi: uiVi, en: uiEn };
// Resolved records: structure joined with text. These are the shapes every
// component consumes.
export type ResolvedProjectSection = ProjectSectionStructure & SectionText;
export type ResolvedProject = Omit<ProjectStructure, 'sections'> & {
title: string;
summary: string;
sections: ResolvedProjectSection[];
};
export type ResolvedProject = Omit<ProjectStructure, 'sections'> &
Pick<ProjectText, 'title' | 'summary' | 'role' | 'metrics'> & {
sections: ResolvedProjectSection[];
};
export type ResolvedExperienceEntry = ExperienceStructure & ExperienceText;
export type ResolvedSkillGroup = SkillGroupStructure & SkillGroupText;
// Structure carries philosophy as an ordered {id, keywords} array, text as a
// Record keyed by id — the join merges them back into one ordered array.
// Structure carries philosophy as the ordered id array, text as a Record
// keyed by id — the join merges them back into one ordered array.
export type ResolvedPhilosophyPoint = {
id: PhilosophyId;
keywords: string[];
@@ -120,6 +120,8 @@ function joinContent(structures: ContentStructures, text: ContentVi): ResolvedCo
...project,
title: text_.title,
summary: text_.summary,
role: text_.role,
metrics: text_.metrics,
sections: project.sections.map((section) => ({
...section,
...text_.sections[section.id],
+23
View File
@@ -2,11 +2,23 @@
"profile": {
"name": "Dong Nguyen",
"bio": "Senior Software Engineer with experience building distributed systems, logistics technology, and AI/ML applications for real-world problems. Focused on system architecture, integration, and production-grade solutions.",
"subtitle": "Senior Software Engineer with deep expertise in distributed systems, logistics technology, and practical AI applications.",
"tldr": "15 years of experience, more than 8 companies along the way. Too long to tell.",
"tagline": [
{
"text": "Building scalable software systems, intelligent logistics solutions, and practical AI applications."
}
],
"philosophyQuotes": [
{
"title": "Time is priceless",
"details": [
"Time is priceless. You can’t buy it, pause it, or rewind it. Once it’s gone, it’s gone for good.",
"We spend so much of our lives chasing things—money, status, validation—but time is the one thing we can never earn back.",
"So be mindful of how you use it. Invest it in what truly matters: the people you love, the goals that inspire you, the moments that feed your soul."
]
}
],
"philosophy": {
"build-for-the-real-problem": {
"title": "Build for the real problem",
@@ -27,17 +39,22 @@
"experience": {
"open-to-work": {
"title": "Seeking a New Place",
"company": "Open to new opportunities",
"duration": "Nov 2026 – Present",
"responsibilities": [
"Open to Senior Engineer roles: system architecture, integration platforms, full-stack delivery"
]
},
"relax-gap": {
"title": "Relax",
"company": "Career break",
"duration": "Aug 2026 – Oct 2026",
"responsibilities": [
"Intentional break between roles — recovering the rhythm before the next system"
]
},
"lazada-senior-swe": {
"duration": "Jan 2020 – Aug 2026",
"responsibilities": [
"System ownership and architecture design for logistics integration systems",
"Developed IoT-DWS integration solution deployed across 16 sortations",
@@ -62,6 +79,9 @@
"iot-dws-integration": {
"title": "IoT-DWS Integration System",
"summary": "Designed and deployed an integration system between IoT devices and DWS (Dimensioning Weighing Scanning) machines across 16 sortations.",
"metrics": [
"16 sortations deployed"
],
"sections": {
"context": {
"content": "Took over and rapidly mastered an IoT-DWS system after the previous responsible team member left the project. Needed to quickly understand the current architecture and continue developing the integration solution."
@@ -82,6 +102,9 @@
},
"awb-detection": {
"summary": "Applied Computer Vision and Machine Learning to automatically detect and OCR shipping labels from camera images on sortation lines.",
"metrics": [
"70,000 images/month processed"
],
"sections": {
"context": {
"content": "Sortation machines capture images of packages as they move on conveyor belts. Need to automatically read AWB (Air Waybill) from images for tracking and sorting."
+10 -15
View File
@@ -52,7 +52,6 @@
},
"about": {
"heading": "About Me",
"subtitle": "Senior Software Engineer with deep expertise in distributed systems, logistics technology, and practical AI applications.",
"engineeringTitle": "How I Think About Engineering",
"exploringTitle": "What I'm Exploring",
"exploringTitlePage": "What I'm Currently Exploring",
@@ -63,8 +62,7 @@
},
"experience": {
"heading": "Experience",
"tldr": "TL;DR",
"tldrText": "15 years of experience, more than 8 companies along the way. Too long to tell."
"tldr": "TL;DR"
},
"projects": {
"featured": "Featured Projects",
@@ -96,17 +94,7 @@
"experiments": "Engineering Experiments"
},
"philosophy": {
"heading": "Philosophy",
"quotes": [
{
"title": "Time is priceless",
"details": [
"Time is priceless. You can’t buy it, pause it, or rewind it. Once it’s gone, it’s gone for good.",
"We spend so much of our lives chasing things—money, status, validation—but time is the one thing we can never earn back.",
"So be mindful of how you use it. Invest it in what truly matters: the people you love, the goals that inspire you, the moments that feed your soul."
]
}
]
"heading": "Philosophy"
},
"common": {
"resumeDownload": "Get Resume",
@@ -176,6 +164,8 @@
"title": "title",
"summary": "summary",
"bio": "bio",
"subtitle": "about subtitle",
"tldr": "career TL;DR",
"tagline": "tagline segment",
"groupTitle": "skill group title",
"expTitle": "role title",
@@ -183,7 +173,12 @@
"sectionTitle": "section title",
"sectionContent": "section content",
"pointTitle": "philosophy title",
"pointDescription": "philosophy description"
"pointDescription": "philosophy description",
"quoteTitle": "quote title",
"quoteDetail": "quote paragraph",
"company": "company",
"duration": "duration",
"projectRole": "project role"
}
}
}
+78 -5
View File
@@ -3,6 +3,8 @@
"name": "Nguyễn Đông",
"title": "Senior Software Engineer",
"bio": "Senior Software Engineer với kinh nghiệm xây dựng hệ thống phân tán, logistics technology, và ứng dụng AI/ML vào bài toán thực tế. Tập trung vào system architecture, integration, và production-grade solutions.",
"subtitle": "Kỹ sư phần mềm cao cấp với chuyên môn sâu về hệ thống phân tán, công nghệ logistics và ứng dụng AI thực tiễn.",
"tldr": "15 năm kinh nghiệm, hơn 8 công ty đã đi qua. Quá dài để kể hết.",
"tagline": [
{
"text": "Phần lớn thời gian tôi là Backend Software Engineer. Muốn tôi là Full Stack Developer, "
@@ -15,26 +17,77 @@
"text": ", có thể."
}
],
"currentInterests": [
"AI in logistics",
"Digital twins",
"Simulation",
"LLM",
"Computer Vision",
"High-performance systems"
],
"roles": [
"System Architect",
"Full-Stack Developer",
"System Engineer",
"AI/ML Application Engineer"
],
"philosophyQuotes": [
{
"title": "Thời gian là vô giá",
"details": [
"Thời gian là vô giá. Bạn không thể mua nó bằng tiền, không thể khiến nó dừng lại, cũng chẳng thể quay ngược về quá khứ. Một khi thời gian đã trôi qua, nó sẽ mãi mãi không trở lại.",
"Chúng ta dành quá nhiều thời gian trong cuộc đời để theo đuổi những thứ như tiền bạc, địa vị và sự công nhận từ người khác. Nhưng thời gian là thứ duy nhất mà chúng ta không bao giờ có thể lấy lại.",
"Vì vậy, hãy luôn ý thức về cách bạn sử dụng thời gian của mình. Hãy dành thời gian cho những điều thực sự quan trọng: những người bạn yêu thương, những mục tiêu truyền cảm hứng cho bạn và những khoảnh khắc nuôi dưỡng tâm hồn bạn."
]
}
],
"philosophy": {
"build-for-the-real-problem": {
"title": "Giải pháp được xây dựng dựa trên vấn đề thực tế",
"description": "Không bắt đầu bằng technology. Bắt đầu bằng problem."
"description": "Không bắt đầu bằng technology. Bắt đầu bằng problem.",
"keywords": [
"Problem-first",
"Business value",
"Measurement"
]
},
"think-in-systems": {
"title": "Think in systems",
"description": "Quan tâm đến kiến trúc tổng thể, không chỉ từng component."
"description": "Quan tâm đến kiến trúc tổng thể, không chỉ từng component.",
"keywords": [
"Architecture",
"Integration",
"Scalability",
"Reliability"
]
},
"measure-impact": {
"title": "Measure impact",
"description": "Technical implementation phải gắn với measurable outcome."
"description": "Technical implementation phải gắn với measurable outcome.",
"keywords": [
"Performance",
"Reliability",
"Cost",
"Efficiency"
]
},
"keep-learning": {
"title": "Keep learning",
"description": "Continuous exploration of new technologies and approaches."
"description": "Continuous exploration of new technologies and approaches.",
"keywords": [
"AI/ML",
"Computer Vision",
"LLM",
"Distributed systems"
]
},
"business-domain-knowledge-is-a-key-of-success": {
"title": "Kiến thức nghiệp vụ là chìa khóa thành công",
"description": "Hiểu sâu về business domain giúp hiểu rõ vấn đề và đưa ra giải pháp phù hợp."
"description": "Hiểu sâu về business domain giúp hiểu rõ vấn đề và đưa ra giải pháp phù hợp.",
"keywords": [
"Biz knowledge",
"Business value"
]
}
}
},
@@ -61,12 +114,16 @@
"experience": {
"open-to-work": {
"title": "Đang tìm nơi làm việc mới",
"company": "Sẵn sàng cho cơ hội mới",
"duration": "11/2026 – nay",
"responsibilities": [
"Sẵn sàng cho vai trò Senior Engineer: system architecture, integration platform, full-stack delivery"
]
},
"relax-gap": {
"title": "Nghỉ ngơi",
"company": "Nghỉ giữa chặng",
"duration": "08/2026 – 10/2026",
"responsibilities": [
"Nghỉ có chủ đích giữa hai vai trò — lấy lại nhịp trước khi nhận hệ thống tiếp theo",
"Tự thử nghiệm theo nhịp riêng: local LLM với llama.cpp, đọc về Computer Vision"
@@ -74,6 +131,8 @@
},
"lazada-senior-swe": {
"title": "Senior Software Engineer",
"company": "Lazada Tech Hub Vietnam",
"duration": "01/2020 – 08/2026",
"responsibilities": [
"System ownership và architecture design cho logistics integration systems",
"Developed IoT-DWS integration solution deployed across 16 sortations",
@@ -84,12 +143,16 @@
},
"nexts-founder": {
"title": "Người sáng lập",
"company": "Nexts Limited Company",
"duration": "06/2019 – 12/2019",
"responsibilities": [
"Phát triển giải pháp cho xe tự hành, thu thập dữ liệu thời gian thực từ cảm biến và hệ thống onboard: LiDAR, camera, GPS, CAN bus."
]
},
"sap-senior-swe": {
"title": "Senior Software Engineer",
"company": "SAP Lab Vietnam",
"duration": "2017 – 12/2019",
"responsibilities": [
"Team leader quản lý sản phẩm B1 Integration"
]
@@ -99,6 +162,10 @@
"iot-dws-integration": {
"title": "Tích hợp hệ thống IoT-DWS",
"summary": "Thiết kế và triển khai hệ thống integration giữa IoT devices và DWS (Dimensioning Weighing Scanning) machines cho 16 sortations.",
"role": "Senior Software Engineer — System Owner",
"metrics": [
"Đã triển khai tại 16 sortations"
],
"sections": {
"context": {
"title": "Context",
@@ -129,6 +196,10 @@
"awb-detection": {
"title": "AWB Detection / Computer Vision",
"summary": "Ứng dụng Computer Vision và Machine Learning để tự động phát hiện và OCR shipping label từ hình ảnh camera trên sortation.",
"role": "Senior Software Engineer — ML Engineering",
"metrics": [
"Xử lý 70.000 ảnh/tháng"
],
"sections": {
"context": {
"title": "Context",
@@ -155,6 +226,7 @@
"facility-management": {
"title": "Facility Management Platform",
"summary": "Xây dựng nền tảng digital twin cho logistics facilities — mô hình hóa facility, theo dõi real-time, và recommendation system.",
"role": "Senior Software Engineer — Platform Design",
"sections": {
"vision": {
"title": "Vision",
@@ -173,6 +245,7 @@
"local-llm-experiments": {
"title": "Local LLM Experiments",
"summary": "Technical exploration về running local MoE LLMs với llama.cpp — GPU offloading, VRAM optimization, performance tracing.",
"role": "Engineering Experiment",
"sections": {
"exploration": {
"title": "Exploration",
+10 -15
View File
@@ -52,7 +52,6 @@
},
"about": {
"heading": "Giới thiệu",
"subtitle": "Kỹ sư phần mềm cao cấp với chuyên môn sâu về hệ thống phân tán, công nghệ logistics và ứng dụng AI thực tiễn.",
"engineeringTitle": "Cách tôi tư duy về kỹ thuật",
"exploringTitle": "Những điều tôi đang tìm hiểu",
"exploringTitlePage": "Những điều tôi đang tìm hiểu",
@@ -63,8 +62,7 @@
},
"experience": {
"heading": "Kinh nghiệm",
"tldr": "TL;DR",
"tldrText": "15 năm kinh nghiệm, hơn 8 công ty đã đi qua. Quá dài để kể hết."
"tldr": "TL;DR"
},
"projects": {
"featured": "Dự án nổi bật",
@@ -96,17 +94,7 @@
"experiments": "Thí nghiệm kỹ thuật"
},
"philosophy": {
"heading": "Triết lý",
"quotes": [
{
"title": "Thời gian là vô giá",
"details": [
"Thời gian là vô giá. Bạn không thể mua nó bằng tiền, không thể khiến nó dừng lại, cũng chẳng thể quay ngược về quá khứ. Một khi thời gian đã trôi qua, nó sẽ mãi mãi không trở lại.",
"Chúng ta dành quá nhiều thời gian trong cuộc đời để theo đuổi những thứ như tiền bạc, địa vị và sự công nhận từ người khác. Nhưng thời gian là thứ duy nhất mà chúng ta không bao giờ có thể lấy lại.",
"Vì vậy, hãy luôn ý thức về cách bạn sử dụng thời gian của mình. Hãy dành thời gian cho những điều thực sự quan trọng: những người bạn yêu thương, những mục tiêu truyền cảm hứng cho bạn và những khoảnh khắc nuôi dưỡng tâm hồn bạn."
]
}
]
"heading": "Triết lý"
},
"common": {
"resumeDownload": "Tải CV",
@@ -176,6 +164,8 @@
"title": "tiêu đề",
"summary": "tóm tắt",
"bio": "giới thiệu",
"subtitle": "phụ đề giới thiệu",
"tldr": "TL;DR sự nghiệp",
"tagline": "đoạn tagline",
"groupTitle": "tiêu đề nhóm kỹ năng",
"expTitle": "tên vị trí",
@@ -183,7 +173,12 @@
"sectionTitle": "tiêu đề mục",
"sectionContent": "nội dung mục",
"pointTitle": "tiêu đề nguyên lý",
"pointDescription": "mô tả nguyên lý"
"pointDescription": "mô tả nguyên lý",
"quoteTitle": "tiêu đề trích dẫn",
"quoteDetail": "đoạn trích dẫn",
"company": "công ty",
"duration": "thời gian công tác",
"projectRole": "vai trò dự án"
}
}
}