Skip to content

Commit

Permalink
chore: automated format of translated files
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
bmuenzenmeyer authored and github-actions[bot] committed Dec 13, 2024
1 parent b1fd295 commit 991d7f4
Show file tree
Hide file tree
Showing 59 changed files with 602 additions and 438 deletions.
16 changes: 8 additions & 8 deletions apps/site/pages/fa/about/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const hostname = '127.0.0.1';
const port = 3000;

const server = createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
});

server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
console.log(`Server running at http://${hostname}:${port}/`);
});
```

Expand All @@ -31,13 +31,13 @@ const hostname = '127.0.0.1';
const port = 3000;

const server = createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
});

server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
console.log(`Server running at http://${hostname}:${port}/`);
});
```

Expand Down
11 changes: 9 additions & 2 deletions apps/site/pages/fa/about/security-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ layout: about

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

<a href="https://bestpractices.coreinfrastructure.org/projects/29" style={{ display: 'inline-flex' }}>
<img alt="نشان OpenSSF" src="https://bestpractices.coreinfrastructure.org/projects/29/badge" style={{ display: 'inline' }} />
<a
href="https://bestpractices.coreinfrastructure.org/projects/29"
style={{ display: 'inline-flex' }}
>
<img
alt="نشان OpenSSF"
src="https://bestpractices.coreinfrastructure.org/projects/29/badge"
style={{ display: 'inline' }}
/>
</a>

[نشان بهترین شیوه ها](https://github.com/coreinfrastructure/best-practices-badge) بنیاد امنیت متن باز (OpenSSF) راهی است برای پروژه‌های نرم‌افزار آزاد/رایگان و متن باز (FLOSS) تا نشان دهند که از رویه‌های بهینه پیروی می‌کنند. پروژه‌ها می‌توانند به صورت داوطلبانه خود تأیید کنند که چگونه از هر رویه بهینه پیروی می‌کنند. مصرف‌کنندگان این نشان می‌توانند به سرعت ارزیابی کنند که کدام پروژه‌های FLOSS از رویه‌های بهینه پیروی می‌کنند و در نتیجه احتمال بیشتری دارد که نرم‌افزارهای امن با کیفیت بالاتر تولید کنند.
12 changes: 11 additions & 1 deletion apps/site/pages/fr/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ Veuillez consulter la [politique en matière de marques](https://trademark-polic

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

<img alt="Mascotte de Node.js" src="/static/images/node-mascot.svg" className="w-[100px]" width="100" height="114" />
<img
alt="Mascotte de Node.js"
src="/static/images/node-mascot.svg"
className="w-[100px]"
width="100"
height="114"
/>

## Logo Node.js®

Expand All @@ -27,6 +33,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
<td>
<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" />
</td>

</tr>
</tbody>
</table>
Expand All @@ -43,6 +50,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
<td>
<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" />
</td>

</tr>

<tr>
Expand All @@ -53,6 +61,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
<td>
<img alt="Logo empilé blanc de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded bg-neutral-950 p-2 dark:bg-transparent" />
</td>

</tr>
</tbody>
</table>
Expand All @@ -69,6 +78,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
<td>
<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" />
</td>

</tr>
</tbody>
</table>
16 changes: 8 additions & 8 deletions apps/site/pages/fr/about/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ const hostname = '127.0.0.1';
const port = 3000;

const server = createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
});

server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
console.log(`Server running at http://${hostname}:${port}/`);
});
```

Expand All @@ -34,13 +34,13 @@ const hostname = '127.0.0.1';
const port = 3000;

const server = createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World');
});

server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
console.log(`Server running at http://${hostname}:${port}/`);
});
```

Expand Down
11 changes: 9 additions & 2 deletions apps/site/pages/fr/about/security-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,15 @@ Si vous avez des suggestions sur la façon dont ce processus pourrait être amé

## OpenSSF Best Practices

<a href="https://bestpractices.coreinfrastructure.org/projects/29" style={{ display: 'inline-flex' }}>
<img alt="Badge OpenSSF" src="https://bestpractices.coreinfrastructure.org/projects/29/badge" style={{ display: 'inline' }} />
<a
href="https://bestpractices.coreinfrastructure.org/projects/29"
style={{ display: 'inline-flex' }}
>
<img
alt="Badge OpenSSF"
src="https://bestpractices.coreinfrastructure.org/projects/29/badge"
style={{ display: 'inline' }}
/>
</a>

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é.
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/package-manager/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lire le <Release.BlogPostLink>journal des modifications</Release.BlogPostLink> p
Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.VerifyingBinariesLink> signés

Consultez d'autres <LinkWithArrow href="/download/package-manager/all">gestionnaires de paquets</LinkWithArrow> soutenus par la communauté

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/package-manager/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lire le <Release.BlogPostLink>journal des modifications</Release.BlogPostLink> p
Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.VerifyingBinariesLink> signés

Consultez d'autres <LinkWithArrow href="/download/package-manager/all">gestionnaires de paquets</LinkWithArrow> soutenus par la communauté

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/prebuilt-binaries/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lire le <Release.BlogPostLink>journal des modifications</Release.BlogPostLink> p
Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.VerifyingBinariesLink> signés

Consultez les binaires préconstruits <LinkWithArrow href="https://nodejs.org/download/nightly/">Nightly</LinkWithArrow> ou les <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">Unofficial Builds</LinkWithArrow> pour d'autres plateformes.

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/prebuilt-binaries/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lire le <Release.BlogPostLink>journal des modifications</Release.BlogPostLink> p
Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS signés</Release.VerifyingBinariesLink>.

Consultez les binaires préconstruits <LinkWithArrow href="https://nodejs.org/download/nightly/">Nightly</LinkWithArrow>, tous les binaires préconstruits <LinkWithArrow href="https://nodejs.org/download/release/">Release</LinkWithArrow> ou <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">Builds Non Officiels</LinkWithArrow> pour les autres plateformes.

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/prebuilt-installer/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.Verify
Consultez toutes les <LinkWithArrow href="https://nodejs.org/dist/">options de téléchargement</LinkWithArrow> de Node.js.

En savoir plus sur les <LinkWithArrow href="about/previous-releases">Versions Node.js</LinkWithArrow>

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/prebuilt-installer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.Verify
Consultez toutes les <LinkWithArrow href="https://nodejs.org/dist/">options de téléchargement</LinkWithArrow> de Node.js.

En savoir plus sur les <LinkWithArrow href="/about/previous-releases">Versions Node.js</LinkWithArrow>

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/source-code/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lire le <Release.BlogPostLink>journal des modifications</Release.BlogPostLink> p
Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.VerifyingBinariesLink> signés

Découvrez comment <LinkWithArrow href="https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms">compiler Node.js</LinkWithArrow> à partir des sources.

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fr/download/source-code/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lire le <Release.BlogPostLink>journal des modifications</Release.BlogPostLink> p
Apprenez à <Release.VerifyingBinariesLink>vérifier les SHASUMS</Release.VerifyingBinariesLink> signés

Découvrez comment <LinkWithArrow href="https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms">compiler Node.js</LinkWithArrow> à partir des sources.

</section>
169 changes: 88 additions & 81 deletions apps/site/pages/fr/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ layout: home
<div>
<h1 className="special">Exécuter du JavaScript partout</h1>

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.
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.

</div>

<div>
Expand Down Expand Up @@ -44,87 +45,93 @@ layout: home
// server.mjs
import { createServer } from 'node:http';

const server = createServer((req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World!\n');
});

// starts a simple http server locally on port 3000
server.listen(3000, '127.0.0.1', () => {
console.log('Listening on 127.0.0.1:3000');
});

// run with `node server.mjs`
```

