🌐 Add Japanese translation for Tutorial - Header Parameters#1935
Conversation
…/ryuckel/fastapi into feature/add-japanese-translation
Codecov Report
@@ 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.
|
|
📝 Docs preview for commit 9443ed2 at: https://5f3ebccfcc0b421fcf41e852--fastapi.netlify.app |
|
|
||
| まず、`Header`をインポートします: | ||
|
|
||
| ```Python hl_lines="1" |
|
|
||
| 最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます。 | ||
|
|
||
| ```Python hl_lines="7" |
|
|
||
| もしなんらかの理由でアンダースコアからハイフンへの自動変換を無効にする必要がある場合は、`Header`の`convert_underscores`に`False`を設定してください: | ||
|
|
||
| ```Python hl_lines="7" |
|
|
||
| 受信したヘッダーが重複することがあります。つまり、同じヘッダーで複数の値を持つということです。 | ||
|
|
||
| これらの場合、型宣言のリストを使用して定義することができます。 |
There was a problem hiding this comment.
これらの場合、リストの型宣言を使用して定義することができます。
|
|
||
| ヘッダーは`Header`で宣言し、`Query`や`Path`、`Cookie`と同じパターンを使用する。 | ||
|
|
||
| また、変数のアンダースコアを気にする必要はありません。**FastAPI** がそれらの変換をすべて気にしてくれます。 |
There was a problem hiding this comment.
また、変数のアンダースコアを気にする必要はありません。FastAPI がそれらの変換をすべて取り持ってくれます。
|
@tokusumi |
|
📝 Docs preview for commit 1e57a1a at: https://5f41609a560aaaae2de64202--fastapi.netlify.app |
|
📝 Docs preview for commit 7c7b7d7 at: https://5f4cbfa65bf93087ddad326a--fastapi.netlify.app |
Attsun1031
left a comment
There was a problem hiding this comment.
I've check it all and it's fine.
LGTM 👍
|
Awesome! Thank you @SwftAlpc ! 🚀 🙇 ☕ And thanks @Attsun1031 and @tokusumi for the reviews! 👏 👏 🍰 |
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.