Skip to content

Commit db1a66b

Browse files
Merge branch 'master' into master
2 parents 8de5115 + abff318 commit db1a66b

File tree

257 files changed

+5338
-4579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+5338
-4579
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!--
2+
3+
Thanks for your interest in this project, contributors like you keep React awesome!
4+
5+
Please, do not open a new issue claiming a translation. Instead, add a comment in https://github.com/reactjs/es.reactjs.org/issues/4
6+
7+
Thanks!
8+
-->

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ The documentation is divided into several sections with a different tone and pur
5757

5858
## Translation
5959

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

62-
* [Crowdin - React](https://crowdin.com/project/react)
62+
63+
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).
6364

6465
## Troubleshooting
6566

TRANSLATION.md

Lines changed: 114 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,135 @@
1-
# Translation
1+
# Traducción
22

3-
Current progress: https://github.com/reactjs/es.reactjs.org/issues/4
3+
Progreso actual: https://github.com/reactjs/es.reactjs.org/issues/4
44

5-
# Style Guide
5+
# Guía de estilo
66

7-
[todo]
7+
## Identificadores de los títulos
88

9-
# Common translations
9+
Los títulos de las secciones tienen identificadores explícitos de la siguiente manera:
1010

11-
Suggestion on words and terms:
11+
```md
12+
## Try React {#try-react}
13+
```
14+
15+
¡**NO** traduzcas estos identificadores! Se usan para la navegación y no funcionaría correctamente si se hace referencia externamente, o sea:
16+
17+
```md
18+
Consulta la [sección de inicio](/getting-started#try-react) para más información.
19+
```
20+
21+
✅ CORRECTO:
22+
23+
```md
24+
## Prueba React {#try-react}
25+
```
26+
27+
❌ INCORRECTO:
28+
29+
```md
30+
## Prueba React {#prueba-react}
31+
```
32+
33+
Esto hará que el enlace de arriba deje de funcionar.
34+
35+
## Texto en bloques de código
36+
37+
Deja el texto en los bloques de código sin traducir, excepto para los comentarios. Opcionalmente puedes traducir el texto en cadenas, ¡pero cuida de no traducir cadenas que hagan referencia a código!
38+
39+
Ejemplo:
40+
```js
41+
// Example
42+
const element = <h1>Hello, world</h1>;
43+
ReactDOM.render(element, document.getElementById('root'));
44+
```
45+
46+
✅ CORRECTO:
47+
48+
```js
49+
// Ejemplo
50+
const element = <h1>Hello, world</h1>;
51+
ReactDOM.render(element, document.getElementById('root'));
52+
```
53+
54+
✅ TAMBIÉN CORRECTO:
55+
56+
```js
57+
// Ejemplo
58+
const element = <h1>Hola mundo</h1>;
59+
ReactDOM.render(element, document.getElementById('root'));
60+
```
61+
62+
❌ INCORRECTO:
63+
64+
```js
65+
// Ejemplo
66+
const element = <h1>Hola mundo</h1>;
67+
// "root" hace referencia a un indentificador de un elemento.
68+
// NO LO TRADUZCAS
69+
ReactDOM.render(element, document.getElementById('raíz'));
70+
```
71+
72+
❌ DEFINITIVAMENTE INCORRECTO:
73+
74+
```js
75+
// Ejemplo
76+
const elemento = <h1>Hola mundo</h1>;
77+
ReactDOM.hacer(elemento, documento.obtenerElementoPorId('raíz'));
78+
```
79+
80+
## Enlaces externos
81+
82+
Si un enlace externo es a un artículo en un sitio de referencias como [MDN] o [Wikipedia] y existe una versión de este artículo en español con una calidad aceptable, considera sustituir el enlace por el de esa versión.
83+
84+
[MDN]: https://developer.mozilla.org/en-US/
85+
[Wikipedia]: https://en.wikipedia.org/wiki/Main_Page
86+
87+
Ejemplo:
88+
89+
```md
90+
React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object).
91+
```
92+
93+
✅ BIEN:
94+
95+
```md
96+
Los elementos de React son [inmutables](https://es.wikipedia.org/wiki/Objeto_inmutable).
97+
```
98+
99+
Para enlaces que no tienen un equivalente en español (Stack Overflow, videos de YouTube, etcétera) mantén el enlace en inglés.
100+
101+
## Usted, tú y vos
102+
103+
Para mantener la consistencia y evitar regionalismos decidimos utilizar tú para la segunda persona del singular.
104+
105+
# Traducciones comunes
106+
107+
Aquí hay algunas sugerencias para la traducción de términos de uso común en este tipo de documentación técnica.
12108

