feat: add multi-language (i18n) support to UI (#198)#209
Open
spartan124 wants to merge 2 commits into
Open
Conversation
- Extract hardcoded strings into JSON locale files under src/locales/
- Add initial translations for English (en), Portuguese (pt), and Spanish (es)
- Add Language select element in user Settings to switch and persist choice in localStorage
- Support locale-aware date, number, and currency formatting across UI components
- Automatically adjust HTML dir (RTL/LTR) and lang attributes on document.documentElement
- Implement scripts/check-i18n.mjs validation check inside 'npm run lint'
- Document the localization workflow inside CONTRIBUTING.md
- Fix pre-existing Next.js build prerendering bailout on dashboard by wrapping in Suspense
- Fix pre-existing hoisting and conditional hook issues in WalletContext.tsx and stream detail pages
|
@spartan124 is attempting to deploy a commit to the Chuks7 Team on Vercel. A member of the Team first needs to authorize it. |
|
@spartan124 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
lightweight, type-safe, locale-aware translation system with fallback support, dynamic client-side
language switching, and automated translation key verification during the lint phase.
interpolation and English fallback.
localStorage.- Enabled automatic
dirandlangsynchronization ondocument.documentElementinsideSettingsContext.tsx to support RTL layouts (e.g., Arabic/Hebrew) when registering new locales.
ticking balances), NavHeader.tsx (for XLM balances), StreamTimeline.tsx, and StreamHistory.tsx.
with
en.json.- Added translation guidelines to CONTRIBUTING.md to help community members submit translations.
Build & Lints
Next.js production compiles successfully and the translation check script completes cleanly: