widgets icon indicating copy to clipboard operation
widgets copied to clipboard

locale prop does not work

Open starscrowding opened this issue 3 years ago • 0 comments

Bug Description locale prop is ignored in the widget interface.

Steps to Reproduce

  1. Import the latest V2 version.
  2. Set locale prop to any from: https://github.com/Uniswap/widgets/blob/main/src/constants/locales.ts
  3. Widget still shows default en-US locale.

Expected Behavior Specified locale updates the widget interface with correct language.

Additional Context Issue reproducible in the latest versions of API V2: https://docs.uniswap.org/sdk/swap-widget/reference/v2 Also, the same problem on the demo page: https://widgets-uniswap.vercel.app/?fixtureId=%7B%22path%22%3A%22src%2Fcosmos%2FSwap.fixture.tsx%22%2C%22name%22%3Anull%7D

starscrowding avatar Feb 08 '23 19:02 starscrowding