fix(web): fix VaultPanel tab labels bypassing i18n due to variable shadowing - #474
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
collinsezedike
force-pushed
the
fix/vaultpanel-i18n-shadowing
branch
from
August 5, 2026 16:17
353a1c0 to
2a16fea
Compare
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.
Summary
VaultPanel's tab switcher rendered "Deposit"/"Withdraw" in English only regardless of locale, because the tab-switcher's.map((t) => ...)callback parameter shadowedtfromuseTranslation(). Renamed it totabIdand switched the label tot(\vaultPanel.${tabId}`), using the existingvaultPanel.deposit/vaultPanel.withdrawkeys already present in bothen.jsonandfr.json`data-testids that already exist on the buttons (vault-tab-deposit/vault-tab-withdrawfor the tabs,vault-deposit-submit/vault-withdraw-submitfor the submit buttons) instead of relying on now-identical textTest plan
pnpm --filter @meridian/web testpasses: 15 test files, 72 tests, including the new regression testpnpm --filter @meridian/web lint && pnpm --filter @meridian/web typecheckpasspnpm exec prettier --checkclean on both changed filesCloses #425