Skip to content

Commit c530d43

Browse files
github-actions[bot]crowdin-botbjohansebas
authored
i18n: new crowdin translations (expressjs#1923)
New Crowdin translations by GitHub Action Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
1 parent 00a676d commit c530d43

36 files changed

Lines changed: 460 additions & 433 deletions

de/guide/migrating-5.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ You can find the list of available codemods [here](https://github.com/expressjs/
8484
<li><a href="#brotli-support">Brotli encoding support</a></li>
8585
</ul>
8686

87-
### Entfernte Methoden und Eigenschaften
87+
## Entfernte Methoden und Eigenschaften
8888

8989
Wenn Sie eine dieser Methoden oder Eigenschaften in Ihrer Anwendung verwenden, stürzt die Anwendung ab. Sie müssen also Ihre Anwendung ändern, wenn Sie auf Version 5 umgestellt haben.
9090

91-
<h4 id="app.del">app.del()</h4>
91+
<h3 id="app.del">app.del()</h3>
9292

9393
Express 5 unterstützt die Funktion `app.del()` nicht mehr. Wenn Sie diese Funktion verwenden, wird ein Fehler ausgelöst. Für die Registrierung von HTTP DELETE-Weiterleitungen verwenden Sie stattdessen die Funktion `app.delete()`.
9494

@@ -117,11 +117,11 @@ app.delete('/user/:id', (req, res) => {
117117
})
118118
```
119119

120-
<h4 id="app.param">app.param(fn)</h4>
120+
<h3 id="app.param">app.param(fn)</h3>
121121

122122
Die Signatur `app.param(fn)` wurde für die Änderung der Verhaltensweise der Funktion `app.param(name, fn)` verwendet. Seit v4.11.0 wurde sie nicht mehr verwendet. In Express 5 wird sie überhaupt nicht mehr unterstützt.
123123

124-
<h4 id="plural">Pluralisierte Methodennamen</h4>
124+
<h3 id="plural">Pluralisierte Methodennamen</h3>
125125

126126
Die folgenden Methodennamen wurden pluralisiert. In Express 4 wurde bei Verwendung der alten Methoden eine Warnung zur Einstellung der Unterstützung ausgegeben. Express 5 unterstützt diese Methoden nicht mehr.
127127

@@ -162,13 +162,13 @@ app.all('/', (req, res) => {
162162
})
163163
```
164164

165-
<h4 id="leading">Führender Doppelpunkt (:) im Namen für app.param(name, fn)</h4>
165+
<h3 id="leading">Führender Doppelpunkt (:) im Namen für app.param(name, fn)</h3>
166166

167167
Ein führendes Doppelpunktzeichen (:) im Namen für die Funktion `app.param(name, fn)` ist ein Überbleibsel aus Express 3. Aus Gründen der Abwärtskompatibilität wurde dieser Name in Express 4 mit einem Hinweis zu veralteten Versionen weiter unterstützt. In Express 5 wird dieser Name stillschwiegend ignoriert und der Namensparameter ohne einen vorangestellten Doppelpunkt verwendet.
168168

169169
Dies dürfte keine Auswirkungen auf Ihren Code haben, wenn Sie die Express 4-Dokumentation zu [app.param](/{{ page.lang }}/4x/api.html#app.param) befolgen, da dort der führende Doppelpunkt nicht erwähnt wird.
170170

171-
<h4 id="req.param">req.param(name)</h4>
171+
<h3 id="req.param">req.param(name)</h3>
172172

173173
Dieses potenziell verwirrende und durchaus riskante Verfahren des Abrufens von Formulardaten wurde entfernt. Sie müssen nun ganz speziell nach dem übergebenen Parameternamen im Objekt `req.params`, `req.body` oder `req.query` suchen.
174174

@@ -203,7 +203,7 @@ app.post('/user', (req, res) => {
203203
})
204204
```
205205

206-
<h4 id="res.json">res.json(obj, status)</h4>
206+
<h3 id="res.json">res.json(obj, status)</h3>
207207

208208
Express 5 unterstützt die Signatur `res.json(obj, status)` nicht mehr. Stattdessen müssen Sie den Status festlegen und diesen dann mit `res.json()`-Methoden wie dieser verketten: `res.status(status).json(obj)`.
209209

@@ -221,7 +221,7 @@ app.post('/user', (req, res) => {
221221
})
222222
```
223223

224-
<h4 id="res.jsonp">res.jsonp(obj, status)</h4>
224+
<h3 id="res.jsonp">res.jsonp(obj, status)</h3>
225225

226226
Express 5 unterstützt die Signatur `res.jsonp(obj, status)` nicht mehr. Stattdessen müssen Sie den Status festlegen und diesen dann mit `res.jsonp()`-Methoden wie dieser verketten: `res.status(status).jsonp(obj)`.
227227

@@ -239,7 +239,7 @@ app.post('/user', (req, res) => {
239239
})
240240
```
241241

242-
<h4 id="res.redirect">res.redirect(url, status)</h4>
242+
<h3 id="res.redirect">res.redirect(url, status)</h3>
243243

244244
Express 5 unterstützt die Signatur `res.send(obj, status)` nicht mehr. Stattdessen müssen Sie den Status festlegen und diesen dann mit `res.send()`-Methoden wie dieser verketten: `res.status(status).send(obj)`.
245245

@@ -257,7 +257,7 @@ app.get('/user', (req, res) => {
257257
})
258258
```
259259

260-
<h4 id="magic-redirect">res.redirect('back') and res.location('back')</h4>
260+
<h3 id="magic-redirect">res.redirect('back') and res.location('back')</h3>
261261

262262
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.
263263

@@ -284,7 +284,7 @@ app.get('/user', (req, res) => {
284284
})
285285
```
286286

287-
<h4 id="res.send.body">res.send(body, status)</h4>
287+
<h3 id="res.send.body">res.send(body, status)</h3>
288288

289289
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)`.
290290

@@ -302,7 +302,7 @@ app.get('/user', (req, res) => {
302302
})
303303
```
304304

305-
<h4 id="res.send.status">res.send(status)</h4>
305+
<h3 id="res.send.status">res.send(status)</h3>
306306

307307
Express 5 unterstützt die Signatur <code>res.send(<em>status</em>)</code>, nicht mehr, wobei _`status`_ für eine Zahl steht. Verwenden Sie stattdessen die Funktion `res.sendStatus(statusCode)`, mit der der Statuscode für den HTTP-Antwort-Header festgelegt und die Textversion des Codes gesendet wird: "Not Found" (Nicht gefunden), "Internal Server Error" (Interner Serverfehler) usw.
308308
Wenn Sie eine Zahl senden und hierfür die Funktion `res.send()` verwenden müssen, müssen Sie die Zahl in Anführungszeichen setzen, um diese in eine Zeichenfolge zu konvertieren. Dadurch interpretiert Express diese Zahl nicht als Versuch, die nicht mehr unterstützte alte Signatur zu verwenden.
@@ -321,7 +321,7 @@ app.get('/user', (req, res) => {
321321
})
322322
```
323323

324-
<h4 id="res.sendfile">res.sendfile()</h4>
324+
<h3 id="res.sendfile">res.sendfile()</h3>
325325

326326
Die Funktion `res.sendfile()` wurde durch eine Version in Camel-Schreibweise von `res.sendFile()` in Express 5 ersetzt.
327327

@@ -339,11 +339,11 @@ app.get('/user', (req, res) => {
339339
})
340340
```
341341

342-
<h4 id="router.param">router.param(fn)</h4>
342+
<h3 id="router.param">router.param(fn)</h3>
343343

344344
The `router.param(fn)` signature was used for modifying the behavior of the `router.param(name, fn)` function. Seit v4.11.0 wurde sie nicht mehr verwendet. In Express 5 wird sie überhaupt nicht mehr unterstützt.
345345

346-
<h4 id="express.static.mime">express.static.mime</h4>
346+
<h3 id="express.static.mime">express.static.mime</h3>
347347

348348
In Express 5, `mime` is no longer an exported property of the `static` field.
349349
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
@@ -357,7 +357,7 @@ const mime = require('mime-types')
357357
mime.lookup('json')
358358
```
359359

360-
<h4 id="express:router-debug-logs">express:router debug logs</h4>
360+
<h3 id="express:router-debug-logs">express:router debug logs</h3>
361361

362362
In Express 5, router handling logic is performed by a dependency. Therefore, the
363363
debug logs for the router are no longer available under the `express:` namespace.
@@ -376,9 +376,9 @@ DEBUG=express:* node index.js
376376
DEBUG=express:*,router,router:* node index.js
377377
```
378378

379-
<h3>Geändert</h3>
379+
## Geändert
380380

381-
<h4 id="path-syntax">Path route matching syntax</h4>
381+
<h3 id="path-syntax">Path route matching syntax</h3>
382382

383383
Path route matching syntax is when a string is supplied as the first parameter to the `app.all()`, `app.use()`, `app.METHOD()`, `router.all()`, `router.METHOD()`, and `router.use()` APIs. The following changes have been made to how the path string is matched to an incoming request:
384384

@@ -442,17 +442,17 @@ app.get(['/discussion/:slug', '/page/:slug'], async (req, res) => {
442442
- Some characters have been reserved to avoid confusion during upgrade (`()[]?+!`), use `\` to escape them.
443443
- Parameter names now support valid JavaScript identifiers, or quoted like `:"this"`.
444444

445-
<h4 id="rejected-promises">Rejected promises handled from middleware and handlers</h4>
445+
<h3 id="rejected-promises">Rejected promises handled from middleware and handlers</h3>
446446

447447
Request middleware and handlers that return rejected promises are now handled by forwarding the rejected value as an `Error` to the error handling middleware. This means that using `async` functions as middleware and handlers are easier than ever. When an error is thrown in an `async` function or a rejected promise is `await`ed inside an async function, those errors will be passed to the error handler as if calling `next(err)`.
448448

449449
Details of how Express handles errors is covered in the [error handling documentation](/en/guide/error-handling.html).
450450

451-
<h4 id="express.urlencoded">express.urlencoded</h4>
451+
<h3 id="express.urlencoded">express.urlencoded</h3>
452452

453453
The `express.urlencoded` method makes the `extended` option `false` by default.
454454

455-
<h4 id="app.listen">app.listen</h4>
455+
<h3 id="app.listen">app.listen</h3>
456456

457457
In Express 5, the `app.listen` method will invoke the user-provided callback function (if provided) when the server receives an error event. In Express 4, such errors would be thrown. This change shifts error-handling responsibility to the callback function in Express 5. If there is an error, it will be passed to the callback as an argument.
458458
Beispiel:
@@ -466,40 +466,40 @@ const server = app.listen(8080, '0.0.0.0', (error) => {
466466
})
467467
```
468468

469-
<h4 id="app.router">app.router</h4>
469+
<h3 id="app.router">app.router</h3>
470470

471471
Das Objekt `app.router`, das in Express 4 entfernt wurde, ist in Express 5 wieder verfügbar. In der neuen Version fungiert dieses Objekt nur als Referenz zum Express-Basisrouter – im Gegensatz zu Express 3, wo die Anwendung dieses Objekt explizit laden musste.
472472

473-
<h4 id="req.body">req.body</h4>
473+
<h3 id="req.body">req.body</h3>
474474

475475
The `req.body` property returns `undefined` when the body has not been parsed. In Express 4, it returns `{}` by default.
476476

477-
<h4 id="req.host">req.host</h4>
477+
<h3 id="req.host">req.host</h3>
478478

479479
In Express 4 übergab die Funktion `req.host` nicht ordnungsgemäß eine eventuell vorhandene Portnummer. In Express 5 wird die Portnummer beibehalten.
480480

481-
<h4 id="req.query">req.query</h4>
481+
<h3 id="req.query">req.query</h3>
482482

483483
The `req.query` property is no longer a writable property and is instead a getter. The default query parser has been changed from "extended" to "simple".
484484

485-
<h4 id="res.clearCookie">res.clearCookie</h4>
485+
<h3 id="res.clearCookie">res.clearCookie</h3>
486486

487487
The `res.clearCookie` method ignores the `maxAge` and `expires` options provided by the user.
488488

489-
<h4 id="res.status">res.status</h4>
489+
<h3 id="res.status">res.status</h3>
490490

491491
The `res.status` method only accepts integers in the range of `100` to `999`, following the behavior defined by Node.js, and it returns an error when the status code is not an integer.
492492

493-
<h4 id="res.query">res.vary</h4>
493+
<h3 id="res.query">res.vary</h3>
494494

495495
The `res.vary` throws an error when the `field` argument is missing. In Express 4, if the argument was omitted, it gave a warning in the console
496496

497-
### Verbesserungen
497+
## Verbesserungen
498498

499-
<h4 id="res.render">res.render()</h4>
499+
<h3 id="res.render">res.render()</h3>
500500

501501
Diese Methode erzwingt nun asynchrones Verhalten für alle View-Engines, sodass durch View-Engines mit synchroner Implementierung verursachte Fehler vermieden werden, durch die die empfohlene Schnittstelle nicht verwendet werden konnte.
502502

503-
<h4 id="brotli-support">Brotli encoding support</h4>
503+
<h3 id="brotli-support">Brotli encoding support</h3>
504504

505505
Express 5 supports Brotli encoding for requests received from clients that support it.

de/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,20 @@ app.listen(port, () => {
4343
{% endif %}
4444

4545
<section id="intro">
46-
4746
<div id="boxes" class="clearfix">
4847
<div id="web-applications">
4948
<h2>Web Applications</h2> Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
5049
</div>
5150
<div id="apis">
52-
<h2>APIs</h2> With a myriad of HTTP utility methods and middleware at your disposal, creating a robust API is quick and easy.
51+
<h2>APIs</h2> With a myriad of HTTP utility methods and middleware at your disposal, creating a robust API is quick and easy.
5352
</div>
5453
<div id="performance">
55-
<h2>Performance</h2> Express provides a thin layer of fundamental web application features, without obscuring Node.js features that you know and love.
54+
<h2>Performance</h2> Express provides a thin layer of fundamental web application features, without obscuring Node.js features that you know and love.
5655
</div>
5756
<div id="middleware">
5857
<h2>Middleware</h2>
5958
Express is a lightweight and flexible routing framework with minimal core features
60-
meant to be augmented through the use of Express <a href="{{ page.lang }}/resources/middleware. html">middleware</a> modules.
59+
meant to be augmented through the use of Express <a href="{{ page.lang }}/resources/middleware.html">middleware</a> modules.
6160
</div>
6261
</div>
63-
6462
</section>

de/resources/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The Express technical committee consists of active project members, and guides d
2525

2626
## Community contributing guide
2727

28-
<!-- SRC: expressjs/express Contributing.md -->
28+
<!-- SRC: expressjs/discussions docs/GOVERNANCE.md -->
2929

3030
The goal of this document is to create a contribution process that:
3131

@@ -274,7 +274,7 @@ By making a contribution to this project, I certify that:
274274

275275
## Collaborator's guide
276276

277-
<!-- SRC: expressjs/express Collaborator-Guide.md -->
277+
<!-- SRC: expressjs/.github CONTRIBUTING.md -->
278278

279279
### Website Issues
280280

de/starter/static-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ express.static(root, [options])
1818
```
1919

2020
The `root` argument specifies the root directory from which to serve static assets.
21-
For more information on the `options` argument, see [express.static](/{{page.lang}}/4x/api.html#express.static).
21+
For more information on the `options` argument, see [express.static](/{{page.lang}}/5x/api.html#express.static).
2222

2323
Beispiel: Verwenden Sie den folgenden Code, um Bilder, CSS-Dateien und JavaScript-Dateien in einem Verzeichnis namens `public` bereitzustellen:
2424

@@ -52,7 +52,7 @@ For best results, [use a reverse proxy](/{{page.lang}}/advanced/best-practice-pe
5252
{% endcapture %}
5353
{% include admonitions/note.html content=alert_content %}
5454

55-
Wenn Sie ein Präfix für einen virtuellen Pfad (in dem der Pfad nicht wirklich im Dateisystem existiert) für Dateien festlegen wollen, die über die Funktion `express.static` bereitgestellt werden, [müssen Sie einen Mountpfad](/{{ page.lang }}/4x/api.html#app.use) für das Verzeichnis mit den statischen Assets wie unten gezeigt angeben:
55+
To create a virtual path prefix (where the path does not actually exist in the file system) for files that are served by the `express.static` function, [specify a mount path](/{{ page.lang }}/5x/api.html#app.use) for the static directory, as shown below:
5656

5757
```js
5858
app.use('/static', express.static('public'))

0 commit comments

Comments
 (0)