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/dependencies/dependencies-with-yield.md
#1961
🌐 Add Japanese translation for docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
#1961
Conversation
…/ryuckel/fastapi into feature/add-japanese-translation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1961 +/- ##
===========================================
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 9dc62f2 at: https://5f42952b848e3d80d81f334b--fastapi.netlify.app |
Co-authored-by: T. Tokusumi <41147016+tokusumi@users.noreply.github.com>
Co-authored-by: T. Tokusumi <41147016+tokusumi@users.noreply.github.com>
@tokusumi |
📝 Docs preview for commit 767f9ed at: https://5f9ae9d8be43fd0c7a609acd--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.
Thank you for cooperating for improvement.
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.
Could you fix only the typos?
|
||
**FastAPI** は、`yield`を持つ各依存関係の「終了コード」が正しい順番で実行されていることを確認します。 | ||
|
||
例えば、`dependency_c`は`dependency_b`と`dependency_b`に依存する`dependency_a`に、依存することができます: |
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.
例えば、`dependency_c`は`dependency_b`と`dependency_b`に依存する`dependency_a`に、依存することができます: | |
例えば、`dependency_c`は`dependency_b`と、`dependency_a`に依存する`dependency_b`に依存することができます: |
typo?
|
||
`yield`と例外をキャッチする`try`ブロックを持つことができる依存関係を使用することができることがわかりました。 | ||
|
||
`yield`の後の終了コードで`HTTPException`などを発生させたくなるかもしれません。しかし**それはうまくいきません** |
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.
`yield`の後の終了コードで`HTTPException`などを発生させたくなるかもしれません。しかし**それはうまくいきません** | |
`yield`の後の終了コードで`HTTPException`などを発生させたくなるかもしれません。しかし**それはうまくいきません**。 |
Add a trailing period.
|
||
`yield`を持つ依存関係の終了コードは[例外ハンドラ](../handling-errors.md#install-custom-exception-handlers){.internal-link target=_blank}の*後に*実行されます。依存関係によって投げられた例外を終了コード(`yield`の後)でキャッチするものはなにもありません。 | ||
|
||
つまり、`yield`の後に`HTTPException`を発生させた場合、`HTTTPException`をキャッチしてHTTP 400のレスポンスを返すデフォルトの(あるいは任意のカスタムの)例外ハンドラは、その例外をキャッチすることができなくなります。 |
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.
つまり、`yield`の後に`HTTPException`を発生させた場合、`HTTTPException`をキャッチしてHTTP 400のレスポンスを返すデフォルトの(あるいは任意のカスタムの)例外ハンドラは、その例外をキャッチすることができなくなります。 | |
つまり、`yield`の後に`HTTPException`を発生させた場合、`HTTPException `をキャッチしてHTTP 400のレスポンスを返すデフォルトの(あるいは任意のカスタムの)例外ハンドラは、その例外をキャッチすることができなくなります。 |
typo
…dencies-with-yield-md
docs/ja/docs/tutorial/dependencies/index.md
and docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
📝 Docs preview for commit 1cfe4ba at: https://6499cbcd89d3ab061a01d4fc--fastapi.netlify.app |
…dencies-with-yield-md
docs/ja/docs/tutorial/dependencies/index.md
and docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
This PR translates the tutorial/dependencies/dependencies-with-yield.md to Japanese.
Please review tutorial/dependencies/dependencies-with-yield.md.
Issue #1571 generates a new directory to support Japanese.PR #1656 generates a new directory for tutorial.
PR #1957 generates a new directory for dependencies in tutorial.
I will fix dependency after
#1571, #1656 and#1957 are merged.