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

fix: explicitly set the default metamask interface language #212 #241

Merged
merged 1 commit into from
Jan 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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