mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-21 19:41:33 +00:00
i18n init
This commit is contained in:
11
3x/api.md
11
3x/api.md
@@ -2,6 +2,7 @@
|
||||
layout: 3x-api
|
||||
title: Express 3.x - API Reference
|
||||
menu: api
|
||||
lang: en
|
||||
---
|
||||
<div id="api-doc" markdown="1">
|
||||
|
||||
@@ -14,18 +15,18 @@ menu: api
|
||||
<h1>3.x API</h1>
|
||||
|
||||
<a id='express' class='h2'></a>
|
||||
{% include api/3x/en/express.md %}
|
||||
{% include api/{{ page.lang }}/3x/express.md %}
|
||||
|
||||
<a id='application' class='h2'></a>
|
||||
{% include api/3x/en/app.md %}
|
||||
{% include api/{{ page.lang }}/3x/app.md %}
|
||||
|
||||
<a id='request' class='h2'></a>
|
||||
{% include api/3x/en/req.md %}
|
||||
{% include api/{{ page.lang }}/3x/req.md %}
|
||||
|
||||
<a id='response' class='h2'></a>
|
||||
{% include api/3x/en/res.md %}
|
||||
{% include api/{{ page.lang }}/3x/res.md %}
|
||||
|
||||
<a id='middleware' class='h2'></a>
|
||||
{% include api/3x/en/middleware.md %}
|
||||
{% include api/{{ page.lang }}/3x/middleware.md %}
|
||||
|
||||
</div>
|
||||
|
||||
11
4x/api.md
11
4x/api.md
@@ -2,24 +2,25 @@
|
||||
layout: 4x-api
|
||||
title: Express 4.x - API Reference
|
||||
menu: api
|
||||
lang: en
|
||||
---
|
||||
<div id="api-doc" markdown="1">
|
||||
|
||||
<h1>4.x API</h1>
|
||||
|
||||
<a id='express' class='h2'></a>
|
||||
{% include api/4x/en/express.md %}
|
||||
{% include api/{{ page.lang }}/4x/express.md %}
|
||||
|
||||
<a id='application' class='h2'></a>
|
||||
{% include api/4x/en/app.md %}
|
||||
{% include api/{{ page.lang }}/4x/app.md %}
|
||||
|
||||
<a id='request' class='h2'></a>
|
||||
{% include api/4x/en/req.md %}
|
||||
{% include api/{{ page.lang }}/4x/req.md %}
|
||||
|
||||
<a id='response' class='h2'></a>
|
||||
{% include api/4x/en/res.md %}
|
||||
{% include api/{{ page.lang }}/4x/res.md %}
|
||||
|
||||
<a id='router' class='h2'></a>
|
||||
{% include api/4x/en/router.md %}
|
||||
{% include api/{{ page.lang }}/4x/router.md %}
|
||||
|
||||
</div>
|
||||
|
||||
10
README.md
10
README.md
@@ -31,3 +31,13 @@ If you have an app you'd like to showcase on the site, open a pull request for i
|
||||
## Why use Jekyll instead of an Express-based solution?
|
||||
|
||||
Jekyll comes built-in with GitHub Pages. Since we are already using GitHub Pages to host the website, it makes sense to leverage the capabilities it provides. It's all about using the right tool, for the right job, under the right circumstances.
|
||||
|
||||
## How do I help translate the docs to a certain language?
|
||||
|
||||
Follow these steps:
|
||||
|
||||
1. Create a directory for the language of your choice using its [ISO 639-1 code](http://en.wikipedia.org/wiki/ISO_639-1) as its name.
|
||||
2. Copy `index.md`, `api.md`, `starter/`, `guide/`, `api/`, `advanced/`, and `resources/` to the language directory.
|
||||
3. Update the `lang` variable in the markdown files in the copied file to the language you have selected.
|
||||
4. Create the header and footer HTML files for the language in the `_includes/` directory.
|
||||
5. Copy the `_includes/api/en` to the language of your choice.
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
<h2>Application</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-set.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-get.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-enable.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-disable.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-enabled.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-disabled.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-configure.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-use.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-settings.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-engine.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-param.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-VERB.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-all.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-locals.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-render.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-routes.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/app-listen.md %}
|
||||
</section>
|
||||
@@ -1,29 +0,0 @@
|
||||
<h2>Middleware</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-basicAuth.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-bodyParser.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-compress.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-cookieParser.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-cookieSession.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-csrf.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/mw-directory.md %}
|
||||
</section>
|
||||
@@ -1,109 +0,0 @@
|
||||
<h2>Request</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-params.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-query.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-body.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-files.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-param.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-route.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-cookies.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-signedCookies.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-header.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-accepts.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-accepted.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-is.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-ip.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-ips.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-path.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-host.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-fresh.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-stale.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-xhr.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-protocol.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-secure.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-subdomains.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-originalUrl.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-acceptedLanguages.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-acceptedCharsets.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-acceptsCharset.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/req-acceptsLanguage.md %}
|
||||
</section>
|
||||
@@ -1,77 +0,0 @@
|
||||
<h2>Response</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-status.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-set.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-get.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-cookie.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-clearCookie.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-redirect.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-location.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-charset.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-send.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-json.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-jsonp.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-type.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-format.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-attachment.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-sendfile.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-download.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-links.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-locals.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/3x/en/res-render.md %}
|
||||
</section>
|
||||
69
_includes/api/en/3x/app.md
Normal file
69
_includes/api/en/3x/app.md
Normal file
@@ -0,0 +1,69 @@
|
||||
<h2>Application</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-set.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-get.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-enable.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-disable.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-enabled.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-disabled.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-configure.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-use.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-settings.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-engine.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-param.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-VERB.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-all.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-locals.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-render.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-routes.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/app-listen.md %}
|
||||
</section>
|
||||
29
_includes/api/en/3x/middleware.md
Normal file
29
_includes/api/en/3x/middleware.md
Normal file
@@ -0,0 +1,29 @@
|
||||
<h2>Middleware</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-basicAuth.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-bodyParser.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-compress.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-cookieParser.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-cookieSession.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-csrf.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/mw-directory.md %}
|
||||
</section>
|
||||
109
_includes/api/en/3x/req.md
Normal file
109
_includes/api/en/3x/req.md
Normal file
@@ -0,0 +1,109 @@
|
||||
<h2>Request</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-params.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-query.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-body.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-files.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-param.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-route.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-cookies.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-signedCookies.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-header.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-accepts.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-accepted.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-is.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-ip.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-ips.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-path.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-host.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-fresh.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-stale.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-xhr.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-protocol.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-secure.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-subdomains.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-originalUrl.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-acceptedLanguages.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-acceptedCharsets.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-acceptsCharset.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/req-acceptsLanguage.md %}
|
||||
</section>
|
||||
77
_includes/api/en/3x/res.md
Normal file
77
_includes/api/en/3x/res.md
Normal file
@@ -0,0 +1,77 @@
|
||||
<h2>Response</h2>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-status.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-set.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-get.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-cookie.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-clearCookie.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-redirect.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-location.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-charset.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-send.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-json.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-jsonp.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-type.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-format.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-attachment.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-sendfile.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-download.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-links.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-locals.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/{{ page.lang }}/3x/res-render.md %}
|
||||
</section>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user