You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: de/guide/writing-middleware.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ redirect_from: " "
11
11
12
12
<h2>Überblick</h2>
13
13
14
-
_Middlewarefunktionen_ sind Funktionen, die Zugriff auf das [Anforderungsobjekt](/{{ page.lang }}/5x/api.html#req) (`req`), das [Antwortobjekt](/{{ page.lang }}/5x/api.html#res) (`res`) und die nächste Middlewarefunktion im Anforderung/Antwort-Zyklus der Anwendung haben. Die nächste Middlewarefunktion wird im Allgemeinen durch die Variable `next` bezeichnet.
14
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the `next` function in the application's request-response cycle. Die nächste Middlewarefunktion wird im Allgemeinen durch die Variable `next` bezeichnet.
15
15
16
16
Über Middlewarefunktionen lassen sich die folgenden Tasks ausführen:
17
17
@@ -38,9 +38,9 @@ Das folgende Beispiel zeigt die Elemente eines Middlewarefunktionsaufrufs:
38
38
39
39
<divclass="callout"id="callout4">Callback-Argument zur Middlewarefunktion, die nach der geltenden Konvention als "next" bezeichnet wird.</div>
40
40
41
-
<divclass="callout"id="callout5">HTTP-<ahref="../5x/api.html#res">Antwort</a>argument zur Middlewarefunktion, die nach der geltenden Konvention als "res" bezeichnet wird.</div>
41
+
<divclass="callout"id="callout5">HTTP<ahref="/{{ page.lang }}/5x/api.html#res">response</a>argument to the middleware function, called "res" by convention.</div>
42
42
43
-
<divclass="callout"id="callout6">HTTP-<ahref="../5x/api.html#req">Anforderungs</a>argument zur Middlewarefunktion, die nach der geltenden Konvention als "req" bezeichnet wird.</div>
43
+
<divclass="callout"id="callout6">HTTP<ahref="/{{ page.lang }}/5x/api.html#req">request</a>argument to the middleware function, called "req" by convention.</div>
### The Official Documentation of the Express JS Framework
363
+
### The Official Documentation of the Express.js Framework
364
364
365
365
This is the contribution documentation for the [expressjs.com](https://github.com/expressjs/expressjs.com) website.
366
366
@@ -376,7 +376,7 @@ This is the contribution documentation for the [expressjs.com](https://github.co
376
376
377
377
2.**Content Issues**: Fix anything related to site content or typos.
378
378
- Spelling errors
379
-
- Incorrect/outdated Express JS documentation
379
+
- Incorrect/outdated Express.js documentation
380
380
- Missing content
381
381
382
382
3.**Translation Issues**: Fix any translation errors or contribute new content.
@@ -394,7 +394,7 @@ If you've found a bug or a typo, or if you have an idea for an enhancement, you
394
394
395
395
- Submit a [new issue](https://github.com/expressjs/expressjs.com/issues/new/choose) on our repo. Do this for larger proposals, or if you'd like to discuss or get feedback first.
396
396
397
-
- Make a [Github pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work and it's ready to go, feel free to send it our way.
397
+
- Make a [GitHub pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work, and it's ready to go, feel free to send it our way.
398
398
399
399
## Getting Started
400
400
@@ -409,7 +409,7 @@ So you've found a problem that you want to fix, or have a site enhancement you w
409
409
- For submissions proposing minor improvements or corrections, this is not needed. You can skip this step.
410
410
- When opening an issue please give it a title and fill in the description section. The more details you provide, the more feedback we can give.
411
411
412
-
2. After receiving your issue the Express JS documentation team will respond with feedback. We read every submission and always try to respond quickly with feedback.
412
+
2. After receiving your issue the Express.js documentation team will respond with feedback. We read every submission and always try to respond quickly with feedback.
413
413
- For submissions proposing significant change, we encourage you to follow the review process before starting work.
414
414
415
415
#### Step 2: Get the Application Code Base
@@ -448,7 +448,7 @@ But just in case you need a little extra explanation, this section below outline
448
448
449
449
- All css and js files are kept in `css` and `js` folders on the project root.
450
450
451
-
The Express JS website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [Github Pages](https://pages.github.com/).
451
+
The Express.js website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [GitHub Pages](https://pages.github.com/).
452
452
453
453
#### Step 3: Running the Application
454
454
@@ -457,10 +457,10 @@ Now you'll need a way to see your changes, which means you'll need a running ver
457
457
1.**Run Locally**: This gets the local version of the application up and running on your machine. Follow our [Local Setup Guide](https://github.com/expressjs/expressjs.com?tab=readme-ov-file#build-the-website-locally) to use this option.
458
458
- This is the recommended option for moderate to complex work.
459
459
460
-
2.**Run using Deploy Preview**: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/site-deploys/deploy-previews/).
460
+
2.**Run using Deploy Preview**: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/deploy/deploy-types/deploy-previews/).
461
461
1. To use this you'll need to get your changes online - after you've made your first commit on your feature branch, make a _draft_ pull request.
462
462
2. After the build steps are complete, you'll have access to a **Deploy Preview** tab that will run your changes on the web, rebuilding after each commit is pushed.
463
-
3. After you are completely done your work and it's ready for review, remove the draft status on your pull request and submit your work.
463
+
3. After you are completely done your work, and it's ready for review, remove the draft status on your pull request and submit your work.
464
464
465
465
## Contributing translations
466
466
@@ -482,6 +482,6 @@ The documentation is translated into these languages:
482
482
### How to translate
483
483
484
484
1. Request to join the Express.js Website project on [Crowdin](https://express.crowdin.com/website)
485
-
2.[Select the language you want to translate](https://support.crowdin.com/joining-translation-project/#starting-translation)
485
+
2.[Select the language you want to translate](https://support.crowdin.com/for-translators/#starting-translation)
Copy file name to clipboardExpand all lines: es/guide/writing-middleware.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ redirect_from: " "
11
11
12
12
<h2>Overview</h2>
13
13
14
-
Las funciones de _middleware_ son funciones que tienen acceso al [objeto de solicitud](/{{ page.lang }}/5x/api.html#req) (`req`), al [objeto de respuesta](/{{ page.lang }}/5x/api.html#res) (`res`) y a la siguiente función de middleware en el ciclo de solicitud/respuestas de la aplicación. La siguiente función de middleware se denota normalmente con una variable denominada `next`.
14
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the `next` function in the application's request-response cycle. La siguiente función de middleware se denota normalmente con una variable denominada `next`.
15
15
16
16
Las funciones de middleware pueden realizar las siguientes tareas:
17
17
@@ -38,9 +38,9 @@ El siguiente ejemplo muestra los elementos de una llamada a función de middlewa
38
38
39
39
<divclass="callout"id="callout4">Argumento de devolución de llamada a la función de middleware, denominado "next" por convención.</div>
40
40
41
-
<divclass="callout"id="callout5">Argumento de <ahref="../5x/api.html#res">respuesta</a> HTTP a la función de middleware, denominado "res" por convención.</div>
41
+
<divclass="callout"id="callout5">HTTP <ahref="/{{ page.lang }}/5x/api.html#res">response</a> argument to the middleware function, called "res" by convention.</div>
42
42
43
-
<divclass="callout"id="callout6">Argumento de <ahref="../5x/api.html#req">solicitud</a> HTTP a la función de middleware, denominado "req" por convención.</div>
43
+
<divclass="callout"id="callout6">HTTP <ahref="/{{ page.lang }}/5x/api.html#req">request</a> argument to the middleware function, called "req" by convention.</div>
### The Official Documentation of the Express JS Framework
363
+
### The Official Documentation of the Express.js Framework
364
364
365
365
This is the contribution documentation for the [expressjs.com](https://github.com/expressjs/expressjs.com) website.
366
366
@@ -376,7 +376,7 @@ This is the contribution documentation for the [expressjs.com](https://github.co
376
376
377
377
2.**Content Issues**: Fix anything related to site content or typos.
378
378
- Spelling errors
379
-
- Incorrect/outdated Express JS documentation
379
+
- Incorrect/outdated Express.js documentation
380
380
- Missing content
381
381
382
382
3.**Translation Issues**: Fix any translation errors or contribute new content.
@@ -394,7 +394,7 @@ If you've found a bug or a typo, or if you have an idea for an enhancement, you
394
394
395
395
- Submit a [new issue](https://github.com/expressjs/expressjs.com/issues/new/choose) on our repo. Do this for larger proposals, or if you'd like to discuss or get feedback first.
396
396
397
-
- Make a [Github pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work and it's ready to go, feel free to send it our way.
397
+
- Make a [GitHub pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work, and it's ready to go, feel free to send it our way.
398
398
399
399
## Getting Started
400
400
@@ -409,7 +409,7 @@ So you've found a problem that you want to fix, or have a site enhancement you w
409
409
- For submissions proposing minor improvements or corrections, this is not needed. You can skip this step.
410
410
- When opening an issue please give it a title and fill in the description section. The more details you provide, the more feedback we can give.
411
411
412
-
2. After receiving your issue the Express JS documentation team will respond with feedback. We read every submission and always try to respond quickly with feedback.
412
+
2. After receiving your issue the Express.js documentation team will respond with feedback. We read every submission and always try to respond quickly with feedback.
413
413
- For submissions proposing significant change, we encourage you to follow the review process before starting work.
414
414
415
415
#### Step 2: Get the Application Code Base
@@ -448,7 +448,7 @@ But just in case you need a little extra explanation, this section below outline
448
448
449
449
- All css and js files are kept in `css` and `js` folders on the project root.
450
450
451
-
The Express JS website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [Github Pages](https://pages.github.com/).
451
+
The Express.js website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [GitHub Pages](https://pages.github.com/).
452
452
453
453
#### Step 3: Running the Application
454
454
@@ -457,10 +457,10 @@ Now you'll need a way to see your changes, which means you'll need a running ver
457
457
1.**Run Locally**: This gets the local version of the application up and running on your machine. Follow our [Local Setup Guide](https://github.com/expressjs/expressjs.com?tab=readme-ov-file#build-the-website-locally) to use this option.
458
458
- This is the recommended option for moderate to complex work.
459
459
460
-
2.**Run using Deploy Preview**: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/site-deploys/deploy-previews/).
460
+
2.**Run using Deploy Preview**: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/deploy/deploy-types/deploy-previews/).
461
461
1. To use this you'll need to get your changes online - after you've made your first commit on your feature branch, make a _draft_ pull request.
462
462
2. After the build steps are complete, you'll have access to a **Deploy Preview** tab that will run your changes on the web, rebuilding after each commit is pushed.
463
-
3. After you are completely done your work and it's ready for review, remove the draft status on your pull request and submit your work.
463
+
3. After you are completely done your work, and it's ready for review, remove the draft status on your pull request and submit your work.
464
464
465
465
## Contributing translations
466
466
@@ -482,6 +482,6 @@ The documentation is translated into these languages:
482
482
### How to translate
483
483
484
484
1. Request to join the Express.js Website project on [Crowdin](https://express.crowdin.com/website)
485
-
2.[Select the language you want to translate](https://support.crowdin.com/joining-translation-project/#starting-translation)
485
+
2.[Select the language you want to translate](https://support.crowdin.com/for-translators/#starting-translation)
Copy file name to clipboardExpand all lines: fr/guide/writing-middleware.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ redirect_from: " "
11
11
12
12
<h2>Présentation</h2>
13
13
14
-
Les fonctions de _middleware_ sont des fonctions qui peuvent accéder à l'[objet Request](/{{ page.lang }}/5x/api.html#req) (`req`), l'[objet response](/{{ page.lang }}/5x/api.html#res) (`res`) et à la fonction middleware suivant dans le cycle demande-réponse de l'application. La fonction middleware suivant est couramment désignée par une variable nommée `next`.
14
+
_Middleware_ functions are functions that have access to the [request object](/{{ page.lang }}/5x/api.html#req) (`req`), the [response object](/{{ page.lang }}/5x/api.html#res) (`res`), and the `next` function in the application's request-response cycle. La fonction middleware suivant est couramment désignée par une variable nommée `next`.
15
15
16
16
Les fonctions middleware effectuent les tâches suivantes :
17
17
@@ -38,9 +38,9 @@ L'exemple suivant montre les éléments d'un appel de fonction middleware:
38
38
39
39
<divclass="callout"id="callout4">Argument de rappel à la fonction middleware, appelée "next" par convention.</div>
40
40
41
-
<divclass="callout"id="callout5">Argument de <ahref="../5x/api.html#res">réponse</a> HTTP à la fonction middleware, appelé "res" par convention.</div>
41
+
<divclass="callout"id="callout5">HTTP <ahref="/{{ page.lang }}/5x/api.html#res">response</a> argument to the middleware function, called "res" by convention.</div>
42
42
43
-
<divclass="callout"id="callout6">Argument de <ahref="../5x/api.html#req">demande</a> HTTP à la fonction middleware, appelé "req" par convention.</div>
43
+
<divclass="callout"id="callout6">HTTP <ahref="/{{ page.lang }}/5x/api.html#req">request</a> argument to the middleware function, called "req" by convention.</div>
### The Official Documentation of the Express JS Framework
363
+
### The Official Documentation of the Express.js Framework
364
364
365
365
This is the contribution documentation for the [expressjs.com](https://github.com/expressjs/expressjs.com) website.
366
366
@@ -376,7 +376,7 @@ This is the contribution documentation for the [expressjs.com](https://github.co
376
376
377
377
2.**Content Issues**: Fix anything related to site content or typos.
378
378
- Spelling errors
379
-
- Incorrect/outdated Express JS documentation
379
+
- Incorrect/outdated Express.js documentation
380
380
- Missing content
381
381
382
382
3.**Translation Issues**: Fix any translation errors or contribute new content.
@@ -394,7 +394,7 @@ If you've found a bug or a typo, or if you have an idea for an enhancement, you
394
394
395
395
- Submit a [new issue](https://github.com/expressjs/expressjs.com/issues/new/choose) on our repo. Do this for larger proposals, or if you'd like to discuss or get feedback first.
396
396
397
-
- Make a [Github pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work and it's ready to go, feel free to send it our way.
397
+
- Make a [GitHub pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). If you have already done work, and it's ready to go, feel free to send it our way.
398
398
399
399
## Getting Started
400
400
@@ -409,7 +409,7 @@ So you've found a problem that you want to fix, or have a site enhancement you w
409
409
- For submissions proposing minor improvements or corrections, this is not needed. You can skip this step.
410
410
- When opening an issue please give it a title and fill in the description section. The more details you provide, the more feedback we can give.
411
411
412
-
2. After receiving your issue the Express JS documentation team will respond with feedback. We read every submission and always try to respond quickly with feedback.
412
+
2. After receiving your issue the Express.js documentation team will respond with feedback. We read every submission and always try to respond quickly with feedback.
413
413
- For submissions proposing significant change, we encourage you to follow the review process before starting work.
414
414
415
415
#### Step 2: Get the Application Code Base
@@ -448,7 +448,7 @@ But just in case you need a little extra explanation, this section below outline
448
448
449
449
- All css and js files are kept in `css` and `js` folders on the project root.
450
450
451
-
The Express JS website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [Github Pages](https://pages.github.com/).
451
+
The Express.js website is built using [Jekyll](https://jekyllrb.com/) and is hosted on [GitHub Pages](https://pages.github.com/).
452
452
453
453
#### Step 3: Running the Application
454
454
@@ -457,10 +457,10 @@ Now you'll need a way to see your changes, which means you'll need a running ver
457
457
1.**Run Locally**: This gets the local version of the application up and running on your machine. Follow our [Local Setup Guide](https://github.com/expressjs/expressjs.com?tab=readme-ov-file#build-the-website-locally) to use this option.
458
458
- This is the recommended option for moderate to complex work.
459
459
460
-
2.**Run using Deploy Preview**: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/site-deploys/deploy-previews/).
460
+
2.**Run using Deploy Preview**: Use this option if you don't want to bother with a local installation. Part of our continuous integration pipeline includes [Netlify Deploy Preview](https://docs.netlify.com/deploy/deploy-types/deploy-previews/).
461
461
1. To use this you'll need to get your changes online - after you've made your first commit on your feature branch, make a _draft_ pull request.
462
462
2. After the build steps are complete, you'll have access to a **Deploy Preview** tab that will run your changes on the web, rebuilding after each commit is pushed.
463
-
3. After you are completely done your work and it's ready for review, remove the draft status on your pull request and submit your work.
463
+
3. After you are completely done your work, and it's ready for review, remove the draft status on your pull request and submit your work.
464
464
465
465
## Contributing translations
466
466
@@ -482,6 +482,6 @@ The documentation is translated into these languages:
482
482
### How to translate
483
483
484
484
1. Request to join the Express.js Website project on [Crowdin](https://express.crowdin.com/website)
485
-
2.[Select the language you want to translate](https://support.crowdin.com/joining-translation-project/#starting-translation)
485
+
2.[Select the language you want to translate](https://support.crowdin.com/for-translators/#starting-translation)
0 commit comments