Skip to content
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

Merged

Conversation

SwftAlpc
Copy link
Contributor

@SwftAlpc SwftAlpc commented Aug 19, 2020

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.

@SwftAlpc SwftAlpc mentioned this pull request Aug 19, 2020
@codecov
Copy link

codecov bot commented Aug 19, 2020

Codecov Report

Patch and project coverage have no change.

Comparison is base (cf73051) 100.00% compared to head (e1408a3) 100.00%.

❗ Current head e1408a3 differs from pull request most recent head 372e5fe. Consider uploading reports for the commit 372e5fe to get more accurate results

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     

see 356 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

📝 Docs preview for commit 9fc88ac at: https://5f3d4119908e2382bc6e75cd--fastapi.netlify.app


まず、以下のようにインポートします:

```Python hl_lines="2"
Copy link
Contributor

Choose a reason for hiding this comment

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

hl_lines="4"


以下のように`Field`をモデルの属性として使用することができます:

```Python hl_lines="9 10"
Copy link
Contributor

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"


`Body`は`FieldInfo`のサブクラスのオブジェクトを直接返すこともできます。そして、他にも`Body`クラスのサブクラスであるものがあります。

`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。
Copy link
Contributor

Choose a reason for hiding this comment

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

`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。

`fastapi`から`Query`や`Path`などをインポートする場合、これらは実際には特殊なクラスを返す関数であることに注意してください。

!!! tip "豆知識"
型、デフォルト値、`Field`を持つ各モデルの属性が、`Path`や`Query`、`Body`の代わりに`Field`を持つ、*path operation 関数の*パラメータと同じ構造になっていることに注目してください。
Copy link
Contributor

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 関数の*パラメータと同じ構造になっていることに注目してください。


追加情報は`Field`や`Query`、`Body`などで宣言することができます。そしてそれは生成されたJSONスキーマに含まれます。

追加情報を追加することについては、後に例を宣言することを学ぶときに学びます。
Copy link
Contributor

Choose a reason for hiding this comment

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

後に例を用いて宣言を学ぶ際に、追加情報を加える方法を学べます。

@github-actions
Copy link
Contributor

📝 Docs preview for commit c0b6e32 at: https://5f41529d848e3d0cb51f2eed--fastapi.netlify.app

Copy link
Contributor

@tokusumi tokusumi left a comment

Choose a reason for hiding this comment

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

LGTM

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

📝 Docs preview for commit 036485f at: https://5f4cbfe9a088291bc77b0ec4--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commit e1408a3 at: https://5f9aa2acd6418518b655b1a9--fastapi.netlify.app

@tiangolo tiangolo changed the title Add tutorial/body-fields.md 🌐 Add Japanese translation for docs/ja/docs/tutorial/body-fields.md Jun 26, 2023
@tiangolo tiangolo added lang-ja Japanese translations awaiting-review and removed lang-ja Japanese translations awaiting-review labels Jun 26, 2023
@tiangolo
Copy link
Member

📝 Docs preview for commit 372e5fe at: https://6499c16045da210e5d1f21a2--fastapi.netlify.app

@tiangolo
Copy link
Member

As this was done by @SwftAlpc and reviewed by @tokusumi, champions of the Japanese translations, I will merge this. 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-all Translations lang-ja Japanese translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants