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 15, 2024
1 parent ab5d7ea commit 115b345
Show file tree
Hide file tree
Showing 71 changed files with 728 additions and 532 deletions.
12 changes: 11 additions & 1 deletion apps/site/pages/es/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ Por favor revise la [política de la marca comercial](https://trademark-policy.o

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

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

## Logo de Node.js®

Expand All @@ -27,6 +33,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
<td>
<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" />
</td>

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

</tr>

<tr>
Expand All @@ -53,6 +61,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
<td>
<img alt="Logo Apilado Blanco 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éditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
<td>
<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" />
</td>

</tr>
</tbody>
</table>
16 changes: 8 additions & 8 deletions apps/site/pages/es/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/es/about/security-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,15 @@ Si tienes sugerencias sobre cómo podría mejorarse este proceso, por favor, env

## Mejores Prácticas de la OpenSSF

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

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.
1 change: 1 addition & 0 deletions apps/site/pages/es/download/package-manager/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lee el <Release.BlogPostLink>artículo del blog</Release.BlogPostLink> para esta
Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Release.VerifyingBinariesLink>

Comprueba otros <LinkWithArrow href="/download/package-manager/all">gestores de paquetes</LinkWithArrow> soportados por la comunidad

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/package-manager/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lee el <Release.BlogPostLink>artículo del blog</Release.BlogPostLink> para esta
Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Release.VerifyingBinariesLink>

Comprueba otros <LinkWithArrow href="/download/package-manager/all">gestores de paquetes</LinkWithArrow> soportados por la comunidad

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/prebuilt-binaries/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lee el <Release.BlogPostLink>artículo del blog</Release.BlogPostLink> para esta
Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Release.VerifyingBinariesLink>

Comprueba los binarios pre construidos de <LinkWithArrow href="https://nodejs.org/download/nightly/">Nightly</LinkWithArrow> o las <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">Construcciones no oficiales</LinkWithArrow> para otras plataformas

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/prebuilt-binaries/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lee el <Release.BlogPostLink>artículo del blog</Release.BlogPostLink> para esta
Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Release.VerifyingBinariesLink>.

Échale un vistazo a los binarios precompilados <LinkWithArrow href="https://nodejs.org/download/nightly/">Nightly</LinkWithArrow>, todos los binarios precompilados de los <LinkWithArrow href="https://nodejs.org/download/release/">Lanzamiento</LinkWithArrow>, o las <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">versiones no oficiales</LinkWithArrow> para otras plataformas.

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/prebuilt-installer/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Relea
Vea todas las <LinkWithArrow href="https://nodejs.org/dist/">opciones de descarga</LinkWithArrow> de Node.js disponibles

Aprende sobre <LinkWithArrow href="about/previous-releases">Versiones de Node.js</LinkWithArrow>

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/prebuilt-installer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Relea
Vea todas las <LinkWithArrow href="https://nodejs.org/dist/">opciones de descarga</LinkWithArrow> de Node.js disponibles

Aprende sobre <LinkWithArrow href="/about/previous-releases">Versiones de Node.js</LinkWithArrow>

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/source-code/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lee el <Release.BlogPostLink>artículo del blog</Release.BlogPostLink> para esta
Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Release.VerifyingBinariesLink>

Consulta cómo <LinkWithArrow href="https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms">construir Node.js</LinkWithArrow> desde el código fuente.

</section>
1 change: 1 addition & 0 deletions apps/site/pages/es/download/source-code/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Lee el <Release.BlogPostLink>artículo del blog</Release.BlogPostLink> para esta
Aprende a cómo <Release.VerifyingBinariesLink>verificar la firma SHASUMS</Release.VerifyingBinariesLink>

Verifica cómo <LinkWithArrow href="https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms">construir Node.js</LinkWithArrow> desde el código fuente.

</section>
173 changes: 90 additions & 83 deletions apps/site/pages/es/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ layout: home
<div>
<h1 className="special">Ejecuta JavaScript en cualquier parte</h1>

Node.js® es un entorno de ejecución de JavaScript multiplataforma,
de código abierto y gratuito que permite a los desarrolladores crear servidores,
aplicaciones web, herramientas de línea de comando y scripts.
Node.js® es un entorno de ejecución de JavaScript multiplataforma,
de código abierto y gratuito que permite a los desarrolladores crear servidores,
aplicaciones web, herramientas de línea de comando y scripts.

</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>
Aprenda más sobre lo que Node.js puede ofrecer con nuestros [Materiales de aprendizaje](/learn).
</section>
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 از رویه‌های بهینه پیروی می‌کنند و در نتیجه احتمال بیشتری دارد که نرم‌افزارهای امن با کیفیت بالاتر تولید کنند.
Loading

0 comments on commit 115b345

Please sign in to comment.