Description
src/lib/time.ts likely formats relative timestamps (e.g. "2m ago") in English only — migrate it to Intl.RelativeTimeFormat or the i18n library's equivalent so it respects the active locale.
Requirements and context
- Depends on the i18n infrastructure issue in this batch
- Preserve existing output for the English locale exactly, to avoid unrelated test churn
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/i18n-relative-time
- Implement changes
- Update
src/lib/time.ts to accept/use the active locale
- Test and commit
- Extend
src/lib/time.test.ts with locale-specific cases
Example commit message:
feat: locale-aware relative time formatting
Guidelines
- Assignment required before starting — comment on the issue and wait to be assigned.
- PR description must include:
Closes #[issue_id]
- Complexity: High (200 points)
Description
src/lib/time.tslikely formats relative timestamps (e.g. "2m ago") in English only — migrate it toIntl.RelativeTimeFormator the i18n library's equivalent so it respects the active locale.Requirements and context
Suggested execution
git checkout -b feature/i18n-relative-timesrc/lib/time.tsto accept/use the active localesrc/lib/time.test.tswith locale-specific casesExample commit message:
feat: locale-aware relative time formattingGuidelines
Closes #[issue_id]