UNPKG

paqad-ai

Version:

Spec-driven development framework — AI agents that think before they type

8 lines (6 loc) • 770 B
# React Localization - Render user-facing copy through the project's i18n library (`react-i18next`, `react-intl`, `next-intl`, etc.) via translation keys; do not hard-code display strings in JSX. - Build plurals and interpolated values with the i18n API's plural/format features, not string concatenation, so grammar stays correct per locale. - Format dates, numbers, and currency with `Intl.DateTimeFormat`/`Intl.NumberFormat` (or the i18n library's formatter) bound to the active locale, not manual formatting. - In tests, assert on translation keys or test ids rather than translated literals so copy edits do not break tests. - Centralize enum-to-label and status-to-copy mapping in one module keyed by translation key, instead of re-deriving labels per component.