Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🌐 Add Japanese translation for Tutorial - Header Parameters#1935

Merged
tiangolo merged 18 commits into
fastapi:masterfrom
SwftAlpc:translation/ja-tutorial-header-params-md
Oct 17, 2020
Merged

🌐 Add Japanese translation for Tutorial - Header Parameters#1935
tiangolo merged 18 commits into
fastapi:masterfrom
SwftAlpc:translation/ja-tutorial-header-params-md

Conversation

@SwftAlpc

Copy link
Copy Markdown
Contributor

This PR translates the tutorial/header-params.md to Japanese.
Please review tutorial/header-params.md.

Issue #1571 generates a new directory to support Japanese.
PR #1656 generates a new directory for tutorial.
I will fix dependency after #1571 & #1656 are merged.

@SwftAlpc SwftAlpc mentioned this pull request Aug 20, 2020
@codecov

codecov Bot commented Aug 20, 2020

Copy link
Copy Markdown

Codecov Report

Merging #1935 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1935   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          239       239           
  Lines         7079      7079           
=========================================
  Hits          7079      7079           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1dfc81...d99fdcb. Read the comment docs.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 9443ed2 at: https://5f3ebccfcc0b421fcf41e852--fastapi.netlify.app

Comment thread docs/ja/docs/tutorial/header-params.md Outdated

まず、`Header`をインポートします:

```Python hl_lines="1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hl_lines="3"

Comment thread docs/ja/docs/tutorial/header-params.md Outdated

最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます。

```Python hl_lines="7"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hl_lines="9"

Comment thread docs/ja/docs/tutorial/header-params.md Outdated

もしなんらかの理由でアンダースコアからハイフンへの自動変換を無効にする必要がある場合は、`Header`の`convert_underscores`に`False`を設定してください:

```Python hl_lines="7"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hl_lines="9"

Comment thread docs/ja/docs/tutorial/header-params.md Outdated

受信したヘッダーが重複することがあります。つまり、同じヘッダーで複数の値を持つということです。

これらの場合、型宣言のリストを使用して定義することができます。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これらの場合、リストの型宣言を使用して定義することができます。

Comment thread docs/ja/docs/tutorial/header-params.md Outdated

ヘッダーは`Header`で宣言し、`Query`や`Path`、`Cookie`と同じパターンを使用する。

また、変数のアンダースコアを気にする必要はありません。**FastAPI** がそれらの変換をすべて気にしてくれます。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

また、変数のアンダースコアを気にする必要はありません。FastAPI がそれらの変換をすべて取り持ってくれます。

@SwftAlpc

Copy link
Copy Markdown
Contributor Author

@tokusumi
Thanks for your review!
I fixed it.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 1e57a1a at: https://5f41609a560aaaae2de64202--fastapi.netlify.app

@tiangolo tiangolo added awaiting-review lang-all Translations lang-ja Japanese translations labels Aug 29, 2020
@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 7c7b7d7 at: https://5f4cbfa65bf93087ddad326a--fastapi.netlify.app

@Attsun1031 Attsun1031 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've check it all and it's fine.
LGTM 👍

@tiangolo tiangolo changed the title Add tutorial/header-params.md. Japanese ver. 🌐 Add Japanese translation for Tutorial - Header Parameters Oct 17, 2020
@tiangolo

Copy link
Copy Markdown
Member

Awesome! Thank you @SwftAlpc ! 🚀 🙇 ☕

And thanks @Attsun1031 and @tokusumi for the reviews! 👏 👏 🍰

@tiangolo tiangolo merged commit 3a2d443 into fastapi:master Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-2 lang-all Translations lang-ja Japanese translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants