8000 🌐 Add Chinese translation for `docs/zh/docs/tutorial/cookie-param-models.md` by Zhongheng-Cheng · Pull Request #13038 · fastapi/fastapi · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@Zhongheng-Cheng
Copy link
Contributor

Add Chinese translation for docs/zh/docs/tutorial/cookie-param-models.md
docs/zh/docs/tutorial/cookie-param-models.md增加了中文翻译

@github-actions github-actions bot added the lang-all Translations label Dec 5, 2024
@github-actions
Copy link
Contributor
github-actions bot commented Dec 5, 2024

@alejsdev alejsdev added lang-zh Chinese translations awaiting-review labels Dec 9, 2024
Copy link
Contributor
@Vincy1230 Vincy1230 left a comment

Choose a reason for hiding this comment

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

LGTM.

顺带一提,我个人认为将英文翻译为中文时可以不保留英文中的复数习惯,你可以将 cookiecookies 统一写作 cookie,防止混乱的同时更契合中文的表述逻辑。
By the way, I personally think that when translating English into Chinese, it's okay to drop the plural forms in English. You could write both cookie and cookies as cookie in Chinese to avoid confusion and better align with the logic of Chinese expression.

当然这只是一个无关痛痒的建议,决定权在你😎
Of course, this is just a trivial suggestion—the decision is yours 😎.

@logan2d5
Copy link
Contributor
logan2d5 commented Dec 9, 2024

If you have a group of cookies that are related, you can create a Pydantic model to declare them. 🍪

This would allow you to re-use the model in multiple places and also to declare validations and metadata for all the parameters at once. 😎

如果有一组相关的 cookies,可以创建一个 Pydantic 模型来声明它们。🍪

这将允许在多个地方能够重用模型,并且可以一次性声明所有参数的验证和元数据。😎

"I think the word 'you' in this article should be consistently translated as either '你' or '您'."

@github-actions
Copy link
Contributor
github-actions bot commented Dec 9, 2024

@github-actions
Copy link
Contributor
github-actions bot commented Dec 9, 2024

@github-actions
Copy link
Contributor
github-actions bot commented Dec 9, 2024

@Zhongheng-Cheng
Copy link
Contributor Author

@logan2d5 @Vincy1230
感谢你们的回复!我已经根据你们的建议做了相应的改动。
Thank you for your feedback! I have made the corresponding changes based on your suggestions.

@alejsdev
Copy link
Member

Thanks for the help! @Zhongheng-Cheng @Vincy1230 @logan2d5 🚀 🙌

@alejsdev alejsdev merged commit 9802b90 into fastapi:master Dec 10, 2024
56 checks passed
@Zhongheng-Cheng Zhongheng-Cheng deleted the translate/cookie_param_models branch December 10, 2024 22:07
s-rigaud pushed a commit to s-rigaud/fastapi that referenced this pull request Jan 23, 2025
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.

4 participants

0