browser_automation_cli/i18n/
en.rs1use super::mensagem::Mensagem;
5
6pub fn texto(msg: Mensagem) -> &'static str {
8 match msg {
9 Mensagem::UsageSuggestion => "Check --help and required arguments",
10 Mensagem::BrokenPipeSuggestion => {
11 "Do not pipe stdout to a closed consumer; exit 141 is expected"
12 }
13 Mensagem::UnavailableSuggestion => {
14 "Install Chrome/Chromium on PATH or: browser-automation-cli config set chrome_path <path>"
15 }
16 Mensagem::DataSuggestion => "Check robots.txt or the JSON/NDJSON payload",
17 Mensagem::BrowserSuggestion => {
18 "Check the URL and whether Chrome stayed alive in this one-shot"
19 }
20 Mensagem::VisionRequired => "Pass --experimental-vision on the same invocation",
21 Mensagem::RobotsDual => {
22 "Pass both flags together when you intentionally skip robots.txt"
23 }
24 Mensagem::CategoryMemory => {
25 "Pass --category-memory (heap take/summary/close work without deep graph ops)"
26 }
27 Mensagem::CategoryExtensions => "Pass --category-extensions on the same invocation",
28 Mensagem::ScreencastFlag => "Pass --experimental-screencast on the same invocation",
29 Mensagem::WebmcpFlag => "Pass --category-webmcp on the same invocation",
30 Mensagem::ThirdPartyFlag => "Pass --category-third-party on the same invocation",
31 Mensagem::CaptureNetwork => "Pass --capture-network before run/net",
32 Mensagem::CaptureConsole => "Pass --capture-console before run/console",
33 Mensagem::RunFailFast => "Fix the failing step; subsequent steps were not executed",
34 Mensagem::LighthouseMissing => {
35 "Install lighthouse or: browser-automation-cli config set lighthouse_path <path>"
36 }
37 Mensagem::LocaleResolved => "Resolved UI locale",
38 Mensagem::LocaleSource => "Resolution source",
39 }
40}