widgets
widgets copied to clipboard
locale prop does not work
Bug Description locale prop is ignored in the widget interface.
Steps to Reproduce
- Import the latest V2 version.
- Set locale prop to any from: https://github.com/Uniswap/widgets/blob/main/src/constants/locales.ts
- 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