docs(pt): translate the web, errors, and environment reference pages

Merged
ER
2h ago
+2361-0

What and why

Step 8 in #1890's order continues with the rest of Reference. This PR is reference/web, reference/errors, and reference/environment.

  • Translates the three pages into docs/pt/reference/. The titles are "Navegador", "Erros", and "Variáveis de ambiente", as the ja, zh, and hi pages translate them. Headings that are code or a type name stay as in English, so every anchor other pages link to still lands.
  • On errors, the error class names (test, configuration, infrastructure, internal, interrupted) stay in English, since they are the category values; the exit-code meanings match the "Códigos de saída" section of the pt cli page.
  • docs/pt/README.md gets 10 glossary rows: rota, responder, and abortar for routes, predicado and gatilho, acessor, dispensar for a dialog, curinga, contexto persistente, script de inicialização, contêiner, classe de erro, and oficial for first-party. They sit after the "origin" row, apart from the rows other open pt PRs add.

Issue

Part of #1890

Verified

Ran it locally: yes

  • The six docs checks behind pnpm docs:check pass with no warnings for these pages: 424 pages compile, and 6640 anchor links resolve.
  • On all three pages, the code blocks are byte-identical to English, and the inline code spans, link targets, #anchors, ids, and component tags match English in the same order. No em or en dashes.
  • web was translated in three parts and joined. Fresh-context second reads found nothing critical. On web they caught "toda aba aberta depois dela", which pointed at the active tab instead of the setViewport call (checked against packages/web/src/attempt-session.ts), and terms that changed at the seams ("acessor" against "método de acesso", "containers" against "contêineres"). On errors and environment they caught ENVIRONMENT_UNAVAILABLE reading as if the app were down too, and the 6-character minimum widened from passwords and secrets to any value. All are fixed.
  • Local Mintlify preview: the three pages render with the same heading, table, and code block counts as English.