13109
| Original word/term | Suggestion |
14110
| ------------------ | ---------- |
15-
| array | array |
111+
| array | *array* |
16112
| arrow function | función flecha |
113+
| assert | comprobar |
17114
| bug | error |
18-
| Bundler | *Bundler* |
19-
| camelCase | *camelCase* |
115+
| bundler | *bundler* |
20116
| callback | *callback* |
117+
| camelCase | *camelCase* |
21118
| controlled component | componente controlado |
22119
| debugging | depuración |
23-
| key | key |
120+
| DOM | DOM |
121+
| framework | *framework* |
122+
| function component | componente de función |
123+
| hook | *hook* |
124+
| key | *key* |
125+
| lazy initialization | inicialización diferida |
24126
| library | biblioteca |
25127
| lowercase | minúscula(s) |
26128
| props | *props* |
27129
| React element | Elemento de React |
130+
| render | renderizar (verb), renderizado (noun)
131+
| shallow rendering | renderizado superficial |
28132
| state | estado |
29133
| string | *string* |
30134
| template literals | *template literals* |
31135
| uncontrolled component | componente no controlado |
32-
33-
34-

content/blog/2013-06-05-why-react.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ author: [petehunt]
66
There are a lot of JavaScript MVC frameworks out there. Why did we build React
77
and why would you want to use it?
88

9-
## React isn't an MVC framework.
9+
## React isn't an MVC framework. {#react-isnt-an-mvc-framework}
1010

1111
React is a library for building composable user interfaces. It encourages
1212
the creation of reusable UI components which present data that changes over
1313
time.
1414

15-
## React doesn't use templates.
15+
## React doesn't use templates. {#react-doesnt-use-templates}
1616

1717
Traditionally, web application UIs are built using templates or HTML directives.
1818
These templates dictate the full set of abstractions that you are allowed to use
@@ -33,7 +33,7 @@ to render views, which we see as an advantage over templates for a few reasons:
3333
We've also created [JSX](/docs/jsx-in-depth.html), an optional syntax
3434
extension, in case you prefer the readability of HTML to raw JavaScript.
3535

36-
## Reactive updates are dead simple.
36+
## Reactive updates are dead simple. {#reactive-updates-are-dead-simple}
3737

3838
React really shines when your data changes over time.
3939

@@ -63,7 +63,7 @@ Because this re-render is so fast (around 1ms for TodoMVC), the developer
6363
doesn't need to explicitly specify data bindings. We've found this approach
6464
makes it easier to build apps.
6565

66-
## HTML is just the beginning.
66+
## HTML is just the beginning. {#html-is-just-the-beginning}
6767

6868
Because React has its own lightweight representation of the document, we can do
6969
some pretty cool things with it:

content/blog/2013-06-12-community-roundup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: [vjeux]
55

66
React was open sourced two weeks ago and it's time for a little round-up of what has been going on.
77

8-
## Khan Academy Question Editor
8+
## Khan Academy Question Editor {#khan-academy-question-editor}
99

