mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat(resume): add version stamping and bilingual EN/VN PDF support
- Add version stamp footer 'Last updated: YYYY-MM-DD' to PDF - Implement bilingual support (English + Vietnamese) for resume PDF - Add Language type and *En optional fields to types - Add Vietnamese translations to profile, experience, projects data - resolveField utility for language-aware field resolution - Language-specific section labels (Experience/Kinh nghiệm, etc.) - --lang CLI arg: 'en' (default) or 'vi' - Output: resume.pdf (EN), resume-vi.pdf (VI) - Update CI workflow to generate and deploy both PDF versions - Add build:resume-all npm script - Update UI components (Hero, DownloadResume) for language selection - Add spec-v2-resume-future.md for deferred enhancements - Refactor spec-v2-resume-playwright.md (condense implementation notes)
This commit is contained in:
1 parent
26af25a39d
commit
0297c18bad
15 files changed
+395
-301
No files matched your search
@@ -1,3 +1,5 @@
|
||||
export type Language = 'en' | 'vi';
|
||||
|
||||
export type ProjectCategory =
|
||||
| "software-engineering"
|
||||
| "logistics"
|
||||
@@ -9,7 +11,9 @@ export type ProjectCategory =
|
||||
export interface Project {
|
||||
id: string;
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
summary: string;
|
||||
summaryEn?: string;
|
||||
category: ProjectCategory;
|
||||
role: string;
|
||||
technologies: string[];
|
||||
@@ -23,7 +27,9 @@ export interface ProjectSection {
|
||||
id: string;
|
||||
number: number;
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
content: string;
|
||||
contentEn?: string;
|
||||
type: "text" | "diagram" | "metrics" | "code";
|
||||
}
|
||||
|
||||
@@ -34,19 +40,24 @@ export interface ProjectDetail extends Project {
|
||||
export interface ExperienceEntry {
|
||||
id: string;
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
company: string;
|
||||
duration: string;
|
||||
location?: string;
|
||||
responsibilities: string[];
|
||||
responsibilitiesEn?: string[];
|
||||
achievements?: FeaturedAchievement[];
|
||||
}
|
||||
|
||||
export interface FeaturedAchievement {
|
||||
id: string;
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
context: string;
|
||||
contextEn?: string;
|
||||
technicalWork: string[];
|
||||
impact: string;
|
||||
impactEn?: string;
|
||||
metrics?: string[];
|
||||
technologies: string[];
|
||||
featured: boolean;
|
||||
@@ -54,20 +65,26 @@ export interface FeaturedAchievement {
|
||||
|
||||
export interface SkillGroup {
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
skills: string[];
|
||||
}
|
||||
|
||||
export interface PhilosophyPoint {
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
description: string;
|
||||
descriptionEn?: string;
|
||||
keywords: string[];
|
||||
}
|
||||
|
||||
export interface Profile {
|
||||
name: string;
|
||||
title: string;
|
||||
titleEn?: string;
|
||||
tagline: string;
|
||||
taglineEn?: string;
|
||||
bio: string;
|
||||
bioEn?: string;
|
||||
email: string;
|
||||
githubUrl: string;
|
||||
linkedinUrl: string;
|
||||
|
||||
Reference in new issue
Block a user