docs(pt): bring 21 pages back in line with English after #2448

Merged
ER
3d ago
+1243-1161

What and why

#2448 folded four English pages into others and rewrote the pages that took them in, but it changed only the links in their pt translations. The pt drift check then read those pages as current, so they were never reported. This brings 21 pt pages back in line with the current English.

  • Rebuilt from the current English, reusing the earlier pt translation of the folded page where English kept the text:
    • reference/web: takes in "Working with the browser" (/browser), with hosted browsers, shadow DOM, inert content, and icon fonts. 1933 to 1985 lines (English has 1932).
    • coding-agents and reference/mcp: take in "MCP server" (/mcp-server), with the four registration Tabs and running tests beside a session.
    • core-concepts: takes in "Agentic vs deterministic", as the new "Combine-os" section.
    • reference/engine-protocol: takes in "Engine servers", as a new section with four subsections.
  • engines, writing-an-engine, core, nine integration pages, and four Migrate pages pick up their smaller changes. The #anchors #2448 had dropped from their pt links are back, since the pages they point to now match English.
  • Every code block matches English, so the old translated JSDoc is gone, and the new descriptions are translated.
  • docs/pt/README.md: eight glossary rows, among them "registro" for an MCP server's registration, "reserva órfã", "sinal de aborto", and "forma de factory".

Issue

Part of #1890

Verified

Ran it locally: yes

  • Code blocks, inline code spans, link targets, #anchors, ids, and component tags match English in the same order on all 21 pages. The per-page comparison flags only the translated migrationPrompt strings on the four Migrate pages, which predate this change. The exception: 3 links into the pt reference/config, cli, errors, or agent pages point at the page without English's anchor, since those pages lack the section until they catch up with English.
  • The six checks behind pnpm docs:check exit 0, and the translation check reports nothing for these pages. Before this change it reported outline drift on coding-agents, core-concepts, reference/web, reference/mcp, and reference/engine-protocol.
  • No em or en dashes in the changed prose, no repeated line tails, and no keywords frontmatter.
  • Six fresh-context reviews found no wrong fact. They caught "qualquer um de" for the browser install command (it takes one or more), a link text that differed from other pt pages ("referência da engine web"), ambiguous pronouns in core-concepts and coding-agents, a passive that read as the client killing an engine server (the server exits on its own), and about 25 wording nits. All are fixed.

Summary by CodeRabbit

  • Documentação
    • Revisados os guias em português sobre conceitos, engines, integrações e migração de suítes para testes e2e em TypeScript, incluindo exemplos de testes determinísticos e combinações com etapas de agentes.
    • Ampliadas as referências de navegador, protocolo de engines e MCP, com orientações sobre provedores hospedados, sessões, ferramentas, transportes e tratamento de falhas.
    • Atualizadas as instruções para configurar agentes de programação, criar e executar testes e investigar traces.
    • Revisados links, descrições e termos do glossário, incluindo informações sobre o ciclo de vida das engines.