i18n: new crowdin translations (#2158)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
github-actions[bot]
2026-01-19 14:34:58 -05:00
committed by GitHub
parent f31a7d4057
commit c2106f9470
9 changed files with 397 additions and 154 deletions

View File

@@ -28,16 +28,16 @@ To help you migrate your express server, we have created a set of codemods that
Run the following command for run all the codemods available:
```sh
npx @expressjs/codemod upgrade
npx codemod@latest @expressjs/v5-migration-recipe
```
If you want to run a specific codemod, you can run the following command:
```sh
npx @expressjs/codemod name-of-the-codemod
npx codemod@latest @expressjs/name-of-the-codemod
```
You can find the list of available codemods [here](https://github.com/expressjs/codemod?tab=readme-ov-file#available-codemods).
You can find the list of available codemods [here](https://codemod.link/express).
<h2 id="changes">Changes in Express 5</h2>
@@ -96,16 +96,16 @@ Express 5 ya no da soporte a la función `app.del()`. Si utiliza esta función,
Inicialmente, se utilizaba `del` en lugar de `delete`, porque `delete` es una palabra clave reservada en JavaScript. No obstante, a partir de ECMAScript 6, `delete` y otras palabras clave reservadas pueden utilizarse correctamente como nombres de propiedad.
{% capture codemod-deprecated-signatures %}
{% capture codemod-route-del-to-delete %}
You can replace the deprecated signatures with the following command:
```plain-text
npx @expressjs/codemod v4-deprecated-signatures
npx codemod@latest @expressjs/route-del-to-delete
```
{% endcapture %}
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% include admonitions/note.html content=codemod-route-del-to-delete %}
```js
// v4
@@ -137,7 +137,7 @@ Los siguientes nombres de métodos se han pluralizado. En Express 4, el uso de l
You can replace the deprecated signatures with the following command:
```plain-text
npx @expressjs/codemod pluralized-methods
npx codemod@latest @expressjs/pluralize-method-names
```
{% endcapture %}
@@ -178,7 +178,7 @@ Este método potencialmente confuso y peligroso de recuperar datos de formulario
You can replace the deprecated signatures with the following command:
```plain-text
npx @expressjs/codemod req-param
npx codemod@latest @expressjs/explicit-request-params
```
{% endcapture %}
@@ -209,7 +209,16 @@ app.post('/user', (req, res) => {
Express 5 ya no da soporte a la firma `res.json(obj, status)`. En su lugar, establezca el estado y encadénelo al método `res.json()` de la siguiente manera: `res.status(status).json(obj)`.
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% capture codemod-status-send-order %}
You can replace the deprecated signatures with the following command:
```plain-text
npx codemod@latest @expressjs/status-send-order
```
{% endcapture %}
{% include admonitions/note.html content=codemod-status-send-order %}
```js
// v4
@@ -227,7 +236,7 @@ app.post('/user', (req, res) => {
Express 5 ya no da soporte a la firma `res.jsonp(obj, status)`. En su lugar, establezca el estado y encadénelo al método `res.jsonp()` de la siguiente manera: `res.status(status).jsonp(obj)`.
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% include admonitions/note.html content=codemod-status-send-order %}
```js
// v4
@@ -245,7 +254,16 @@ app.post('/user', (req, res) => {
Express 5 ya no da soporte a la firma `res.send(obj, status)`. En su lugar, establezca el estado y encadénelo al método `res.send()` de la siguiente manera: `res.status(status).send(obj)`.
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% capture codemod-redirect-arg-order %}
You can replace the deprecated signatures with the following command:
```plain-text
npx codemod@latest @expressjs/redirect-arg-order
```
{% endcapture %}
{% include admonitions/note.html content=codemod-redirect-arg-order %}
```js
// v4
@@ -263,16 +281,16 @@ app.get('/user', (req, res) => {
Express 5 no longer supports the magic string `back` in the `res.redirect()` and `res.location()` methods. Instead, use the `req.get('Referrer') || '/'` value to redirect back to the previous page. In Express 4, the `res.redirect('back')` and `res.location('back')` methods were deprecated.
{% capture codemod-magic-redirect %}
{% capture codemod-back-redirect-deprecated %}
You can replace the deprecated signatures with the following command:
```plain-text
npx @expressjs/codemod magic-redirect
npx codemod@latest @expressjs/back-redirect-deprecated
```
{% endcapture %}
{% include admonitions/note.html content=codemod-magic-redirect %}
{% include admonitions/note.html content=codemod-back-redirect-deprecated %}
```js
// v4
@@ -290,7 +308,7 @@ app.get('/user', (req, res) => {
Express 5 no longer supports the signature `res.send(obj, status)`. Instead, set the status and then chain it to the `res.send()` method like this: `res.status(status).send(obj)`.
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% include admonitions/note.html content=codemod-status-send-order %}
```js
// v4
@@ -309,7 +327,7 @@ app.get('/user', (req, res) => {
Express 5 ya no da soporte a la firma <code>res.send(<em>status</em>)</code>, donde _`status`_ es un número. En su lugar, utilice la función `res.sendStatus(statusCode)`, que establece el código de estado de la cabecera de respuesta HTTP y envía la versión de texto del código: "Not Found", "Internal Server Error", etc.
Si necesita enviar un número utilizando la función `res.send()`, escríbalo entre comillas para convertirlo en una serie, para que Express no lo interprete como un intento de utilizar la firma antigua no soportada.
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% include admonitions/note.html content=codemod-status-send-order %}
```js
// v4
@@ -336,7 +354,16 @@ La función `res.sendfile()` se ha sustituido por una versión de la función `r
- Font files (.woff): now "font/woff" instead of "application/font-woff"
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
{% include admonitions/note.html content=codemod-deprecated-signatures %}
{% capture codemod-camelcase-sendfile %}
You can replace the deprecated signatures with the following command:
```plain-text
npx codemod@latest @expressjs/camelcase-sendfile
```
{% endcapture %}
{% include admonitions/note.html content=codemod-camelcase-sendfile %}
```js
// v4