```js displayName="Write Tests"
// tests.mjs
import assert from 'node:assert';
import test from 'node:test';

test('that 1 is equal 1', () => {
assert.strictEqual(1, 1);
});

test('that throws as 1 is not equal 2', () => {
// throws an exception because 1 != 2
assert.strictEqual(1, 2);
});

// run with `node tests.mjs`
```

```js displayName="Read and Hash a File"
// crypto.mjs
import { createHash } from 'node:crypto';
import { readFile } from 'node:fs/promises';

const hasher = createHash('sha1');

hasher.setEncoding('hex');
// ensure you have a `package.json` file for this test!
hasher.write(await readFile('package.json'));
hasher.end();

const fileHash = hasher.read();

// run with `node crypto.mjs`
```

```js displayName="Streams Pipeline"
// streams.mjs
import { pipeline } from 'node:stream/promises';
import { createReadStream, createWriteStream } from 'node:fs';
import { createGzip } from 'node:zlib';

// ensure you have a `package.json` file for this test!
await pipeline
(
createReadStream('package.json'),
createGzip(),
createWriteStream('package.json.gz')
);

// run with `node streams.mjs`
```

```js displayName="Work with Threads"
// threads.mjs
import { Worker, isMainThread,
workerData, parentPort } from 'node:worker_threads';

if (isMainThread) {
const data = 'some data';
const worker = new Worker(import.meta.filename, { workerData: data });
worker.on('message', msg => console.log('Reply from Thread:', msg));
} else {
const source = workerData;
parentPort.postMessage(btoa(source.toUpperCase()));
}

// run with `node threads.mjs`
```
const server = createServer((req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World!\n');
});

// starts a simple http server locally on port 3000
server.listen(3000, '127.0.0.1', () => {
console.log('Listening on 127.0.0.1:3000');
});

// run with `node server.mjs`

````

```js displayName="Write Tests"
// tests.mjs
import assert from 'node:assert';
import test from 'node:test';
test('that 1 is equal 1', () => {
assert.strictEqual(1, 1);
});
test('that throws as 1 is not equal 2', () => {
// throws an exception because 1 != 2
assert.strictEqual(1, 2);
});
// run with `node tests.mjs`
````
```js displayName="Read and Hash a File"
// crypto.mjs
import { createHash } from 'node:crypto';
import { readFile } from 'node:fs/promises';

const hasher = createHash('sha1');

hasher.setEncoding('hex');
// ensure you have a `package.json` file for this test!
hasher.write(await readFile('package.json'));
hasher.end();

const fileHash = hasher.read();

// run with `node crypto.mjs`
```

```js displayName="Streams Pipeline"
// streams.mjs
import { pipeline } from 'node:stream/promises';
import { createReadStream, createWriteStream } from 'node:fs';
import { createGzip } from 'node:zlib';

// ensure you have a `package.json` file for this test!
await pipeline(
createReadStream('package.json'),
createGzip(),
createWriteStream('package.json.gz')
);

// run with `node streams.mjs`
```

```js displayName="Work with Threads"
// threads.mjs
import {
Worker,
isMainThread,
workerData,
parentPort,
} from 'node:worker_threads';

if (isMainThread) {
const data = 'some data';
const worker = new Worker(import.meta.filename, { workerData: data });
worker.on('message', msg => console.log('Reply from Thread:', msg));
} else {
const source = workerData;
parentPort.postMessage(btoa(source.toUpperCase()));
}

// run with `node threads.mjs`
```
</div>
Apprenez-en plus sur ce que Node.js est capable d'offrir avec notre [Matériel d'apprentissage](/learn).
</section>
Loading

0 comments on commit 991d7f4

Please sign in to comment.