Skip to content

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

Closed

Description

@chonilius

Problem

src/components/dashboard/ActivityList.tsx and DashboardShell.tsx render activity feeds across contributor/maintainer/sponsor dashboards — likely a chronological list of bounty/escrow/PR events. Nothing in the visible architecture suggests any consideration for internationalization: dates are presumably formatted via whatever's in src/lib/utils.ts (already flagged for timezone issues elsewhere in this batch, but separately, is it locale-aware or hardcoded to en-US formatting?), currency formatting for USDC/XLM amounts needs locale-aware thousands/decimal separators (many locales use , as the decimal separator and . as the thousands separator — the reverse of en-US), and there's no visible next-intl/react-intl/similar dependency in package.json, meaning all user-facing strings are presumably hardcoded English literals scattered across every component with no extraction layer, making future localization a full rewrite rather than a configuration change.

Why this is hard

  • This requires an actual full-codebase audit of every hardcoded user-facing string across src/app/** and src/components/** to assess true scope — you cannot know how big this problem is without reading essentially every component, since there's no existing i18n infrastructure marking which strings are even in scope.
  • Full i18n library adoption (routing changes for locale prefixes, message extraction, translation file management) is a large, high-risk change for a Next.js 16 App Router app — the scope decision here matters enormously: is the deliverable "add full next-intl with at least one additional real locale," or is it narrower ("make all currency/date/number formatting locale-aware via Intl APIs using the browser's/user's locale, and extract strings into a translation-ready structure without necessarily shipping a second language yet")? You need to make and justify this scope call given no product spec specifies target languages.
  • Currency formatting specifically needs domain awareness beyond generic Intl.NumberFormat: USDC and XLM aren't ISO 4217 currencies with built-in Intl support, so displaying them with correct locale-aware separators and an appropriate symbol/suffix placement per locale convention requires custom formatting logic layered on top of (not replaced by) Intl.NumberFormat's numeric formatting, which is easy to get subtly wrong (e.g. always suffixing "USDC" in English word order regardless of locale, when some locales would expect the unit before the number).
  • RTL-locale readiness (even if not shipping an RTL language now) affects whether the Tailwind v4 layout is using logical properties (ms-/me-/ps-/pe- vs ml-/mr-/pl-/pr-) — a full audit of directional-sensitive spacing/alignment classes across the component library (Button.tsx, Badge.tsx, Navbar.tsx, card layouts) is needed to determine how much RTL debt exists even before any RTL locale is targeted.

Scope

  • Audit and document the full scope of hardcoded strings and locale-insensitive formatting across the codebase.
  • Make and justify a concrete scope decision (documented in the PR) for how far this change goes: at minimum, locale-aware date/number/currency formatting using Intl APIs driven by the viewer's actual locale (not hardcoded en-US), plus a custom USDC/XLM-aware currency formatter.
  • Extract hardcoded strings into a structure ready for future translation (even if only English ships now), using whichever approach matches the scope decision.
  • Audit and fix directional-sensitive Tailwind spacing classes in shared UI components to use logical properties.

Acceptance criteria

  • Date and currency formatting correctly reflects the viewer's actual browser locale (verified with at least two non-en-US locales, e.g. de-DE and fr-FR, showing correct separator conventions) rather than being hardcoded.
  • The scope decision and rationale for what full i18n readiness does/doesn't include is documented in the PR.
  • Shared UI components use logical (not physical) directional Tailwind classes where spacing/alignment is directionally sensitive.

Activity

  1. added
    very hard
    bug
    enhancement
    on Jul 15, 2026
  2. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign | FWC26
    on Jul 15, 2026
  3. Umesh-Tiruvalluru commented on Aug 3, 2026

    @Umesh-Tiruvalluru

    Hi! I'd like to work on this issue. Could you please assign it to me?

  4. ranjeet150 commented on Sep 14, 2026

    @ranjeet150

    Hello @maintainers,

    I would love to take this on. My planned approach:

    • Build Audit and fix locale-unsafe currency/date formatting and hardcoded strings with clean React/Next.js components, responsive styling, and proper loading/error boundaries.
    • Add component unit tests and ensure zero TypeScript/ESLint warnings.

    Excited to work on this—please assign to me and I'll submit a clean PR shortly!

  5. added
    Stellar Wave
    on Sep 26, 2026
  6. mubby4 commented on Sep 26, 2026

    @mubby4

    @mubby4 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello, I'd like to work on this one if it's still available. Happy to be assigned. Thanks!

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @mubby4 to this issue.

  7. champ204 commented on Sep 26, 2026

    @champ204

    @champ204 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @champ204 to this issue.

  8. fadesany commented on Sep 26, 2026

    @fadesany

    @fadesany has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello maintainer, i would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @fadesany to this issue.

  9. harmondconsultant-png commented on Sep 26, 2026

    @harmondconsultant-png

    @harmondconsultant-png has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    hy, i can work on it pleas assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @harmondconsultant-png to this issue.

  10. Chidubemkingsley commented on Sep 26, 2026

    @Chidubemkingsley
    Contributor

    @Chidubemkingsley has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    can i work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Chidubemkingsley to this issue.

  11. Babigdk commented on Sep 26, 2026

    @Babigdk

    @Babigdk has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I can make the frontend locale-safe with focused changes.

    • Replace hardcoded date/currency formatting with locale-aware "Intl" utilities.
    • Add custom USDC/XLM formatting.
    • Extract key user-facing strings into a translation-ready structure.
    • Replace direction-sensitive Tailwind classes with logical properties.
    • Test with "en-US", "de-DE", and "fr-FR".
    • Document the scope and changes in the PR.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Babigdk to this issue.

  12. drips-wave commented on Sep 26, 2026

    @drips-wave

    Congratulations, @Chidubemkingsley! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @Chidubemkingsley: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  13. drips-wave commented on Sep 27, 2026

    @drips-wave

    This issue has been completed by @Chidubemkingsley as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @Chidubemkingsley: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  14. removed
    Stellar Wave
    on Oct 15, 2026
  15. added
    Stellar Wave
    on Oct 15, 2026
  16. removed
    Stellar Wave
    on Oct 15, 2026
  17. added
    Stellar Wave
    on Oct 15, 2026
  18. removed
    Stellar Wave
    on Oct 15, 2026
  19. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

GrantFox OSSMaybe RewardedOfficial Campaign | FWC26Stellar Wavebugenhancementvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions