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.
Files changed (2) hide show
  1. package/dist/browser.js +11 -0
  2. 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autokap",
3
- "version": "1.3.26",
3
+ "version": "1.3.28",
4
4
  "description": "AI-powered CLI tool for capturing clean screenshots of websites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",