1010
It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outside of Facebook and Instagram to push React code to production. We are very grateful for her contributions in form of pull requests, bug reports and presence on IRC ([#reactjs on Freenode](irc://chat.freenode.net/reactjs)). Sophie wrote about her experience using React:
1111

@@ -16,7 +16,7 @@ It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outsid
1616
>
1717
> [Read the full post...](http://sophiebits.com/2013/06/09/using-react-to-speed-up-khan-academy.html)
1818
19-
## Pimp my Backbone.View (by replacing it with React)
19+
## Pimp my Backbone.View (by replacing it with React) {#pimp-my-backboneview-by-replacing-it-with-react}
2020

2121
[Paul Seiffert](https://blog.mayflower.de/) wrote a blog post that explains how to integrate React into Backbone applications.
2222

@@ -28,15 +28,15 @@ It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outsid
2828
>
2929
> [Read the full post...](https://blog.mayflower.de/3937-Backbone-React.html)
3030
31-
## Using facebook's React with require.js
31+
## Using facebook's React with require.js {#using-facebooks-react-with-requirejs}
3232

3333
[Mario Mueller](http://blog.xenji.com/) wrote a menu component in React and was able to easily integrate it with require.js, EventEmitter2 and bower.
3434

3535
> I recently stumbled upon facebook's React library, which is a JavaScript library for building reusable frontend components. Even if this lib is only at version 0.3.x it behaves very stable, it is fast and is fun to code. I'm a big fan of require.js, so I tried to use React within the require.js eco system. It was not as hard as expected and here are some examples and some thoughts about it.
3636
>
3737
> [Read the full post...](http://blog.xenji.com/2013/06/facebooks-react-require-js.html)
3838
39-
## Origins of React
39+
## Origins of React {#origins-of-react}
4040

4141
[Pete Hunt](http://www.petehunt.net/blog/) explained what differentiates React from other JavaScript libraries in [a previous blog post](/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) gives another perspective on Quora:
4242

content/blog/2013-06-19-community-roundup-2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: [vjeux]
55

66
Since the launch we have received a lot of feedback and are actively working on React 0.4. In the meantime, here are the highlights of this week.
77

8-
## Some quick thoughts on React
8+
## Some quick thoughts on React {#some-quick-thoughts-on-react}
99

1010
[Andrew Greig](http://www.andrewgreig.com/) made a blog post that gives a high level description of what React is.
1111

@@ -19,7 +19,7 @@ Since the launch we have received a lot of feedback and are actively working on
1919
>
2020
> [Read the full post...](http://www.andrewgreig.com/637/)
2121
22-
## React and Socket.IO Chat Application
22+
## React and Socket.IO Chat Application {#react-and-socketio-chat-application}
2323

2424
[Danial Khosravi](https://danialk.github.io/) made a real-time chat application that interacts with the back-end using Socket.IO.
2525

@@ -28,7 +28,7 @@ Since the launch we have received a lot of feedback and are actively working on
2828
>
2929
> [Read the full post...](https://danialk.github.io/blog/2013/06/16/reactjs-and-socket-dot-io-chat-application/)
3030
31-
## React and Other Frameworks
31+
## React and Other Frameworks {#react-and-other-frameworks}
3232

3333
[Pete Hunt](http://www.petehunt.net/blog/) wrote an answer on Quora comparing React and Angular directives. At the end, he explains how you can make an Angular directive that is in fact being rendered with React.
3434

@@ -40,7 +40,7 @@ Since the launch we have received a lot of feedback and are actively working on
4040
4141
In the same vein, [Markov Twain](https://twitter.com/markov_twain/status/345702941845499906) re-implemented the examples on the front-page [with Ember](http://jsbin.com/azihiw/2/edit) and [Vlad Yazhbin](https://twitter.com/vla) re-implemented the tutorial [with Angular](http://jsfiddle.net/vla/Cdrse/).
4242

43-
## Web Components: React & x-tags
43+
## Web Components: React & x-tags {#web-components-react--x-tags}
4444

4545
Mozilla and Google are actively working on Web Components. [Vjeux](http://blog.vjeux.com/) wrote a proof of concept that shows how to implement them using React.
4646

@@ -49,7 +49,7 @@ Mozilla and Google are actively working on Web Components. [Vjeux](http://blog.v
4949
>
5050
> [Read the full post...](http://blog.vjeux.com/2013/javascript/custom-components-react-x-tags.html)
5151
52-
## React TodoMVC Example
52+
## React TodoMVC Example {#react-todomvc-example}
5353

5454
[TodoMVC.com](http://todomvc.com/) is a website that collects various implementations of the same basic Todo app. [Pete Hunt](http://www.petehunt.net/blog/) wrote an idiomatic React version.
5555

@@ -60,7 +60,7 @@ Mozilla and Google are actively working on Web Components. [Vjeux](http://blog.v
6060
>
6161
> [Read the source code...](https://github.com/tastejs/todomvc/tree/gh-pages/labs/architecture-examples/react)
6262
63-
## JSX is not HTML
63+
## JSX is not HTML {#jsx-is-not-html}
6464

6565
Many of you pointed out differences between JSX and HTML. In order to clear up some confusion, we have added some documentation that covers the four main differences:
6666

content/blog/2013-06-21-react-v0-3-3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ author: [zpao]
66
We have a ton of great stuff coming in v0.4, but in the meantime we're releasing v0.3.3. This release addresses some small issues people were having and simplifies our tools to make them easier to use.
77

88

9-
## react-tools
9+
## react-tools {#react-tools}
1010

1111
* Upgrade Commoner so `require` statements are no longer relativized when passing through the transformer. This was a feature needed when building React, but doesn't translate well for other consumers of `bin/jsx`.
1212
* Upgraded our dependencies on Commoner and Recast so they use a different directory for their cache.
1313
* Freeze our esprima dependency.
1414

1515

16-
## React
16+
## React {#react}
1717

1818
* Allow reusing the same DOM node to render different components. e.g. `React.renderComponent(<div/>, domNode); React.renderComponent(<span/>, domNode);` will work now.
1919

2020

21-
## JSXTransformer
21+
## JSXTransformer {#jsxtransformer}
2222

2323
* Improved the in-browser transformer so that transformed scripts will execute in the expected scope. The allows components to be defined and used from separate files.

content/blog/2013-06-27-community-roundup-3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: [vjeux]
55

66
The highlight of this week is that an interaction-heavy app has been ported to React. React components are solving issues they had with nested views.
77

8-
## Moving From Backbone To React
8+
## Moving From Backbone To React {#moving-from-backbone-to-react}
99

1010
[Clay Allsopp](https://twitter.com/clayallsopp) successfully ported [Propeller](http://usepropeller.com/blog/posts/from-backbone-to-react/), a fairly big, interaction-heavy JavaScript app, to React.
1111

@@ -17,7 +17,7 @@ The highlight of this week is that an interaction-heavy app has been ported to R
1717
>
1818
> [Read the full post...](http://usepropeller.com/blog/posts/from-backbone-to-react/)
1919
20-
## Grunt Task for JSX
20+
## Grunt Task for JSX {#grunt-task-for-jsx}
2121

2222
[Eric Clemmons](https://ericclemmons.github.io/) wrote a task for [Grunt](http://gruntjs.com/) that applies the JSX transformation to your JavaScript files. It also works with [Browserify](http://browserify.org/) if you want all your files to be concatenated and minified together.
2323

@@ -45,7 +45,7 @@ The highlight of this week is that an interaction-heavy app has been ported to R
4545
>
4646
> [Check out the project ...](https://github.com/ericclemmons/grunt-react)
4747
48-
## Backbone/Handlebars Nested Views
48+
## Backbone/Handlebars Nested Views {#backbonehandlebars-nested-views}
4949
5050
[Joel Burget](http://joelburget.com/) wrote a blog post talking about the way we would write React-like components in Backbone and Handlebars.
5151
@@ -57,13 +57,13 @@ The highlight of this week is that an interaction-heavy app has been ported to R
5757
>
5858
> [Read the full post...](http://joelburget.com/react/)
5959
60-
## JSRomandie Meetup
60+
## JSRomandie Meetup {#jsromandie-meetup}
6161
6262
[Renault John Lecoultre](https://twitter.com/renajohn/) from [BugBuster](http://www.bugbuster.com) did a React introduction talk at a JS meetup called [JS Romandie](https://twitter.com/jsromandie) last week.
6363
6464
<script async class="speakerdeck-embed" data-id="888a9d50c01b01300df36658d0894ac1" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>
6565
66-
## CoffeeScript integration
66+
## CoffeeScript integration {#coffeescript-integration}
6767
6868
[Vjeux](http://blog.vjeux.com/) used the fact that JSX is just a syntactic sugar on-top of regular JS to rewrite the React front-page examples in CoffeeScript.
6969
@@ -81,7 +81,7 @@ The highlight of this week is that an interaction-heavy app has been ported to R
8181
>
8282
> [Read the full post...](http://blog.vjeux.com/2013/javascript/react-coffeescript.html)
8383
84-
## Tutorial in Plain JavaScript
84+
## Tutorial in Plain JavaScript {#tutorial-in-plain-javascript}
8585
8686
We've seen a lot of people comparing React with various frameworks. [Ricardo Tomasi](http://ricardo.cc/) decided to re-implement the tutorial without any framework, just plain JavaScript.
8787

content/blog/2013-07-02-react-v0-4-autobind-by-default.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: [zpao]
66
React v0.4 is very close to completion. As we finish it off, we'd like to share with you some of the major changes we've made since v0.3. This is the first of several posts we'll be making over the next week.
77

88

9-
## What is React.autoBind?
9+
## What is React.autoBind? {#what-is-reactautobind}
1010

1111
If you take a look at most of our current examples, you'll see us using `React.autoBind` for event handlers. This is used in place of `Function.prototype.bind`. Remember that in JS, [function calls are late-bound](https://bonsaiden.github.io/JavaScript-Garden/#function.this). That means that if you simply pass a function around, the `this` used inside won't necessarily be the `this` you expect. `Function.prototype.bind` creates a new, properly bound, function so that when called, `this` is exactly what you expect it to be.
1212

@@ -33,7 +33,7 @@ React.createClass({
3333
```
3434

3535

36-
## What's Changing in v0.4?
36+
## What's Changing in v0.4? {#whats-changing-in-v04}
3737

3838
After using `React.autoBind` for a few weeks, we realized that there were very few times that we didn't want that behavior. So we made it the default! Now all methods defined within `React.createClass` will already be bound to the correct instance.
3939

0 commit comments

Comments
 (0)