Skip to content

Commit 86ede57

Browse files
deblasisLucaBlackDragon
authored andcommitted
Home Page Translation (#5)
* 🏠: Traduzione dell'home page * home-page: Review feedback updates * Update content/home/marketing/learn-once-write-anywhere.md Co-Authored-By: deblasis <[email protected]> * Update content/home/marketing/declarative.md Co-Authored-By: deblasis <[email protected]>
1 parent 092f8f1 commit 86ede57

12 files changed

+31
-31
lines changed

Diff for: content/home/examples/a-component-using-external-plugins.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class MarkdownEditor extends React.Component {
22
constructor(props) {
33
super(props);
44
this.handleChange = this.handleChange.bind(this);
5-
this.state = { value: 'Hello, **world**!' };
5+
this.state = { value: 'Ciao, **mondo**!' };
66
}
77

88
handleChange(e) {
@@ -19,7 +19,7 @@ class MarkdownEditor extends React.Component {
1919
<div className="MarkdownEditor">
2020
<h3>Input</h3>
2121
<label htmlFor="markdown-content">
22-
Enter some markdown
22+
Inserisci codice markdown
2323
</label>
2424
<textarea
2525
id="markdown-content"
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: A Component Using External Plugins
2+
title: Un Componente con Plugin Esterni
33
order: 3
44
domid: markdown-example
55
---
66

7-
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.
7+
React ti permette di interfacciarti con altre librerie e frameworks. Questo esempio usa **remarkable**, una libreria esterna Markdown, per convertire il contenuto di una `<textarea>` in tempo reale.

Diff for: content/home/examples/a-simple-component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ class HelloMessage extends React.Component {
22
render() {
33
return (
44
<div>
5-
Hello {this.props.name}
5+
Ciao {this.props.name}
66
</div>
77
);
88
}
99
}
1010

1111
ReactDOM.render(
12-
<HelloMessage name="Taylor" />,
12+
<HelloMessage name="Claudia" />,
1313
document.getElementById('hello-example')
1414
);

Diff for: content/home/examples/a-simple-component.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: A Simple Component
2+
title: Un Componente Semplice
33
order: 0
44
domid: hello-example
55
---
66

7-
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`.
7+
I componenti React implementano un metodo `render()` che riceve dati in input e ritorna cosa deve visualizzare. Questo esempio usa una sintassi simile ad XML chiamata JSX. I dati passati in input al componente possono essere acceduti da `render()` via `this.props`.
88

9-
**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.
9+
**JSX é opzionale e non richiesto per utilizzare React.** Prova il tool [Babel REPL](babel://es5-syntax-example) per vedere il codice JavaScript grezzo generato nel processo di compilazione JSX.

Diff for: content/home/examples/a-stateful-component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Timer extends React.Component {
2121
render() {
2222
return (
2323
<div>
24-
Seconds: {this.state.seconds}
24+
Secondi: {this.state.seconds}
2525
</div>
2626
);
2727
}

Diff for: content/home/examples/a-stateful-component.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: A Stateful Component
2+
title: Un Componente Stateful
33
order: 1
44
domid: timer-example
55
---
66

7-
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()`.
7+
Oltre a ricevere dati in input (accessibili via `this.props`), un componente può mantenere i dati del suo stato interno (accessibili via `this.state`). Quando lo stato di un componente cambia, il codice markup generato viene aggiornato invocando di nuovo `render()`, ciò avviene automaticamente.

Diff for: content/home/examples/an-application.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ class TodoApp extends React.Component {
1313
<TodoList items={this.state.items} />
1414
<form onSubmit={this.handleSubmit}>
1515
<label htmlFor="new-todo">
16-
What needs to be done?
16+
Cosa bisogna fare?
1717
</label>
1818
<input
1919
id="new-todo"
2020
onChange={this.handleChange}
2121
value={this.state.text}
2222
/>
2323
<button>
24-
Add #{this.state.items.length + 1}
24+
Aggiungi #{this.state.items.length + 1}
2525
</button>
2626
</form>
2727
</div>

Diff for: content/home/examples/an-application.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: An Application
2+
title: Una Applicazione
33
order: 2
44
domid: todos-example
55
---
66

7-
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.
7+
Usando `props` e `state`, possiamo costruire una piccola applicazione Todo (lista delle cose da fare). Questo esempio usa `state` per tracciare la lista corrente degli elementi oltre a cosa ha inserito l'utente. Anche se gli event handlers sembrano renderizzati inline, essi vengono raccolti ed implementati mediante delegati.

Diff for: content/home/marketing/component-based.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Component-Based
2+
title: Componentizzato
33
order: 1
44
---
55

6-
Build encapsulated components that manage their own state, then compose them to make complex UIs.
6+
Costruisci componenti che incapsulano e gestiscono il proprio stato interno, componili in modo da creare UI complesse.
77

8-
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.
8+
Dato che la logica dei componenti è scritta in JavaScript e non semplicemente in templates, puoi passare strutture dati ricche mantenendo lo stato fuori dal DOM.

Diff for: content/home/marketing/declarative.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Declarative
2+
title: Dichiarativo
33
order: 0
44
---
55

6-
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.
6+
React rende indolore la creazione di UI interattive. Costruisci semplici viste per ogni stato nella tua applicazione e React aggiornerà e renderizzerà efficientemente i componenti affetti dai cambiamenti quando essi avvengono.
77

8-
Declarative views make your code more predictable and easier to debug.
8+
Le viste dichiarative rendono il tuo codice più prevedibile e facile da debuggare.

Diff for: content/home/marketing/learn-once-write-anywhere.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Learn Once, Write Anywhere
2+
title: Imparalo una volta, usalo ovunque
33
order: 2
44
---
55

6-
We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
6+
Non facciamo presupposizioni riguardo le tecnologie che usi, in questo modo puoi sviluppare nuove funzionalità in React senza riscrivere codice esistente.
77

8-
React can also render on the server using Node and power mobile apps using [React Native](https://facebook.github.io/react-native/).
8+
React può inoltre effettuare il render lato server mediante Node e in apps mobili usando [React Native](https://facebook.github.io/react-native/).

Diff for: src/pages/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Home extends Component {
5151
return (
5252
<Layout location={location}>
5353
<TitleAndMetaTags
54-
title="React &ndash; A JavaScript library for building user interfaces"
54+
title="React &ndash; Una libreria JavaScript per costruire interfacce utente"
5555
ogUrl={createOgUrl('index.html')}
5656
/>
5757
<div css={{width: '100%'}}>
@@ -134,7 +134,7 @@ class Home extends Component {
134134
fontSize: 30,
135135
},
136136
}}>
137-
A JavaScript library for building user interfaces
137+
Una libreria JavaScript per costruire interfacce utente
138138
</p>
139139
<Flex
140140
valign="center"
@@ -149,12 +149,12 @@ class Home extends Component {
149149
<ButtonLink
150150
to="/docs/getting-started.html"
151151
type="primary">
152-
Get Started
152+
Inizia qui
153153
</ButtonLink>
154154
</CtaItem>
155155
<CtaItem>
156156
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
157-
Take the Tutorial
157+
Segui il Tutorial
158158
</ButtonLink>
159159
</CtaItem>
160160
</Flex>
@@ -286,12 +286,12 @@ class Home extends Component {
286286
<Flex valign="center">
287287
<CtaItem>
288288
<ButtonLink to="/docs/getting-started.html" type="primary">
289-
Get Started
289+
Inizia qui
290290
</ButtonLink>
291291
</CtaItem>
292292
<CtaItem>
293293
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
294-
Take the Tutorial
294+
Segui il Tutorial
295295
</ButtonLink>
296296
</CtaItem>
297297
</Flex>

0 commit comments

Comments
 (0)