Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix: explicitly set the default metamask interface language #212
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed Jan 13, 2023
1 parent 9fcb540 commit f3e72ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export const bootstrap = async ({
}> => {
const browser = await launch({
headless: true,
playwrightOptions: {
args: ["--accept-lang=en"],
},
puppeteerOptions: {
args: ["--accept-lang=en"],
},
...launchOptions,
});
const metaMask = await setupMetaMask(browser, {
Expand Down Expand Up @@ -47,6 +53,12 @@ export const initSnapEnv = async (
}> => {
const browser = await launch({
headless: true,
playwrightOptions: {
args: ["--accept-lang=en"],
},
puppeteerOptions: {
args: ["--accept-lang=en"],
},
...opts,
metaMaskFlask: true,
});
Expand Down

0 comments on commit f3e72ce

Please sign in to comment.