Skip to content

docs(pt): translate the desktop and electron reference pages - #2530

Merged
okwasniewski merged 2 commits into
e2e-inc:mainfrom
eriveltonelias:docs-pt-reference-desktop-electron
Nov 30, 2026
Merged

okwasniewski merged 2 commits into
e2e-inc:mainfrom
eriveltonelias:docs-pt-reference-desktop-electron

Conversation

@eriveltonelias

@eriveltonelias eriveltonelias commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What and why

#2448 added two English reference pages, reference/desktop and reference/electron, and the pt guides already link to them. This adds their pt-BR translations.

  • docs/pt/reference/desktop.mdx: the options, the desktop fixture, input, keys, windows, reading a window, and how macOS elements map to roles.
  • docs/pt/reference/electron.mdx: the options, launch arguments and environment, the electron fixture and its windows, behavior on Electron, and security. Its headings match the link text of the pt Electron guide.
  • docs/pt/README.md: nine glossary rows, among them "diretório de dados do usuário", "página convidada", "se encerrar" for an app that quits by itself (the engine "encerra" it), and "habilitado/desabilitado" for a control, since "ativo" names the active window.

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 reference/desktop, the per-page comparison flags a double-backtick span that wraps at a different place; a per-line span diff shows all 350 spans identical. The exception: 2 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 either page.
  • No em or en dashes, no repeated line tails, and no keywords frontmatter (no translation carries it).
  • A fresh-context review of each page found no wrong fact. It caught "ativar" for enabling a control, "fechou" for an app quitting (it reads as a window closing), "fazer o parse" where the desktop page says "converta", a guide link text that did not match the new "Ler uma janela" heading, and a few wording nits. All are fixed.

View guided diff

Summary by CodeRabbit

  • Documentation
    • Added Brazilian Portuguese reference guides for desktop and Electron testing, covering configuration, permissions, app and window behavior, interactions, accessibility, security boundaries, limitations, and examples.
    • Expanded the Portuguese glossary with translations for desktop and Electron terminology.

Add pt-BR translations of docs/reference/desktop.mdx and
docs/reference/electron.mdx, the two reference pages e2e-inc#2448 added, and nine
glossary rows for their terms: the user-data directory, the local file
boundary, the menu accelerator, the guest page, the window buttons, the key
grammar, se encerrar for an app that quits by itself, the contract member,
and habilitado/desabilitado for a control.
@github-actions github-actions Bot added the size:XXL 1,000+ changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Portuguese engine documentation

Layer / File(s) Summary
Desktop configuration and glossary
docs/pt/reference/desktop.mdx, docs/pt/README.md
Documents desktop configuration, validation, startup requirements, environment, permissions, and capabilities. Adds Portuguese glossary terms for related concepts.
Desktop fixture and windows
docs/pt/reference/desktop.mdx
Documents the desktop fixture, its members and errors, window selection, active-window behavior, and window methods.
Desktop input and accessibility
docs/pt/reference/desktop.mdx
Documents input rules, physical input, selection, accessibility snapshots, locator behavior, limitations, security conditions, cleanup, and exported types.
Electron reference
docs/pt/reference/electron.mdx
Documents Electron configuration, app lifecycle, fixture APIs, window and input behavior, capabilities, limitations, security rules, and package exports in Portuguese.

Possibly related issues

Possibly related PRs

  • e2e-inc/e2e#2451 — Updates Portuguese Electron guide content that overlaps with the Electron reference added here.
  • e2e-inc/e2e#2532 — Updates Portuguese desktop guide links and content that correspond to the desktop reference added here.
  • e2e-inc/e2e#2448 — Adds the English desktop and Electron references translated by this change.

Change: Other

Merge Risk: Minimal · up to 36c35

This PR adds Portuguese reference pages and glossary entries without changing runtime behavior. Nothing in the supplied evidence points to a merge-blocking problem.

Architecture risk: Low · up to 325ca

The change affects 1 source area.

Changed areas: docs

Review details

Systems and components

  • observed — 3 changed files mapped to docs.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ae5f1aa4-aa36-4256-a09a-7c453ea544a5
Commits

Reviewing files that changed from the base of the PR and between 325ca90 and 36c3585.

Files selected for processing: 2

  • docs/pt/reference/desktop.mdx
  • docs/pt/reference/electron.mdx
Files skipped from review as they are similar to previous changes: 2

  • docs/pt/reference/desktop.mdx
  • docs/pt/reference/electron.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread docs/pt/reference/electron.mdx Resolved
…anchor

These links follow English, but the pt pages they point to
(reference/config, cli, errors, and agent) still lag English, so the site
gives those pages ids of their own and the anchors miss. Link to the page
until those pages catch up, as e2e-inc#2448 did for other pt links.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review (AI triage pass), not yet read by a maintainer.

Reviewed 36c35851e. Faithful pt-BR translations of reference/desktop and reference/electron, plus glossary rows; nothing outside docs/pt.

Checked: merged onto main ddebc946c, check-docs-mdx, check-docs-anchors and check-docs-translations pass (both pages compile, every anchor resolves). desktop.mdx matches the English outline and every code block. Compared every inline code span, number, and link in the prose against English: the only differences on desktop.mdx are localized 8.000 and one /reference/config link without its anchor, because the pt config page does not have that section yet. Read the options, throws table, and option sections line by line against English: no wrong facts. Frontmatter matches the other pt pages (no keywords, same as every translated page). No docs.json change is needed: the site serves docs/pt/reference/*.mdx beside the English nav entries.

Should fix (best effort, fine as a follow-up)

  1. docs/pt/reference/electron.mdx was translated from the English at f68b4e172. #2439 then added waitForURL and the expect(electron) window matchers to the English page (section at L616 on). The drift check on main now reports this page as behind (heading #26, code block #40). Translating those sections here, or in a follow-up, closes it.

For the maintainer

  • /electron#test-a-packaged-app (line 92) resolves once #2451 brings the pt Electron guide in line. Land #2451 first or together. No conflicts with #2451, #2414, #2531, #2532, or #2533 (checked with git merge-tree).

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 30, 2026
@okwasniewski
okwasniewski added this pull request to the merge queue Nov 30, 2026
Merged via the queue into e2e-inc:main with commit d625480 Nov 30, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:XXL 1,000+ changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants