Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions apps/site/pages/es/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ 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 @@ -33,7 +27,6 @@ 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 @@ -50,7 +43,6 @@ 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 @@ -61,7 +53,6 @@ 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 @@ -78,7 +69,6 @@ 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>
18 changes: 9 additions & 9 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 All @@ -60,4 +60,4 @@ El hecho de que Node.js esté diseñado sin hilos no significa que no puedas ace
[`child_process.fork()`]: https://nodejs.org/api/child_process.html
[`cluster`]: https://nodejs.org/api/cluster.html
[máquina de eventos]: https://github.com/eventmachine/eventmachine
[twisted]: https://twisted.org/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i need to look at the source of this in crowdin, as this breaks the link!
why we organize links like this i feel is part of the problem, when they are inline it would be fine

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not disable that ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disable what?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disabling footnotes and use inline link

Copy link
Contributor

@bmuenzenmeyer bmuenzenmeyer Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think it's something to disable, it's a content authoring problem we would need to refactor at the source

[torcido]: https://twisted.org/
11 changes: 2 additions & 9 deletions apps/site/pages/es/about/security-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ 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: 0 additions & 1 deletion apps/site/pages/es/download/package-manager/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ 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: 0 additions & 1 deletion apps/site/pages/es/download/package-manager/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ 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>
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ 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: 0 additions & 1 deletion apps/site/pages/es/download/prebuilt-binaries/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ 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>
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ 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: 0 additions & 1 deletion apps/site/pages/es/download/prebuilt-installer/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ 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: 0 additions & 1 deletion apps/site/pages/es/download/source-code/current.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ 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: 0 additions & 1 deletion apps/site/pages/es/download/source-code/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ 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: 83 additions & 90 deletions apps/site/pages/es/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ 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 @@ -47,93 +46,87 @@ aplicaciones web, herramientas de línea de comando y scripts.
// 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: 2 additions & 9 deletions apps/site/pages/fa/about/security-reporting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,8 @@ 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