Skip to content

Feature/i18n extract swapcard - #155

Merged
james2177 merged 2 commits into
stellar-vortex-protocol:mainfrom
Olisachukwuma1:feature/i18n-extract-swapcard
Jul 28, 2026
Merged

Feature/i18n extract swapcard#155
james2177 merged 2 commits into
stellar-vortex-protocol:mainfrom
Olisachukwuma1:feature/i18n-extract-swapcard

Conversation

@Olisachukwuma1

Copy link
Copy Markdown
Contributor

Summary

Related issue

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • CI / tooling

Component

  • Contract (vortex-contract)
  • Backend (vortex-backend)
  • Frontend (vortex-frontend)

Checklist

  • My code follows the project's style and conventions
  • I ran lint / type-check / build locally and they pass
  • I added or updated tests where appropriate
  • I updated documentation where appropriate
  • My commits follow Conventional Commits

Screenshots / notes

closes #57

Olisachukwuma1 and others added 2 commits July 27, 2026 00:48
Move every user-facing string in SwapCard onto a message catalog so the
component can be translated. Adds the minimal catalog layer this depends
on (the i18n infrastructure issue is not merged yet): a typed English
catalog, a {token} interpolator with default-locale/key fallback, and a
useTranslation hook backed by an optional I18nProvider.

Numeric formatting in the card now follows the active app locale instead
of a hardcoded "en-US" and the browser locale. Rendered output is
byte-identical under the default English locale.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Locale-aware number/currency formatting is owned by issue stellar-vortex-protocol#63, which is
assigned separately. Revert SwapCard's formatting calls to their original
behavior so this PR stays scoped to string externalization (stellar-vortex-protocol#57).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@Olisachukwuma1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@james2177
james2177 merged commit 84242e5 into stellar-vortex-protocol:main Jul 28, 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.

i18n: externalize strings in SwapCard

2 participants