Skip to content

Commit 27f3bc5

Browse files
github-merge-queuegithub-actions[bot]
authored andcommitted
chore: automated format of translated files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2ee8db7 commit 27f3bc5

33 files changed

Lines changed: 492 additions & 333 deletions

apps/site/pages/es/about/branding.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ Por favor revise la [política de la marca comercial](https://trademark-policy.o
1111

1212
Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por diseñar y contribuir con la Tortuga Cohete.
1313

14-
<img alt="Mascota de Node.js" src="/static/images/node-mascot.svg" className="w-[100px]" width="100" height="114" />
14+
<img
15+
alt="Mascota de Node.js"
16+
src="/static/images/node-mascot.svg"
17+
className="w-[100px]"
18+
width="100"
19+
height="114"
20+
/>
1521

1622
## Logo de Node.js®
1723

@@ -27,6 +33,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
2733
<td>
2834
<img alt="Logo Horizontal Claro de Node.js" src="/static/logos/nodejsLight.svg" className="h-[80px] w-[267px] bg-neutral-950 p-2 dark:bg-transparent" width="267" height="80" />
2935
</td>
36+
3037
</tr>
3138
</tbody>
3239
</table>
@@ -43,6 +50,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
4350
<td>
4451
<img alt="Logo Apilado Claro de Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
4552
</td>
53+
4654
</tr>
4755

4856
<tr>
@@ -53,6 +61,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
5361
<td>
5462
<img alt="Logo Apilado Blanco de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded bg-neutral-950 p-2 dark:bg-transparent" />
5563
</td>
64+
5665
</tr>
5766
</tbody>
5867
</table>
@@ -69,6 +78,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
6978
<td>
7079
<img alt="Iconos Blanco de JS" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
7180
</td>
81+
7282
</tr>
7383
</tbody>
7484
</table>

apps/site/pages/es/about/security-reporting.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ Si tienes sugerencias sobre cómo podría mejorarse este proceso, por favor, env
5353

5454
## Mejores Prácticas de la OpenSSF
5555

56-
<a href="https://bestpractices.coreinfrastructure.org/projects/29" style={{ display: 'inline-flex' }}>
57-
<img alt="Insignia OpenSSF" src="https://bestpractices.coreinfrastructure.org/projects/29/badge" style={{ display: 'inline' }} />
56+
<a
57+
href="https://bestpractices.coreinfrastructure.org/projects/29"
58+
style={{ display: 'inline-flex' }}
59+
>
60+
<img
61+
alt="Insignia OpenSSF"
62+
src="https://bestpractices.coreinfrastructure.org/projects/29/badge"
63+
style={{ display: 'inline' }}
64+
/>
5865
</a>
5966

6067
La [Insignia de Buenas Prácticas](https://github.com/coreinfrastructure/best-practices-badge) de la Fundación de Seguridad del Software Abierto (OpenSSF) es una manera en que los proyectos de Software Libre y de Código Abierto (FLOSS) pueden mostrar que siguen las mejores prácticas. Los proyectos pueden auto-certificarse voluntariamente sobre cómo siguen cada buena práctica. Los consumidores de la insignia pueden evaluar rápidamente qué proyectos FLOSS siguen las mejores prácticas y, como resultado, tienen más probabilidades de producir software seguro de alta calidad.

apps/site/pages/fa/about/security-reporting.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@ layout: about
5050

5151
## رویه‌های بهینه OpenSSF
5252

53-
<a href="https://bestpractices.coreinfrastructure.org/projects/29" style={{ display: 'inline-flex' }}>
54-
<img alt="نشان OpenSSF" src="https://bestpractices.coreinfrastructure.org/projects/29/badge" style={{ display: 'inline' }} />
53+
<a
54+
href="https://bestpractices.coreinfrastructure.org/projects/29"
55+
style={{ display: 'inline-flex' }}
56+
>
57+
<img
58+
alt="نشان OpenSSF"
59+
src="https://bestpractices.coreinfrastructure.org/projects/29/badge"
60+
style={{ display: 'inline' }}
61+
/>
5562
</a>
5663

5764
[نشان بهترین شیوه ها](https://github.com/coreinfrastructure/best-practices-badge) بنیاد امنیت متن باز (OpenSSF) راهی است برای پروژه‌های نرم‌افزار آزاد/رایگان و متن باز (FLOSS) تا نشان دهند که از رویه‌های بهینه پیروی می‌کنند. پروژه‌ها می‌توانند به صورت داوطلبانه خود تأیید کنند که چگونه از هر رویه بهینه پیروی می‌کنند. مصرف‌کنندگان این نشان می‌توانند به سرعت ارزیابی کنند که کدام پروژه‌های FLOSS از رویه‌های بهینه پیروی می‌کنند و در نتیجه احتمال بیشتری دارد که نرم‌افزارهای امن با کیفیت بالاتر تولید کنند.

apps/site/pages/fr/about/branding.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ Veuillez consulter la [politique en matière de marques](https://trademark-polic
1111

1212
Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la conception et la contribution de la tortue-fusée.
1313

14-
<img alt="Mascotte de Node.js" src="/static/images/node-mascot.svg" className="w-[100px]" width="100" height="114" />
14+
<img
15+
alt="Mascotte de Node.js"
16+
src="/static/images/node-mascot.svg"
17+
className="w-[100px]"
18+
width="100"
19+
height="114"
20+
/>
1521

1622
## Logo Node.js®
1723

@@ -27,6 +33,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
2733
<td>
2834
<img alt="Logo horizontal clair de Node.js" src="/static/logos/nodejsLight.svg" className="h-[80px] w-[267px] bg-neutral-950 p-2 dark:bg-transparent" width="267" height="80" />
2935
</td>
36+
3037
</tr>
3138
</tbody>
3239
</table>
@@ -43,6 +50,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
4350
<td>
4451
<img alt="Logo empilé clair de Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
4552
</td>
53+
4654
</tr>
4755

4856
<tr>
@@ -53,6 +61,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
5361
<td>
5462
<img alt="Logo empilé blanc de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded bg-neutral-950 p-2 dark:bg-transparent" />
5563
</td>
64+
5665
</tr>
5766
</tbody>
5867
</table>
@@ -69,6 +78,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
6978
<td>
7079
<img alt="Icons JS Blanc" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
7180
</td>
81+
7282
</tr>
7383
</tbody>
7484
</table>

apps/site/pages/fr/about/index.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const hostname = '127.0.0.1';
1515
const port = 3000;
1616

1717
const server = createServer((req, res) => {
18-
res.statusCode = 200;
19-
res.setHeader('Content-Type', 'text/plain');
20-
res.end('Hello World');
18+
res.statusCode = 200;
19+
res.setHeader('Content-Type', 'text/plain');
20+
res.end('Hello World');
2121
});
2222

2323
server.listen(port, hostname, () => {
24-
console.log(`Server running at http://${hostname}:${port}/`);
24+
console.log(`Server running at http://${hostname}:${port}/`);
2525
});
2626
```
2727

@@ -32,13 +32,13 @@ const hostname = '127.0.0.1';
3232
const port = 3000;
3333

3434
const server = createServer((req, res) => {
35-
res.statusCode = 200;
36-
res.setHeader('Content-Type', 'text/plain');
37-
res.end('Hello World');
35+
res.statusCode = 200;
36+
res.setHeader('Content-Type', 'text/plain');
37+
res.end('Hello World');
3838
});
3939

4040
server.listen(port, hostname, () => {
41-
console.log(`Server running at http://${hostname}:${port}/`);
41+
console.log(`Server running at http://${hostname}:${port}/`);
4242
});
4343
```
4444

apps/site/pages/fr/about/previous-releases.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ par exemple, via des CLI, des gestionnaires de paquets OS (tels que `apt`), ou d
3131

3232
Le projet Node.js, dans une tentative de populariser et d'annoncer les efforts de la communauté, a introduit une nouvelle page de téléchargement qui liste à la fois les méthodes d'installation officielles et communautaires, offrant plus de polyvalence et d'options aux utilisateurs. Avec ce changement, nous avons introduit le concept de méthodes d'installation "officielles" et "communautaires". Pour être considérée comme "officielle", la méthode d'installation doit répondre aux critères suivants :
3333

34-
Prérequis |
35-
----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36-
Les nouvelles versions de Node.js doivent être disponibles en même temps que la version officielle |
37-
Les responsables de projet ont une relation étroite avec Node.js, y compris une communication directe |
38-
La méthode d'installation télécharge les binaires officiels fournis par le projet Node.js |
39-
La méthode d'installation ne compile **pas** à partir des sources lorsque les binaires sont disponibles, ni ne modifie les binaires officiels fournis par Node.js |
34+
| Prérequis |
35+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36+
| Les nouvelles versions de Node.js doivent être disponibles en même temps que la version officielle |
37+
| Les responsables de projet ont une relation étroite avec Node.js, y compris une communication directe |
38+
| La méthode d'installation télécharge les binaires officiels fournis par le projet Node.js |
39+
| La méthode d'installation ne compile **pas** à partir des sources lorsque les binaires sont disponibles, ni ne modifie les binaires officiels fournis par Node.js |

apps/site/pages/fr/about/security-reporting.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,15 @@ Si vous avez des suggestions sur la façon dont ce processus pourrait être amé
7474

7575
## OpenSSF Best Practices
7676

77-
<a href="https://bestpractices.coreinfrastructure.org/projects/29" style={{ display: 'inline-flex' }}>
78-
<img alt="Badge OpenSSF" src="https://bestpractices.coreinfrastructure.org/projects/29/badge" style={{ display: 'inline' }} />
77+
<a
78+
href="https://bestpractices.coreinfrastructure.org/projects/29"
79+
style={{ display: 'inline-flex' }}
80+
>
81+
<img
82+
alt="Badge OpenSSF"
83+
src="https://bestpractices.coreinfrastructure.org/projects/29/badge"
84+
style={{ display: 'inline' }}
85+
/>
7986
</a>
8087

8188
Le [badge des meilleures pratiques] de l'Open Source Security Foundation (OpenSSF) (https://github.com/coreinfrastructure/best-practices-badge) est un moyen pour les projets de logiciels libres et open source (FLOSS) de montrer qu'ils suivent les meilleures pratiques. Les projets peuvent volontairement auto-certifier la manière dont ils suivent chaque meilleure pratique. Les utilisateurs du badge peuvent rapidement déterminer quels sont les projets FLOSS qui suivent les meilleures pratiques et qui sont donc plus susceptibles de produire des logiciels sécurisés de meilleure qualité.

apps/site/pages/fr/download/current.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ Apprenez à <LinkWithArrow href="https://github.com/nodejs/node#verifying-binari
2525
Vous cherchez les sources de Node.js ? Téléchargez une archive signée <Release.DownloadLink kind="source">Node.js source</Release.DownloadLink>.
2626

2727
Consultez nos binaires <LinkWithArrow href="https://nodejs.org/download/nightly/">chaque nuit</LinkWithArrow>, toutes les <LinkWithArrow href="https://nodejs.org/download/release/">versions précédentes</LinkWithArrow> ou les binaires <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">non officiels</LinkWithArrow> pour d'autres plateformes.
28+
2829
</section>

apps/site/pages/fr/download/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ Apprenez à <LinkWithArrow href="https://github.com/nodejs/node#verifying-binari
2525
Vous cherchez les sources de Node.js ? Téléchargez une archive signée <Release.DownloadLink kind="source">Node.js source</Release.DownloadLink>.
2626

2727
Consultez nos binaires <LinkWithArrow href="https://nodejs.org/download/nightly/">chaque nuit</LinkWithArrow>, toutes les <LinkWithArrow href="https://nodejs.org/download/release/">versions précédentes</LinkWithArrow> ou les binaires <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">non officiels</LinkWithArrow> pour d'autres plateformes.
28+
2829
</section>

apps/site/pages/fr/index.mdx

Lines changed: 88 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ layout: home
99
<div>
1010
<h1 className="special">Exécuter du JavaScript partout</h1>
1111

12-
Node.js® est un environnement d'exécution JavaScript gratuit, open-source et multiplateforme qui permet aux développeurs de créer des serveurs, des applications web, des outils en ligne de commande et des scripts.
12+
Node.js® est un environnement d'exécution JavaScript gratuit, open-source et multiplateforme qui permet aux développeurs de créer des serveurs, des applications web, des outils en ligne de commande et des scripts.
13+
1314
</div>
1415

1516
<div>
@@ -44,87 +45,93 @@ layout: home
4445
// server.mjs
4546
import { createServer } from 'node:http';
4647

47-
const server = createServer((req, res) => {
48-
res.writeHead(200, { 'Content-Type': 'text/plain' });
49-
res.end('Hello World!\n');
50-
});
51-
52-
// starts a simple http server locally on port 3000
53-
server.listen(3000, '127.0.0.1', () => {
54-
console.log('Listening on 127.0.0.1:3000');
55-
});
56-
57-
// run with `node server.mjs`
58-
```
59-
60-
```js displayName="Write Tests"
61-
// tests.mjs
62-
import assert from 'node:assert';
63-
import test from 'node:test';
64-
65-
test('that 1 is equal 1', () => {
66-
assert.strictEqual(1, 1);
67-
});
68-
69-
test('that throws as 1 is not equal 2', () => {
70-
// throws an exception because 1 != 2
71-
assert.strictEqual(1, 2);
72-
});
73-
74-
// run with `node tests.mjs`
75-
```
76-
77-
```js displayName="Read and Hash a File"
78-
// crypto.mjs
79-
import { createHash } from 'node:crypto';
80-
import { readFile } from 'node:fs/promises';
81-
82-
const hasher = createHash('sha1');
83-
84-
hasher.setEncoding('hex');
85-
// ensure you have a `package.json` file for this test!
86-
hasher.write(await readFile('package.json'));
87-
hasher.end();
88-
89-
const fileHash = hasher.read();
90-
91-
// run with `node crypto.mjs`
92-
```
93-
94-
```js displayName="Streams Pipeline"
95-
// streams.mjs
96-
import { pipeline } from 'node:stream/promises';
97-
import { createReadStream, createWriteStream } from 'node:fs';
98-
import { createGzip } from 'node:zlib';
99-
100-
// ensure you have a `package.json` file for this test!
101-
await pipeline
102-
(
103-
createReadStream('package.json'),
104-
createGzip(),
105-
createWriteStream('package.json.gz')
106-
);
107-
108-
// run with `node streams.mjs`
109-
```
110-
111-
```js displayName="Work with Threads"
112-
// threads.mjs
113-
import { Worker, isMainThread,
114-
workerData, parentPort } from 'node:worker_threads';
115-
116-
if (isMainThread) {
117-
const data = 'some data';
118-
const worker = new Worker(import.meta.filename, { workerData: data });
119-
worker.on('message', msg => console.log('Reply from Thread:', msg));
120-
} else {
121-
const source = workerData;
122-
parentPort.postMessage(btoa(source.toUpperCase()));
123-
}
124-
125-
// run with `node threads.mjs`
126-
```
48+
const server = createServer((req, res) => {
49+
res.writeHead(200, { 'Content-Type': 'text/plain' });
50+
res.end('Hello World!\n');
51+
});
52+
53+
// starts a simple http server locally on port 3000
54+
server.listen(3000, '127.0.0.1', () => {
55+
console.log('Listening on 127.0.0.1:3000');
56+
});
57+
58+
// run with `node server.mjs`
59+
60+
````
61+
62+
```js displayName="Write Tests"
63+
// tests.mjs
64+
import assert from 'node:assert';
65+
import test from 'node:test';
66+
67+
test('that 1 is equal 1', () => {
68+
assert.strictEqual(1, 1);
69+
});
70+
71+
test('that throws as 1 is not equal 2', () => {
72+
// throws an exception because 1 != 2
73+
assert.strictEqual(1, 2);
74+
});
75+
76+
// run with `node tests.mjs`
77+
````
78+
79+
```js displayName="Read and Hash a File"
80+
// crypto.mjs
81+
import { createHash } from 'node:crypto';
82+
import { readFile } from 'node:fs/promises';
83+
84+
const hasher = createHash('sha1');
85+
86+
hasher.setEncoding('hex');
87+
// ensure you have a `package.json` file for this test!
88+
hasher.write(await readFile('package.json'));
89+
hasher.end();
90+
91+
const fileHash = hasher.read();
92+
93+
// run with `node crypto.mjs`
94+
```
95+
96+
```js displayName="Streams Pipeline"
97+
// streams.mjs
98+
import { pipeline } from 'node:stream/promises';
99+
import { createReadStream, createWriteStream } from 'node:fs';
100+
import { createGzip } from 'node:zlib';
101+
102+
// ensure you have a `package.json` file for this test!
103+
await pipeline(
104+
createReadStream('package.json'),
105+
createGzip(),
106+
createWriteStream('package.json.gz')
107+
);
108+
109+
// run with `node streams.mjs`
110+
```
111+
112+
```js displayName="Work with Threads"
113+
// threads.mjs
114+
import {
115+
Worker,
116+
isMainThread,
117+
workerData,
118+
parentPort,
119+
} from 'node:worker_threads';
120+
121+
if (isMainThread) {
122+
const data = 'some data';
123+
const worker = new Worker(import.meta.filename, { workerData: data });
124+
worker.on('message', msg => console.log('Reply from Thread:', msg));
125+
} else {
126+
const source = workerData;
127+
parentPort.postMessage(btoa(source.toUpperCase()));
128+
}
129+
130+
// run with `node threads.mjs`
131+
```
132+
127133
</div>
128134
129135
Apprenez-en plus sur ce que Node.js est capable d'offrir avec notre [Matériel d'apprentissage](/learn).
136+
130137
</section>

0 commit comments

Comments
 (0)