Fix/issue 365 i18n translation sweep - #422
Merged
zachyo merged 3 commits intoAug 3, 2026
Merged
Conversation
Issue soropad#365 — i18n translation sweep Adds comprehensive translation keys to all 4 message files (en, es, fr, zh) and wires up useTranslations in high-traffic client components. Components updated: - PublicTokenPage.tsx (token page) - ClaimVesting.tsx (claim flow) - Dashboard page + DashboardUi.tsx (dashboard search) - InvalidTokenContract.tsx - WalletButton.tsx - PersonalDashboard.tsx (my-account) - Footer.tsx (new client component with i18n) - layout.tsx (footer replaced) - ESLint config: added react/jsx-no-literals rule
Finishes the i18n sweep started in the parent commit: - Converts 16 remaining components to use useTranslations: claim/page, MainnetWarning, RecentLaunches, HoldersTable, TransferPanel, UserPanel, AdminPanel, PersonalHeader, BalancesSection, ConnectPrompt, OutgoingAllowancesSection, PersonalActivityTable, PersonalTransactionsSection, VestingCard, VestingLookup, VestingSection - Fixes pre-existing missing useTranslations in: ScheduleCard (ClaimVesting.tsx) and HoldersTable (PublicTokenPage.tsx) - Adds genericReleaseError key to all 4 message files - Fixes invalid JSON in fr.json and zh.json (unescaped quotes) - Adds i18n test suite (18 tests) verifying key parity, interpolation consistency, and namespace completeness across all 4 locale files - Wires AdminPanel.tsx to use existing admin.* message keys
|
@jerryjuche 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.
Closes #365
Description
This PR completes the i18n translation sweep across the launchpad frontend, wiring
useTranslationsinto all remaining components and fixing several related issues.Changes
Components Wired (16 files)
claim/page.tsx— AddeduseTranslations("claim")components/MainnetWarning.tsx— AddeduseTranslationscomponents/RecentLaunches.tsx— AddeduseTranslationscomponents/ErrorBoundary.tsx— Removed hardcoded literalsdashboard/[contractId]/components/AdminPanel.tsx— AddeduseTranslations("admin")dashboard/[contractId]/components/HoldersTable.tsx— AddeduseTranslationsdashboard/[contractId]/components/TransferPanel.tsx— AddeduseTranslationsdashboard/[contractId]/components/UserPanel.tsx— AddeduseTranslationsmy-account/components/PersonalHeader.tsx— AddeduseTranslationsmy-account/components/BalancesSection.tsx— AddeduseTranslationsmy-account/components/ConnectPrompt.tsx— AddeduseTranslationsmy-account/components/OutgoingAllowancesSection.tsx— AddeduseTranslationsmy-account/components/PersonalActivityTable.tsx— AddeduseTranslationsmy-account/components/PersonalTransactionsSection.tsx— AddeduseTranslationsmy-account/components/VestingCard.tsx— AddeduseTranslationsmy-account/components/VestingLookup.tsx— AddeduseTranslationsmy-account/components/VestingSection.tsx— AddeduseTranslationsBug Fixes
ScheduleCardcomponent missinguseTranslations; replaced 3 hardcoded toast strings witht()callsHoldersTablecomponent missinguseTranslationsfr.jsonandzh.json(unescaped quotes indashboard.holders.noMatching)claim.genericReleaseErrorkey to all 4 locale filesTesting
app/__tests__/i18n.test.ts) with 18 tests covering:{count},{query},{contractId},{currency})common,nav,footer,auth,claim,dashboard,admin,myAccount,token)Verification
jsx-no-literalswarnings expected by design)