autokap 1.3.26 → 1.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +11 -0
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -904,6 +904,17 @@ export class Browser {
|
|
|
904
904
|
'--no-default-browser-check',
|
|
905
905
|
'--no-first-run',
|
|
906
906
|
'--noerrdialogs',
|
|
907
|
+
// Chrome's translate prompt only appears when the page language is NOT
|
|
908
|
+
// in the user's preferred-languages list. By listing every language we
|
|
909
|
+
// might capture (covers our marketing demos: fr, en, es, de, it, pt, nl,
|
|
910
|
+
// ja, zh, ko, ar, ru, plus regional variants), Chrome treats every page
|
|
911
|
+
// as "user already speaks this" and never offers translation. Belt-and-
|
|
912
|
+
// suspenders alongside the Dockerfile policy file (which Playwright's
|
|
913
|
+
// bundled Chromium might not honor per issue #32324) and the
|
|
914
|
+
// notranslate meta init script. accept-lang affects HTTP requests AND
|
|
915
|
+
// Chrome's translate decision; it's the only Chrome-side knob that
|
|
916
|
+
// works regardless of policy path detection or feature flag drift.
|
|
917
|
+
'--accept-lang=fr-FR,fr,en-US,en,en-GB,es-ES,es,de-DE,de,it-IT,it,pt-PT,pt-BR,pt,nl-NL,nl,ja-JP,ja,zh-CN,zh-TW,zh,ko-KR,ko,ar,ru-RU,ru,he,th,tr,vi,sv,no,da,fi,pl,cs',
|
|
907
918
|
] : [];
|
|
908
919
|
const clipArgs = [
|
|
909
920
|
...baseArgs,
|