feat(i18n): implement internationalization framework and spanish tran…#85
Open
Luchi5544 wants to merge 1 commit into
Open
feat(i18n): implement internationalization framework and spanish tran…#85Luchi5544 wants to merge 1 commit into
Luchi5544 wants to merge 1 commit into
Conversation
|
@Luchi5544 is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Luchi5544 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! 🚀 |
Contributor
|
i18n scaffolding + Spanish locale + LocaleSwitcher + instrumenting all chain components looks right. 5 conflicts to resolve: git fetch origin
git rebase origin/develop
git push --force-with-leaseFor each conflicted file, keep develop's structure (it has more recent work) and re-apply your |
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.
closes #70
Description
This PR integrates a robust internationalization framework into the Wraith Protocol Demo app using
react-i18nextandi18next-browser-languagedetector. It extracts all hardcoded user-visible text into translation dictionaries, introduces a locale switcher in the header, and implements persistent preferences.Key Changes
react-i18nextwith browser language detection (src/i18n/index.ts).LocaleSwitcher(src/components/LocaleSwitcher.tsx) that changes languages viareact-i18nextand persists the selection inlocalStorageunder the keywraith-locale.LocaleSwitcherdropdown to the header right next to the chain switcher.CkbReceive,CkbSend,SolanaReceive,SolanaSend,StellarReceive,StellarSend,HorizenReceive,HorizenSend,WalletConnect, etc.) witht()function hooks.src/i18n/en.json: All original English strings.src/i18n/es.json: Full Spanish translations matching all keys.pnpm-workspace.yamland.npmrcto ensure node-gyp packages (likekeccak,secp256k1,esbuild) can build non-interactively in standard CI/CD and developer environments.Verification Results
npx pnpm formatto format code style constraints.npx pnpm run buildwhich successfully ran type checkingtsc --noEmitand Vite production bundling with 0 warnings or errors.