Repository navigation
docs(pt): translate the desktop and electron reference pages - #2530
okwasniewski merged 2 commits into
Conversation
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.
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
…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.
okwasniewski
left a comment
There was a problem hiding this comment.
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)
- docs/pt/reference/electron.mdx was translated from the English at
f68b4e172. #2439 then addedwaitForURLand theexpect(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
What and why
#2448 added two English reference pages,
reference/desktopandreference/electron, and the pt guides already link to them. This adds their pt-BR translations.docs/pt/reference/desktop.mdx: the options, thedesktopfixture, input, keys, windows, reading a window, and how macOS elements map to roles.docs/pt/reference/electron.mdx: the options, launch arguments and environment, theelectronfixture 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
#anchors, ids, and component tags match English in the same order. Onreference/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 ptreference/config,cli,errors, oragentpages point at the page without English's anchor, since those pages lack the section until they catch up with English.pnpm docs:checkexit 0, and the translation check reports nothing for either page.keywordsfrontmatter (no translation carries it).Summary by CodeRabbit