Thanks to visit codestin.com
Credit goes to github.com

Skip to content

🌐 Add Chinese translation for Tutorial - Body - Updates#3237

Merged
tiangolo merged 11 commits into
fastapi:masterfrom
jaystone776:fastapi-jaystone776
Jul 2, 2021
Merged

🌐 Add Chinese translation for Tutorial - Body - Updates#3237
tiangolo merged 11 commits into
fastapi:masterfrom
jaystone776:fastapi-jaystone776

Conversation

@jaystone776

Copy link
Copy Markdown
Contributor

as title

Comment thread docs/zh/docs/tutorial/body-updates.md Outdated
Comment thread docs/zh/docs/tutorial/body-updates.md Outdated
Comment thread docs/zh/docs/tutorial/body-updates.md Outdated

### 使用 Pydantic 的 `update` 参数

接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的`dict`。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的`dict`
现在,你可以使用 `.copy()` 为已有的模型创建一个副本,并且传入 `update` 参数,参数值为包含将要更新数据的`dict`

Comment thread docs/zh/docs/tutorial/body-updates.md Outdated
@tiangolo tiangolo changed the title Add Chinese translation for Tutorial - Body - Updates 🌐 Add Chinese translation for Tutorial - Body - Updates May 17, 2021
@tiangolo tiangolo added awaiting-review lang-all Translations lang-zh Chinese translations labels May 17, 2021
@codecov

codecov Bot commented May 17, 2021

Copy link
Copy Markdown

Codecov Report

Merging #3237 (c6a6e6b) into master (00a8420) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##            master     #3237    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          226       248    +22     
  Lines         6783      7712   +929     
==========================================
+ Hits          6783      7712   +929     
Impacted Files Coverage Δ
tests/main.py 100.00% <0.00%> (ø)
fastapi/utils.py 100.00% <0.00%> (ø)
fastapi/params.py 100.00% <0.00%> (ø)
fastapi/routing.py 100.00% <0.00%> (ø)
fastapi/encoders.py 100.00% <0.00%> (ø)
fastapi/requests.py 100.00% <0.00%> (ø)
fastapi/responses.py 100.00% <0.00%> (ø)
fastapi/exceptions.py 100.00% <0.00%> (ø)
fastapi/concurrency.py 100.00% <0.00%> (ø)
fastapi/applications.py 100.00% <0.00%> (ø)
... and 69 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb6f964...c6a6e6b. Read the comment docs.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 74d2cd7 at: https://60a23a641e75cb92023071a0--fastapi.netlify.app

* 更新了 body-updates 中的几处文字描述,添加了 dict 与中文之间的空格
把 MDN 的网址改为中文
@jaystone776 jaystone776 force-pushed the fastapi-jaystone776 branch from 6438880 to 0972c8d Compare May 18, 2021 05:19

@voidf voidf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice

@github-actions

github-actions Bot commented Jul 2, 2021

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit c6a6e6b at: https://60df2103d44d37fbbaf57ac9--fastapi.netlify.app

@tiangolo

tiangolo commented Jul 2, 2021

Copy link
Copy Markdown
Member

Great, thank you @jaystone776 ! 🎉 🍰

And thanks a lot for the reviews @voidf, @waynerv, and @Laineyzhang55 🚀 🙇

@tiangolo tiangolo merged commit e683678 into fastapi:master Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-2 lang-all Translations lang-zh Chinese translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants