-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translated page content & Challenge, Recap, Illustration components translations #428
Translated page content & Challenge, Recap, Illustration components translations #428
Conversation
…onents translations
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 Three Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Co-authored-by: Alessandro De Blasis <alex@deblasis.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 Three Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
titleText = isRecipes ? 'Try out some examples' : 'Try out some challenges', | ||
titleId = isRecipes ? 'examples' : 'challenges', | ||
titleText = isRecipes ? 'Prova alcuni esempi' : 'Prova alcune sfide', | ||
titleId = isRecipes ? 'Esempi' : 'Sfide', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
titleId = isRecipes ? 'Esempi' : 'Sfide', | |
titleId = isRecipes ? 'esempi' : 'sfide', |
## Props familiari {/*familiar-props*/} | ||
Le props sono le informazioni che passi ad un tag JSX. Ad esempio, `className`, `src`, `alt`, `width` e `height` sono alcune delle props che puoi passare ad un `<img>`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Props familiari {/*familiar-props*/} | |
Le props sono le informazioni che passi ad un tag JSX. Ad esempio, `className`, `src`, `alt`, `width` e `height` sono alcune delle props che puoi passare ad un `<img>`: | |
## Props familiari {/*familiar-props*/} | |
Le props sono le informazioni che passi ad un tag JSX. Ad esempio, `className`, `src`, `alt`, `width` e `height` sono alcune delle props che puoi passare ad un `<img>`: |
Aggiunto spazio presente nell'originale :)
|
||
### Step 2: Read props inside the child component {/*step-2-read-props-inside-the-child-component*/} | ||
### Step 2: Leggi le props all'interno del tuo componente figlio {/*step-2-read-props-inside-the-child-component*/} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Step 2: Leggi le props all'interno del tuo componente figlio {/*step-2-read-props-inside-the-child-component*/} | |
### Step 2: Leggi le props all'interno del componente figlio {/*step-2-read-props-inside-the-child-component*/} |
|
||
```js | ||
function Avatar({ person, size }) { | ||
// person and size are available here | ||
// person and size sono disponibili qui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// person and size sono disponibili qui | |
// person e size sono disponibili qui |
|
||
<Pitfall> | ||
|
||
**Don't miss the pair of `{` and `}` curlies** inside of `(` and `)` when declaring props: | ||
**Non dimenticare la coppia di `{` e `}` graffe** all'interno di `(` e `)` quando dichiari le props: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Non dimenticare la coppia di `{` e `}` graffe** all'interno di `(` e `)` quando dichiari le props: | |
**Non dimenticare la coppia di graffe `{` e `}`** all'interno di `(` e `)` quando dichiari le props: |
* Per passare le props, aggiungile al JSX, proprio come faresti con gli attributi HTML. | ||
* Per leggere le props, usa la sintassi di destrutturazione `function Avatar({ person, size })`. | ||
* Puoi specificare un valore predefinito come `size = 100`, che viene utilizzato per le props mancanti ed `undefined`. | ||
* Puoi inoltra tutte le props con la sintassi di spread JSX `<Avatar {...props} />`, ma non abusarne! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Puoi inoltra tutte le props con la sintassi di spread JSX `<Avatar {...props} />`, ma non abusarne! | |
* Puoi inoltrare tutte le props con la sintassi di spread JSX `<Avatar {...props} />`, ma non abusarne! |
* Puoi inoltra tutte le props con la sintassi di spread JSX `<Avatar {...props} />`, ma non abusarne! | ||
* Il JSX annidato come `<Card><Avatar /></Card>` apparirà come `children` della prop del componente `Card`. | ||
* Le props sono istantanee di sola lettura nel tempo: ogni render riceve una nuova versione delle props. | ||
* Non puoi cambiare le props. Quando hai bisogno di interattività, dovrai impostare lo stato. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Non puoi cambiare le props. Quando hai bisogno di interattività, dovrai impostare lo stato. | |
* Non puoi cambiare le props. Quando hai bisogno di interattività, dovrai impostare lo state. |
Teniamo state come da glossario 🙂
|
||
**Don't try to "change props".** When you need to respond to the user input (like changing the selected color), you will need to "set state", which you can learn about in [State: A Component's Memory.](/learn/state-a-components-memory) | ||
**Non provare a "cambiare le props".** Quando hai bisogno di rispondere all'input dell'utente (come cambiare il colore selezionato), dovrai "impostare lo stato", che puoi imparare in [State: La memoria di un Componente.](/learn/state-a-components-memory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Non provare a "cambiare le props".** Quando hai bisogno di rispondere all'input dell'utente (come cambiare il colore selezionato), dovrai "impostare lo stato", che puoi imparare in [State: La memoria di un Componente.](/learn/state-a-components-memory) | |
**Non provare a "cambiare le props".** Quando hai bisogno di rispondere all'input dell'utente (come cambiare il colore selezionato), dovrai "impostare lo stato", che puoi imparare in [State: La Memoria di un Componente.](/learn/state-a-components-memory) |
|
||
**Don't try to "change props".** When you need to respond to the user input (like changing the selected color), you will need to "set state", which you can learn about in [State: A Component's Memory.](/learn/state-a-components-memory) | ||
**Non provare a "cambiare le props".** Quando hai bisogno di rispondere all'input dell'utente (come cambiare il colore selezionato), dovrai "impostare lo stato", che puoi imparare in [State: La memoria di un Componente.](/learn/state-a-components-memory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Non provare a "cambiare le props".** Quando hai bisogno di rispondere all'input dell'utente (come cambiare il colore selezionato), dovrai "impostare lo stato", che puoi imparare in [State: La memoria di un Componente.](/learn/state-a-components-memory) | |
**Non provare a "cambiare le props".** Quando hai bisogno di rispondere all'input dell'utente (come cambiare il colore selezionato), dovrai "impostare lo state", che puoi imparare in [State: La memoria di un Componente.](/learn/state-a-components-memory) |
Teniamo state come da glossario 🙂
Oops, ho fatto tardi 😄 |
No problem, posso aprire una PR separata ed aggiungo queste fix 😉 |
Ciao @mattia-sanfilippo, ho appena creato la PR per aggiustare le translations con le modifiche che hai suggerito 😄 |
Translation for "Passing props to to a component" page.
Also added
<Challenge>,
<Recap>
,<Illustration>
components translations.Ref #418