mirror of
https://github.com/Anarios/return-youtube-dislike.git
synced 2026-10-27 23:31:06 +01:00
Set native browser language for Linux locale tests
This commit is contained in:
@@ -100,7 +100,11 @@ for (const { locale, language, direction } of [
|
||||
const apiServer = await startHermeticApiServer();
|
||||
const browserType = {
|
||||
launchPersistentContext: (profile, options) =>
|
||||
chromium.launchPersistentContext(profile, { ...options, args: [...options.args, `--lang=${language}`] }),
|
||||
chromium.launchPersistentContext(profile, {
|
||||
...options,
|
||||
args: [...options.args, `--lang=${language}`],
|
||||
...(process.platform === "linux" ? { env: { ...process.env, ...options.env, LANGUAGE: language } } : {}),
|
||||
}),
|
||||
};
|
||||
const adapter = new HermeticExtensionArtifactAdapter({
|
||||
apiServer,
|
||||
|
||||
Reference in New Issue
Block a user