Uniswap / Uniswap/interface

Bug: Translated UI shows `Balance: {0}` instead of actual token balance

Open
#3,009 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
Translated UI shows Balance: {0} in input panel instead of actual token balance with translated string for "Balance".

Steps to Reproduce

  1. Go to https://app.uniswap.org/#/swap?lng=zh (or other language's translated UI)
  2. Connect wallet.
  3. Input panel will show Balance: {0} instead of actual token balance with translated string for "Balance".

image

Expected Behavior
Expect actual token balance value to show, and "Balance" being replaced with translated string.

Additional Context
None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue at the translated swap URL, such as https://app.uniswap.org/#/swap?lng=zh, with a connected wallet, then trace the input panel's translated balance display. Done means the panel shows the actual token balance and uses the translated "Balance" label instead of the literal {0} placeholder.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, internationalization, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.