This commit is contained in:
Andras Schmelczer 2026-05-12 22:00:56 +01:00
parent 8708bf000d
commit 11711c57e6
38 changed files with 5361 additions and 265 deletions

View file

@ -50,6 +50,9 @@ export async function launchRecordingBrowser(
deviceScaleFactor: storyboard.video.captureScale,
recordVideo: { dir: opts.recordDir, size: viewport },
});
await context.addInitScript((appLanguage) => {
if (appLanguage) localStorage.setItem('language', appLanguage);
}, storyboard.content.appLanguage ?? 'en');
await suppressDevServerNoise(context);
return { browser, context };
}