Skip to content

Commit 8720e0e

Browse files
committed
New Crowdin translations by GitHub Action
1 parent 57cbe6c commit 8720e0e

11 files changed

Lines changed: 180 additions & 18 deletions

File tree

de/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can find the list of available codemods [here](https://github.com/expressjs/
5151
<li><a href="#req.param">req.param(name)</a></li>
5252
<li><a href="#res.json">res.json(obj, status)</a></li>
5353
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
54-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
54+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
5555
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
5656
<li><a href="#res.send.body">res.send(body, status)</a></li>
5757
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -325,6 +325,15 @@ app.get('/user', (req, res) => {
325325

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

328+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
329+
330+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
331+
- JSON files (.json): now "application/json" instead of "text/json"
332+
- CSS files (.css): now "text/css" instead of "text/plain"
333+
- XML files (.xml): now "application/xml" instead of "text/xml"
334+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
335+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
336+
328337
{% include admonitions/note.html content=codemod-deprecated-signatures %}
329338

330339
```js
@@ -348,6 +357,15 @@ The `router.param(fn)` signature was used for modifying the behavior of the `rou
348357
In Express 5, `mime` is no longer an exported property of the `static` field.
349358
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
350359

360+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
361+
362+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
363+
- JSON files (.json): now served as "application/json" instead of "text/json"
364+
- CSS files (.css): now served as "text/css" instead of "text/plain"
365+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
366+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
367+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
368+
351369
```js
352370
// v4
353371
express.static.mime.lookup('json')

es/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can find the list of available codemods [here](https://github.com/expressjs/
5151
<li><a href="#req.param">req.param(name)</a></li>
5252
<li><a href="#res.json">res.json(obj, status)</a></li>
5353
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
54-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
54+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
5555
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
5656
<li><a href="#res.send.body">res.send(body, status)</a></li>
5757
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -325,6 +325,15 @@ app.get('/user', (req, res) => {
325325

326326
La función `res.sendfile()` se ha sustituido por una versión de la función `res.sendFile()` con cada palabra en mayúscula en Express 5.
327327

328+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
329+
330+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
331+
- JSON files (.json): now "application/json" instead of "text/json"
332+
- CSS files (.css): now "text/css" instead of "text/plain"
333+
- XML files (.xml): now "application/xml" instead of "text/xml"
334+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
335+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
336+
328337
{% include admonitions/note.html content=codemod-deprecated-signatures %}
329338

330339
```js
@@ -348,6 +357,15 @@ The `router.param(fn)` signature was used for modifying the behavior of the `rou
348357
In Express 5, `mime` is no longer an exported property of the `static` field.
349358
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
350359

360+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
361+
362+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
363+
- JSON files (.json): now served as "application/json" instead of "text/json"
364+
- CSS files (.css): now served as "text/css" instead of "text/plain"
365+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
366+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
367+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
368+
351369
```js
352370
// v4
353371
express.static.mime.lookup('json')

fr/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ nom pour app.param(name, fn)</a></li>
6060
<li><a href="#req.param">req.param(name)</a></li>
6161
<li><a href="#res.json">res.json(obj, status)</a></li>
6262
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
63-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
63+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
6464
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
6565
<li><a href="#res.send.body">res.send(body, status)</a></li>
6666
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -378,6 +378,15 @@ La fonction `res.sendfile()` a été remplacée
378378
par une
379379
version CamelCase `res.sendFile()` dans Express 5.
380380

381+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
382+
383+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
384+
- JSON files (.json): now "application/json" instead of "text/json"
385+
- CSS files (.css): now "text/css" instead of "text/plain"
386+
- XML files (.xml): now "application/xml" instead of "text/xml"
387+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
388+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
389+
381390
{% include admonitions/note.html content=codemod-deprecated-signatures %}
382391

383392
```js
@@ -402,6 +411,15 @@ version 4.11.0 et Express 5 ne la prend plus en charge.
402411
In Express 5, `mime` is no longer an exported property of the `static` field.
403412
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
404413

414+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
415+
416+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
417+
- JSON files (.json): now served as "application/json" instead of "text/json"
418+
- CSS files (.css): now served as "text/css" instead of "text/plain"
419+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
420+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
421+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
422+
405423
```js
406424
// v4
407425
express.static.mime.lookup('json')

it/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can find the list of available codemods [here](https://github.com/expressjs/
5151
<li><a href="#req.param">req.param(name)</a></li>
5252
<li><a href="#res.json">res.json(obj, status)</a></li>
5353
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
54-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
54+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
5555
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
5656
<li><a href="#res.send.body">res.send(body, status)</a></li>
5757
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -325,6 +325,15 @@ app.get('/user', (req, res) => {
325325

326326
La funzione `res.sendfile()` è stata sostituita da una versione in cui ogni frase composta inizia con una lettera maiuscola che utilizza ad esempio `res.sendFile()` in Express 5.
327327

328+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
329+
330+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
331+
- JSON files (.json): now "application/json" instead of "text/json"
332+
- CSS files (.css): now "text/css" instead of "text/plain"
333+
- XML files (.xml): now "application/xml" instead of "text/xml"
334+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
335+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
336+
328337
{% include admonitions/note.html content=codemod-deprecated-signatures %}
329338

330339
```js
@@ -348,6 +357,15 @@ The `router.param(fn)` signature was used for modifying the behavior of the `rou
348357
In Express 5, `mime` is no longer an exported property of the `static` field.
349358
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
350359

360+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
361+
362+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
363+
- JSON files (.json): now served as "application/json" instead of "text/json"
364+
- CSS files (.css): now served as "text/css" instead of "text/plain"
365+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
366+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
367+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
368+
351369
```js
352370
// v4
353371
express.static.mime.lookup('json')

ja/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can find the list of available codemods [here](https://github.com/expressjs/
5151
<li><a href="#req.param">req.param(name)</a></li>
5252
<li><a href="#res.json">res.json(obj, status)</a></li>
5353
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
54-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
54+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
5555
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
5656
<li><a href="#res.send.body">res.send(body, status)</a></li>
5757
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -325,6 +325,15 @@ app.get('/user', (req, res) => {
325325

326326
`res.sendfile()` 関数は、Express 5 ではキャメルケース版の `res.sendFile()` に置き換えられます。
327327

328+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
329+
330+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
331+
- JSON files (.json): now "application/json" instead of "text/json"
332+
- CSS files (.css): now "text/css" instead of "text/plain"
333+
- XML files (.xml): now "application/xml" instead of "text/xml"
334+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
335+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
336+
328337
{% include admonitions/note.html content=codemod-deprecated-signatures %}
329338

330339
```js
@@ -348,6 +357,15 @@ The `router.param(fn)` signature was used for modifying the behavior of the `rou
348357
In Express 5, `mime` is no longer an exported property of the `static` field.
349358
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
350359

360+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
361+
362+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
363+
- JSON files (.json): now served as "application/json" instead of "text/json"
364+
- CSS files (.css): now served as "text/css" instead of "text/plain"
365+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
366+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
367+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
368+
351369
```js
352370
// v4
353371
express.static.mime.lookup('json')

ko/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can find the list of available codemods [here](https://github.com/expressjs/
5151
<li><a href="#req.param">req.param(name)</a></li>
5252
<li><a href="#res.json">res.json(obj, status)</a></li>
5353
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
54-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
54+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
5555
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
5656
<li><a href="#res.send.body">res.send(body, status)</a></li>
5757
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -325,6 +325,15 @@ app.get('/user', (req, res) => {
325325

326326
Express 5에서 `res.sendfile()` 함수는 낙타 대문자(camel-cased) 버전인 `res.sendFile()`로 대체되었습니다.
327327

328+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
329+
330+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
331+
- JSON files (.json): now "application/json" instead of "text/json"
332+
- CSS files (.css): now "text/css" instead of "text/plain"
333+
- XML files (.xml): now "application/xml" instead of "text/xml"
334+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
335+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
336+
328337
{% include admonitions/note.html content=codemod-deprecated-signatures %}
329338

330339
```js
@@ -348,6 +357,15 @@ The `router.param(fn)` signature was used for modifying the behavior of the `rou
348357
In Express 5, `mime` is no longer an exported property of the `static` field.
349358
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
350359

360+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
361+
362+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
363+
- JSON files (.json): now served as "application/json" instead of "text/json"
364+
- CSS files (.css): now served as "text/css" instead of "text/plain"
365+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
366+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
367+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
368+
351369
```js
352370
// v4
353371
express.static.mime.lookup('json')

pt-br/guide/migrating-5.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ You can find the list of available codemods [here](https://github.com/expressjs/
6060
<li><a href="#req.param">req.param(name)</a></li>
6161
<li><a href="#res.json">res.json(obj, status)</a></li>
6262
<li><a href="#res.jsonp">res.jsonp(obj, status)</a></li>
63-
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
63+
<li><a href="#magic-redirect">res.redirect('back') and res.location('back')</a></li>
6464
<li><a href="#res.redirect">res.redirect(url, status)</a></li>
6565
<li><a href="#res.send.body">res.send(body, status)</a></li>
6666
<li><a href="#res.send.status">res.send(status)</a></li>
@@ -368,6 +368,15 @@ A função `res.sendfile()` foi substituída pela
368368
versão em formato camel-case `res.sendFile()` no
369369
Express 5.
370370

371+
**Note:** In Express 5, `res.sendFile()` uses the `mime-types` package for MIME type detection, which returns different Content-Type values than Express 4 for several common file types:
372+
373+
- JavaScript files (.js): now "text/javascript" instead of "application/javascript"
374+
- JSON files (.json): now "application/json" instead of "text/json"
375+
- CSS files (.css): now "text/css" instead of "text/plain"
376+
- XML files (.xml): now "application/xml" instead of "text/xml"
377+
- Font files (.woff): now "font/woff" instead of "application/font-woff"
378+
- SVG files (.svg): now "image/svg+xml" instead of "application/svg+xml"
379+
371380
{% include admonitions/note.html content=codemod-deprecated-signatures %}
372381

373382
```js
@@ -392,6 +401,15 @@ foi descontinuada desde a v4.11.0, e o Express 5 não a suporta mais de nenhuma
392401
In Express 5, `mime` is no longer an exported property of the `static` field.
393402
Use the [`mime-types` package](https://github.com/jshttp/mime-types) to work with MIME type values.
394403

404+
**Important:** This change affects not only direct usage of `express.static.mime` but also other Express methods that rely on MIME type detection, such as `res.sendFile()`. The following MIME types have changed from Express 4:
405+
406+
- JavaScript files (.js): now served as "text/javascript" instead of "application/javascript"
407+
- JSON files (.json): now served as "application/json" instead of "text/json"
408+
- CSS files (.css): now served as "text/css" instead of "text/plain"
409+
- HTML files (.html): now served as "text/html; charset=utf-8" instead of just "text/html"
410+
- XML files (.xml): now served as "application/xml" instead of "text/xml"
411+
- Font files (.woff): now served as "font/woff" instead of "application/font-woff"
412+
395413
```js
396414
// v4
397415
express.static.mime.lookup('json')

zh-cn/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: api
33
version: 5x
44
title: Express 5.x - API 参考
5-
description: Access the API reference for Express.js detailing all modules, methods, and properties for building web applications with this version.
5+
description: 访问 Express.js API 参考文档,获取当前版本所有模块、方法及属性的详细说明,助您构建 Web 应用。
66
lang: en
77
redirect_from: " "
88
---

0 commit comments

Comments
 (0)