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
nodejs-crowdin authored and github-actions[bot] committed Sep 16, 2024
1 parent 0b4fe9b commit 1636589
Show file tree
Hide file tree
Showing 93 changed files with 1,095 additions and 843 deletions.
8 changes: 7 additions & 1 deletion apps/site/pages/fa/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ layout: about

## Node.js® Mascot

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

## لوگو Node.js®‎

Expand Down
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 از رویه‌های بهینه پیروی می‌کنند و در نتیجه احتمال بیشتری دارد که نرم‌افزارهای امن با کیفیت بالاتر تولید کنند.
1 change: 1 addition & 0 deletions apps/site/pages/fa/download/package-manager/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Node.js شامل <Release.NpmLink /> است.
یاد بگیرید که چگونه <Release.VerifyingBinariesLink>امضاهای SHASUMS را تایید کنید</Release.VerifyingBinariesLink>

دیگر <LinkWithArrow href="/download/package-manager/all">پکیج منیجر ها</LinkWithArrow> که توسط جامعه پشتیبانی می‌شوند را ببینید

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fa/download/package-manager/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Node.js شامل <Release.NpmLink /> است.
یاد بگیرید که چگونه <Release.VerifyingBinariesLink>امضاهای SHASUMS را تایید کنید</Release.VerifyingBinariesLink>

دیگر <LinkWithArrow href="/download/package-manager/all">پکیج منیجر ها</LinkWithArrow> که توسط جامعه پشتیبانی می‌شوند را ببینید

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fa/download/prebuilt-installer/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Node.js شامل <Release.NpmLink /> است.
تمام <LinkWithArrow href="https://nodejs.org/dist/">آپشن‌های دانلود Node.js</LinkWithArrow> را ببینید

درباره <LinkWithArrow href="about/previous-releases"> Node.js مطالعه کنید </LinkWithArrow>

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fa/download/prebuilt-installer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Node.js شامل <Release.NpmLink /> است.
تمام <LinkWithArrow href="https://nodejs.org/dist/">آپشن‌های دانلود Node.js</LinkWithArrow> را ببینید

درباره <LinkWithArrow href="about/previous-releases"> Node.js مطالعه کنید </LinkWithArrow>

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fa/download/source-code/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Node.js شامل <Release.NpmLink /> است.
یاد بگیرید که چگونه <Release.VerifyingBinariesLink>امضاهای SHASUMS را تایید کنید</Release.VerifyingBinariesLink>

نحوه <LinkWithArrow href="https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms">ساخت Node.js</LinkWithArrow> از سورس کد را ببینید.

</section>
1 change: 1 addition & 0 deletions apps/site/pages/fa/download/source-code/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Node.js شامل <Release.NpmLink /> است.
یاد بگیرید که چگونه <Release.VerifyingBinariesLink>امضاهای SHASUMS را تایید کنید</Release.VerifyingBinariesLink>

نحوه <LinkWithArrow href="https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms">ساخت Node.js</LinkWithArrow> از سورس کد را ببینید.

</section>
173 changes: 90 additions & 83 deletions apps/site/pages/fa/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ layout: home
<div>
<h1 className="special">اجرا جاوااسکریپت در همه جا</h1>

Node.js یک محیط اجرای جاوااسکریپت متن‌باز، رایگان و چندسکویی است
که به توسعه دهندگان اجازه می‌دهد تا سرورها، وب اپلیکیشن‌ها
ابزارهای خط فرمان و اسکریپت‌ها را ایجاد کنند.
Node.js یک محیط اجرای جاوااسکریپت متن‌باز، رایگان و چندسکویی است
که به توسعه دهندگان اجازه می‌دهد تا سرورها، وب اپلیکیشن‌ها
ابزارهای خط فرمان و اسکریپت‌ها را ایجاد کنند.

</div>

<div>
Expand Down Expand Up @@ -46,87 +47,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>
با [مطالب آموزشی](/learn) ما، بیشتر در مورد اینکه Node.js چه امکاناتی را ارائه می دهد بیاموزید.
</section>
8 changes: 7 additions & 1 deletion apps/site/pages/fr/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Veuillez consulter la [politique en matière de marques](https://trademark-polic

## Mascotte de Node.js®

<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 Down
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 l'article de blog pour <Release.BlogPostLink>cette version</Release.BlogPos
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 l'article de blog pour <Release.BlogPostLink>cette version</Release.BlogPos
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 l'article de blog pour <Release.BlogPostLink>cette version</Release.BlogPos
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 l'article de blog pour <Release.BlogPostLink>cette version</Release.BlogPos
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>
Loading

0 comments on commit 1636589

Please sign in to comment.