Files
cv/src/data/profile.ts
T
dong.nguyen fecbd44899 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.
2026-10-22 22:53:26 +07:00

13 lines
735 B
TypeScript

// Typed loader for the profile structure document (spec-v4 D2). Localized text
// — including interests, roles, and philosophy keywords/quotes (row 19) —
// lives in src/i18n/locales and is joined in src/i18n/index.ts; this module
// exports the language-neutral structure under today's name, for the i18n
// loader and for scripts/generate-sitemap.ts.
// JSON imports widen string literals to `string`, so id membership is guarded
// by the text dictionaries (tsc) and by src/i18n/validate.ts (cross-document
// coverage) — the cast still fails on gross shape errors.
import profileJson from './profile.json';
import type { ProfileStructure } from '../i18n/dict-types';
export const profile = profileJson as ProfileStructure;