mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
- 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
13 lines
354 B
TypeScript
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`
|