Skip to content

i18n: locale-aware relative time formatting #64

Description

@james2177

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

  1. Fork the repo and create a branch
    git checkout -b feature/i18n-relative-time
  2. Implement changes
    • Update src/lib/time.ts to accept/use the active locale
  3. 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)

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highHigh complexity Drips Wave issue (200 points)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions