-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 Add Japanese translation for docs/ja/docs/tutorial/body-fields.md
#1923
🌐 Add Japanese translation for docs/ja/docs/tutorial/body-fields.md
#1923
Conversation
…/ryuckel/fastapi into feature/add-japanese-translation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1923 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 540 239 -301
Lines 13969 7079 -6890
===========================================
- Hits 13969 7079 -6890 ☔ View full report in Codecov by Sentry. |
📝 Docs preview for commit 9fc88ac at: https://5f3d4119908e2382bc6e75cd--fastapi.netlify.app |
docs/ja/docs/tutorial/body-fields.md
Outdated
|
||
まず、以下のようにインポートします: | ||
|
||
```Python hl_lines="2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hl_lines="4"
docs/ja/docs/tutorial/body-fields.md
Outdated
|
||
以下のように`Field`をモデルの属性として使用することができます: | ||
|
||
```Python hl_lines="9 10" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hl_lines="11 12 13 14"
docs/ja/docs/tutorial/body-fields.md
Outdated
|
||
`Body`は`FieldInfo`のサブクラスのオブジェクトを直接返すこともできます。そして、他にも`Body`クラスのサブクラスであるものがあります。 | ||
|
||
`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。
docs/ja/docs/tutorial/body-fields.md
Outdated
`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。 | ||
|
||
!!! tip "豆知識" | ||
型、デフォルト値、`Field`を持つ各モデルの属性が、`Path`や`Query`、`Body`の代わりに`Field`を持つ、*path operation 関数の*パラメータと同じ構造になっていることに注目してください。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
型、デフォルト値、`Field`を持つ各モデルの属性が、`Path`や`Query`、`Body`の代わりに`Field`を持つ、*path operation 関数の*パラメータと同じ構造になっていることに注目してください。
docs/ja/docs/tutorial/body-fields.md
Outdated
|
||
追加情報は`Field`や`Query`、`Body`などで宣言することができます。そしてそれは生成されたJSONスキーマに含まれます。 | ||
|
||
追加情報を追加することについては、後に例を宣言することを学ぶときに学びます。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
後に例を用いて宣言を学ぶ際に、追加情報を加える方法を学べます。
📝 Docs preview for commit c0b6e32 at: https://5f41529d848e3d0cb51f2eed--fastapi.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
📝 Docs preview for commit 036485f at: https://5f4cbfe9a088291bc77b0ec4--fastapi.netlify.app |
📝 Docs preview for commit e1408a3 at: https://5f9aa2acd6418518b655b1a9--fastapi.netlify.app |
docs/ja/docs/tutorial/body-fields.md
📝 Docs preview for commit 372e5fe at: https://6499c16045da210e5d1f21a2--fastapi.netlify.app |
This PR translates the tutorial/body-fields.md to Japanese.
Please review tutorial/body-fields.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.