Files
cv/src/data/resume.ts
T
dong.nguyen 4996a91a77 fix(i18n): complete phase 1 - translate section tags, replace lang checks, dedup download component
- Replace hardcoded SectionHeading tags with i18n strings (7 files)
- Replace 17 lang === 'vi' checks with useField/useFieldArray hooks
- Extract shared DownloadResumeDropdown component (Hero + DownloadResume)
- Move langLabels to src/data/resume.ts as resumeLanguageLabels
- Update feedback docs with resolution status
2026-10-14 14:50:27 +07:00

13 lines
354 B
TypeScript

import type { Language } from '@/types'
export const resumeAvailable = true
export const resumeLanguages: Language[] = ['en', 'vi']
export const resumeLanguageLabels: Record<Language, string> = {
en: 'English',
vi: 'Tiếng Việt',
}
export const resumeUrlFor = (lang: Language): string =>
lang === 'en' ? '/resume.pdf' : `/resume-${lang}.pdf`