fix locale to en-US

epic-games otherwise uses OS locale for text:
https://github.com/vogler/free-games-claimer/pull/7
This commit is contained in:
Ralf Vogler 2022-02-12 19:54:09 +01:00
parent 8aa0a5229a
commit d1aad10fac
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,7 @@ const TIMEOUT = 20 * 1000; // 20s, default is 30s
headless: false,
viewport: { width: 1280, height: 1280 },
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36', // see replace of Headless in newStealthContext above. TODO update if browser is updated!
locale: "en-US", // ignore OS locale to be sure to have english text for locators
});
// stealth with playwright: https://github.com/berstend/puppeteer-extra/issues/454#issuecomment-917437212