Skip to content

feat(i18n): provide memoized locale-aware number, date, and currency formatters - #144

Closed
syntaxsuuvam-spec wants to merge 1 commit into
StepFi-app:mainfrom
syntaxsuuvam-spec:feat/issue-134-locale-aware-helpers
Closed

syntaxsuuvam-spec wants to merge 1 commit into
StepFi-app:mainfrom
syntaxsuuvam-spec:feat/issue-134-locale-aware-helpers

Conversation

@syntaxsuuvam-spec

Copy link
Copy Markdown

Summary

Provides memoized ormatNumber, ormatDate, ormatDateTime, ormatCurrency, and ormatPercent helpers bound to native Intl APIs with safe fallback to en-US.

Closes #134

Changes

  • src/lib/format.ts: Centralized formatting functions caching Intl instances.
  • Replaced hardcoded currency signs with explicit USDC currency display.

Verification

  • Unit tested formatting helpers across en-US and de-DE locale outputs.

@EmeditWeb EmeditWeb closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Medium) i18n: locale-aware number/date/currency helpers

2 participants