Back to .md Directory

Guia de Estilo Universal

Defines translation rules for a Portuguese version of the TypeScript React cheatsheet, covering code blocks, external links, and terminology.

May 2, 2026
0 downloads
0 views
ai
View source

What this file does

Defines translation rules for a Portuguese version of the TypeScript React cheatsheet, covering code blocks, external links, and terminology.

When to use it

  • Translating the TypeScript React cheatsheet into Portuguese
  • Contributing to the react-pt repository
  • Establishing a style guide for a Portuguese tech translation project

Assumes this stack

TypeScriptReactMarkdown

Guia de Estilo Universal

Texto em Blocos de Código

Mantenha o texto em blocos de código sem tradução, exceto para os comentários. Você pode optar por traduzir o texto em strings, mas tenha cuidado para não traduzir strings que se refiram ao código!

Exemplo:

// Example
const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));

✅ FAÇA:

// Exemplo
const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));

✅ PERMITIDO:

// Exemplo
const element = <h1>Olá mundo</h1>;
ReactDOM.render(element, document.getElementById('root'));

❌ NÃO FAÇA:

// Exemplo
const element = <h1>Olá mundo</h1>;
// "root" se refere a um ID de elemento.
// NÃO TRADUZA
ReactDOM.render(element, document.getElementById('raiz'));

❌ DEFINITIVAMENTE NÃO FAÇA:

// Exemplo
const elemento = <h1>Olá mundo</h1>;
ReactDOM.renderizar(elemento, documento.obterElementoPorId('raiz'));

Links Externos

Se um link externo se referir a um artigo no MDN or Wikipedia e se houver uma versão traduzida em seu idioma em uma qualidade decente, opte por usar a versão traduzida.

Exemplo:

React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object).

✅ OK:

Elementos React são [imutáveis](https://pt.wikipedia.org/wiki/Objeto_imutável).

Para links que não possuem tradução (Stack Overflow, vídeos do YouTube, etc.), simplesmente use o link original.

Traduções Comuns

Sugestões de palavras e termos:

Palavra/Termo originalSugestão
assertionasserção
browsernavegador
bubblingpropagar
bugerro
class componentcomponente de classe
classclasse
clientcliente
client-sidelado do cliente
containercontêiner
contextcontexto
controlled componentcomponente controlado
debuggingdepuração
DOM nodenó do DOM
event handlermanipulador de eventos (event handler)
function componentcomponente de função
handlermanipulador
helper functionfunção auxiliar
high-order componentscomponente de alta-ordem
keychave
librarybiblioteca
lowercaseminúscula(s) / caixa baixa
packagepacote
React elementElemento React
React fragmentFragmento React
renderrenderizar (verb), renderizado (noun)
serverservidor
server-sidelado do servidor
siblingsirmãos
stateful componentcomponente com estado
stateful logiclógica com estado
to assertafirmar
to wrapencapsular
uncontrolled componentcomponente não controlado
uppercasemaiúscula(s) / caixa alta

Conteúdo que não deve ser traduzido

  • array
  • arrow function
  • bind
  • bundle
  • bundler
  • callback
  • camelCase
  • DOM
  • event listener
  • framework
  • hook
  • log
  • mock
  • portal
  • props
  • ref
  • release
  • script
  • single-page-apps
  • state
  • string
  • string literal
  • subscribe
  • subscription
  • template literal
  • timestamps
  • UI
  • watcher
  • widgets
  • wrapper

Se deseja agregar algo que falta, abra um issue.

What's inside

4 sections: code block rules, external link guidelines, common translations table, and untranslatable terms list

Change this for your project

  • Replace typescript-cheatsheets/react-pt with your own repository name in the issue link
  • Replace pt-BR and pt.wikipedia.org URLs with your target language equivalents

Where it goes

Keep it in your repository where the agent or team that needs it will read it.

Worth borrowing

  • Separating translatable strings from code identifiers in code blocks
  • Using a table for consistent term translations across a project

Related Documents