i18n: new crowdin translations (#2131)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

Co-authored-by: bjohansebas <103585995+bjohansebas@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-12-13 22:42:24 -05:00
committed by GitHub
parent c835e5d248
commit f4c742baea
27 changed files with 244 additions and 136 deletions

View File

@@ -20,18 +20,10 @@ Express 4.0 requires Node.js 0.10 or higher.
{% include admonitions/note.html content=node-version %}
<a id='express' class='h2'></a>
{% include api/en/4x/express.md %}
<a id='app' class='h2'></a>
{% include api/en/4x/app.md %}
<a id='req' class='h2'></a>
{% include api/en/4x/req.md %}
<a id='res' class='h2'></a>
{% include api/en/4x/res.md %}
<a id='router' class='h2'></a>
{% include api/en/4x/express.md %} <a id='app' class='h2'></a>
{% include api/en/4x/app.md %} <a id='req' class='h2'></a>
{% include api/en/4x/req.md %} <a id='res' class='h2'></a>
{% include api/en/4x/res.md %} <a id='router' class='h2'></a>
{% include api/en/4x/router.md %}
</div>

View File

@@ -19,10 +19,11 @@ Express 5.0 requires Node.js 18 or higher.
{% include admonitions/note.html content=node-version %}
{% include api/en/5x/express.md %}
{% include api/en/5x/app.md %}
{% include api/en/5x/req.md %}
{% include api/en/5x/res.md %}
<a id='express' class='h2'></a>
{% include api/en/5x/express.md %} <a id='app' class='h2'></a>
{% include api/en/5x/app.md %} <a id='req' class='h2'></a>
{% include api/en/5x/req.md %} <a id='res' class='h2'></a>
{% include api/en/5x/res.md %} <a id='router' class='h2'></a>
{% include api/en/5x/router.md %}
</div>

View File

@@ -247,6 +247,24 @@ In Express 4.x, <a href="https://github.com/expressjs/express/issues/2495">the `
リクエストを処理するために、[ミドルウェア](/{{ page.lang }}/guide/using-middleware.html)のように動作する複数のコールバック関数を指定できます。唯一の例外は、これらのコールバックが `next('route')` を呼び出して、残りのルート・コールバックをバイパスすることです。このメカニズムを使用して、ルートに事前条件を適用し、現在のルートで続行する理由がない場合に後続のルートに制御を渡すことができます。 The only exception is that these callbacks might invoke `next('route')` to bypass the remaining route callbacks. You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there's no reason to proceed with the current route.
```js
app.get('/user/:id', (req, res, next) => {
if (req.params.id === '0') {
return next('route')
}
res.send(`User ${req.params.id}`)
})
app.get('/user/:id', (req, res) => {
res.send('Special handler for user ID 0')
})
```
In this example:
- `GET /user/5` → handled by first route → sends "User 5"
- `GET /user/0` → first route calls `next('route')`, skipping to the next matching `/user/:id` route
次の例に示すように、ルート・ハンドラーの形式は、関数、関数の配列、または両方の組み合わせにすることができます。
単一のコールバック関数で 1 つのルートを処理できます。次に例を示します。 For example: