Skip to content

docs(pt): translate handbook-v2/Object Types#253

Open
guuszz wants to merge 1 commit into
microsoft:mainfrom
guuszz:docs/pt-br-handbook-v2-object-types
Open

docs(pt): translate handbook-v2/Object Types#253
guuszz wants to merge 1 commit into
microsoft:mainfrom
guuszz:docs/pt-br-handbook-v2-object-types

Conversation

@guuszz
Copy link
Copy Markdown

@guuszz guuszz commented Jun 3, 2026

Summary

Adds the Brazilian Portuguese translation of Object Types from the TypeScript v2 Handbook, into docs/documentation/pt/handbook-v2/.

This continues the handbook-v2 PT-BR effort (#247#252). Object Types is page #6 in the reading order and one of the longest/most-consulted pages — it covers property modifiers (optional, readonly), index signatures, excess property checks, extending types, intersections, generic object types, the Array/ReadonlyArray types and tuple types.

Translation choices

  • Followed the established pt/ frontmatter convention: translated title and oneline, adapted permalink to /pt/docs/handbook/2/objects.html.
  • Preserved every code sample verbatim — all @errors directive lines (21 groups, verified identical to EN via diff), every // ---cut--- (17), all 18 positional markers (// ^? and ^^^^ pointers), and the special twoslash compiler-option directives (// @noLib: true, // @strictPropertyInitialization: false, // @noImplicitAny: false).
  • Preserved the <details>/<summary> collapsible block (multiple indexers): translated the prose, kept the code untouched.
  • Kept all HTML comments including the large commented-out <!-- TODO --> and <!-- ## Other Kinds... --> sections verbatim.
  • Translated JSDoc comments and explanatory comments inside code blocks (e.g. the Array<Type> interface doc-comments); identifiers, strings and sample values left unchanged.
  • Kept technical terms with a PT gloss on first use (e.g. assinatura de índice (index signature), verificação de propriedades excedentes (excess property checking), tipos de interseção (intersection types), tipo de tupla (tuple type)).

Source

microsoft/TypeScript-Website @ packages/documentation/copy/en/handbook-v2/Object Types.md

Testing

Read side-by-side with the EN source; verified code fences (128), ---cut--- (17), ^? markers (18), <details> (1) and special compiler-option directives (3) match, and a diff of all @errors codes between EN and PT is empty. Cross-checked terminology against the already-merged pt/ pages and my sibling PRs (#247#252).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant