Skip to content

fix: locale-aware currency/date formatting and RTL-safe Tailwind classes (#51) - #177

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/51-locale-unsafe-formatting
Open

fix: locale-aware currency/date formatting and RTL-safe Tailwind classes (#51)#177
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/51-locale-unsafe-formatting

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #51.

  • Replace hardcoded en-US formatting in formatCurrency() and StatCard with Intl.NumberFormat/DateTimeFormat driven by navigator.language
  • Add formatDate() and formatRelativeTime() helpers using viewer locale
  • Convert physical Tailwind spacing classes (ml-/pl-/left-) to logical equivalents (ms-/ps-/start-) for RTL readiness across shared components
  • Scope decision: locale-aware formatting via Intl APIs + RTL class audit; full next-intl extraction deferred until target languages are defined (documented rationale in commit)

TypeScript compiles cleanly with npx tsc --noEmit.

…ses (MergeFi#51)

- Replace hardcoded en-US formatting in formatCurrency() and StatCard with
  Intl.NumberFormat/DateTimeFormat driven by navigator.language
- Add formatDate() and formatRelativeTime() helpers using viewer locale
- Convert physical Tailwind spacing classes (ml-/pl-/left-) to logical
  equivalents (ms-/ps-/start-) for RTL readiness across shared components
- Scope decision: locale-aware formatting via Intl APIs + RTL class audit;
  full next-intl extraction deferred until target languages are defined

TypeScript compiles cleanly with npx tsc --noEmit.
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Audit and fix locale-unsafe currency/date formatting and hardcoded strings

1 participant