Skip to content

Commit

Permalink
Merge pull request #113 from reactjs/gnuns-home-page
Browse files Browse the repository at this point in the history
Translate Home Page
  • Loading branch information
cezaraugusto authored Feb 20, 2019
2 parents 43593f8 + 359aae3 commit 608dc35
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 37 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ The documentation is divided into several sections with a different tone and pur

## Translation

If you are interested in translating `reactjs.org`, please see the current translation efforts at [isreacttranslatedyet.com](https://www.isreacttranslatedyet.com/).


If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).
If you are interested in translating `reactjs.org` to **pt-BR**, check the translation progress and claim a section/page to translate **[here](https://github.com/reactjs/pt-BR.reactjs.org/issues/1)**. Also, when translating any content, make sure you follow our **[Glossary](GLOSSARY.md)**.

## Troubleshooting

Expand Down
8 changes: 4 additions & 4 deletions content/home/examples/a-component-using-external-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class MarkdownEditor extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.state = { value: 'Hello, **world**!' };
this.state = { value: 'Olá, **mundo**!' };
}

handleChange(e) {
Expand All @@ -17,16 +17,16 @@ class MarkdownEditor extends React.Component {
render() {
return (
<div className="MarkdownEditor">
<h3>Input</h3>
<h3>Entrada</h3>
<label htmlFor="markdown-content">
Enter some markdown
Escreva alguma coisa com markdown
</label>
<textarea
id="markdown-content"
onChange={this.handleChange}
defaultValue={this.state.value}
/>
<h3>Output</h3>
<h3>Saída</h3>
<div
className="content"
dangerouslySetInnerHTML={this.getRawMarkup()}
Expand Down
4 changes: 2 additions & 2 deletions content/home/examples/a-component-using-external-plugins.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: A Component Using External Plugins
title: Um Componente Usando Plugins Externos
order: 3
domid: markdown-example
---

React allows you to interface with other libraries and frameworks. This example uses **remarkable**, an external Markdown library, to convert the `<textarea>`'s value in real time.
O React é flexível e facilita a interface com outras bibliotecas e frameworks. Este exemplo usa **remarkable**, uma biblioteca externa de Markdown, para converter o valor de uma `<textarea>` em tempo real.
2 changes: 1 addition & 1 deletion content/home/examples/a-simple-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class HelloMessage extends React.Component {
render() {
return (
<div>
Hello {this.props.name}
Olá, {this.props.name}!
</div>
);
}
Expand Down
6 changes: 3 additions & 3 deletions content/home/examples/a-simple-component.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: A Simple Component
title: Um Componente Simples
order: 0
domid: hello-example
---

React components implement a `render()` method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by `render()` via `this.props`.
Os componentes do React implementam um método `render()` que recebe os dados de entrada e retornam o que deve ser exibido. Este exemplo usa uma sintaxe parecida com XML chamada JSX. Os dados de entrada que são passados para o componente podem ser acessados no `render()` via `this.props`.

**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step.
**O JSX é opcional e não é necessário para usar o React.** Teste o [Babel REPL](babel://es5-syntax-example) para ver o código JavaScript bruto produzido pela etapa de compilação do JSX.
2 changes: 1 addition & 1 deletion content/home/examples/a-stateful-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Timer extends React.Component {
render() {
return (
<div>
Seconds: {this.state.seconds}
Segundos: {this.state.seconds}
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions content/home/examples/a-stateful-component.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: A Stateful Component
title: Um Componente com Estado (stateful component)
order: 1
domid: timer-example
---

In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
Além de receber dados de entrada (acessados via `this.props`), um componente pode manter dados do *state* interno (acessados via `this.state`). Quando os dados do state de um componente são alterados, o código renderizado será atualizado invocando o método `render()` novamente.
6 changes: 3 additions & 3 deletions content/home/examples/an-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ class TodoApp extends React.Component {
render() {
return (
<div>
<h3>TODO</h3>
<h3>Tarefas</h3>
<TodoList items={this.state.items} />
<form onSubmit={this.handleSubmit}>
<label htmlFor="new-todo">
What needs to be done?
O que precisa ser feito?
</label>
<input
id="new-todo"
onChange={this.handleChange}
value={this.state.text}
/>
<button>
Add #{this.state.items.length + 1}
Adicionar #{this.state.items.length + 1}
</button>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions content/home/examples/an-application.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: An Application
title: Uma Aplicação
order: 2
domid: todos-example
---

Using `props` and `state`, we can put together a small Todo application. This example uses `state` to track the current list of items as well as the text that the user has entered. Although event handlers appear to be rendered inline, they will be collected and implemented using event delegation.
Usando `props` e `state`, nós podemos montar uma pequena aplicação de Lista de Tarefas. Este exemplo usa `state` para manter a lista atual de itens, bem como o texto que o usuário inseriu. Apesar de parecer que os *event handlers* são renderizados *inline*, eles serão coletados e implementados usando a delegação de eventos (*event delegation*).
6 changes: 3 additions & 3 deletions content/home/marketing/component-based.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Component-Based
title: Baseado em componentes
order: 1
---

Build encapsulated components that manage their own state, then compose them to make complex UIs.
Crie componentes encapsulados que gerenciam seu próprio estado e então, combine-os para criar UIs complexas.

Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
Como a lógica do componente é escrita em JavaScript e não em templates, você pode facilmente passar diversos tipos de dados ao longo da sua aplicação e ainda manter o estado fora do DOM.
6 changes: 3 additions & 3 deletions content/home/marketing/declarative.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Declarative
title: Declarativo
order: 0
---

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
React faz com que a criação de UIs interativas seja uma tarefa fácil. Crie views simples para cada estado na sua aplicação, e o React irá atualizar e renderizar de forma eficiente apenas os componentes necessários na medida em que os dados mudam.

Declarative views make your code more predictable and easier to debug.
Views declarativas fazem com que seu código seja mais previsível e simples de depurar.
6 changes: 3 additions & 3 deletions content/home/marketing/learn-once-write-anywhere.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Learn Once, Write Anywhere
title: Aprenda uma vez, use em qualquer lugar
order: 2
---

We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
Não fazemos suposições sobre as outras tecnologias da sua stack, assim você pode desenvolver novos recursos com React sem reescrever o código existente.

React can also render on the server using Node and power mobile apps using [React Native](https://facebook.github.io/react-native/).
O React também pode ser renderizado no servidor, usando Node, e ser usado para criar aplicações mobile, através do [React Native](https://facebook.github.io/react-native/).
12 changes: 6 additions & 6 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Home extends Component {
return (
<Layout location={location}>
<TitleAndMetaTags
title="React &ndash; A JavaScript library for building user interfaces"
title="React &ndash; Uma biblioteca JavaScript para criar interfaces do usuário"
ogUrl={createOgUrl('index.html')}
/>
<div css={{width: '100%'}}>
Expand Down Expand Up @@ -134,7 +134,7 @@ class Home extends Component {
fontSize: 30,
},
}}>
A JavaScript library for building user interfaces
Uma biblioteca JavaScript para criar interfaces do usuário
</p>
<Flex
valign="center"
Expand All @@ -149,12 +149,12 @@ class Home extends Component {
<ButtonLink
to="/docs/getting-started.html"
type="primary">
Get Started
Comece a Usar
</ButtonLink>
</CtaItem>
<CtaItem>
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
Take the Tutorial
Faça o Tutorial
</ButtonLink>
</CtaItem>
</Flex>
Expand Down Expand Up @@ -286,12 +286,12 @@ class Home extends Component {
<Flex valign="center">
<CtaItem>
<ButtonLink to="/docs/getting-started.html" type="primary">
Get Started
Comece a Usar
</ButtonLink>
</CtaItem>
<CtaItem>
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
Take the Tutorial
Faça o Tutorial
</ButtonLink>
</CtaItem>
</Flex>
Expand Down

0 comments on commit 608dc35

Please sign in to comment.