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 Chinese translation for Tutorial - Body - Updates #3237

Merged
merged 11 commits into from
Jul 2, 2021

Conversation

jaystone776
Copy link
Contributor

as title

docs/zh/docs/tutorial/body-updates.md Outdated Show resolved Hide resolved
docs/zh/docs/tutorial/body-updates.md Outdated Show resolved Hide resolved

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

接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的`dict`。
Copy link
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`

docs/zh/docs/tutorial/body-updates.md Outdated Show resolved Hide resolved
@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
Copy link

codecov bot commented May 17, 2021

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
Contributor

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

* 更新了 body-updates 中的几处文字描述,添加了 dict 与中文之间的空格
把 MDN 的网址改为中文
jaystone776 and others added 4 commits May 18, 2021 13:49
Co-authored-by: Xie Wei <ampedee@gmail.com>
Co-authored-by: Xie Wei <ampedee@gmail.com>
Co-authored-by: Xie Wei <ampedee@gmail.com>
Copy link

@voidf voidf left a comment

Choose a reason for hiding this comment

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

nice

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2021

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

@tiangolo
Copy link
Member

tiangolo commented Jul 2, 2021

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.

None yet

5 participants