-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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-nested-models.md
#1930
🌐 Add Japanese translation for docs/ja/docs/tutorial/body-nested-models.md
#1930
Conversation
…/ryuckel/fastapi into feature/add-japanese-translation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1930 +/- ##
===========================================
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 1078566 at: https://5f3e9289fe514400e681a77e--fastapi.netlify.app |
## サブタイプを持つリストのフィールド | ||
|
||
しかし、Pythonにはサブタイプを使ってリストを宣言する方法があります: |
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.
タイプパラメータを持つリストのフィールド
しかし、Pythonには型や「タイプパラメータ」を使ってリストを宣言する方法があります:
(this sentences is updated)
{!../../../docs_src/body_nested_models/tutorial002.py!} | ||
``` | ||
|
||
### サブタイプを持つ`List`の宣言 |
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.
This section is updated. Could you check it and translate the latest document?
{!../../../docs_src/body_nested_models/tutorial004.py!} | ||
``` | ||
|
||
### サブモデルの型として使用 |
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** を使用して、その宣言を行うだけで以下のようになります: | ||
|
||
* 入れ子になったモデルでもエディタのサポート(補完など) |
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 を使用して、その宣言を行うだけで以下のような恩恵を受けられます:
- 入れ子になったモデルでも対応可能なエディタのサポート(補完など)
@tokusumi |
📝 Docs preview for commit 275448c at: https://5f41609c560aaa7ce9e6460c--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.
LSTM!
you translate "nested" with "入れ子", on the other hand, I did it with "ネストされた" in other section. I can accept both of them with no changes.
might you want to unify them?
@tokusumi |
📝 Docs preview for commit 3f4a7e9 at: https://5f42257e618e31a970a4bc14--fastapi.netlify.app |
📝 Docs preview for commit be325fa at: https://5f4cbfa6302549e185748a81--fastapi.netlify.a 8000 pp |
📝 Docs preview for commit 1e2066b at: https://5f9aa30eefcb983ab7c4299a--fastapi.netlify.app |
docs/ja/docs/tutorial/body-nested-models.md
📝 Docs preview for commit 0ad805d at: https://6499c185c77ce600c0dfd6dd--fastapi.netlify.app |
This PR translates the tutorial/body-nested-models.md to Japanese.
Please review tutorial/body-nested-models.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.