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

docs(cn): standardize the translations of the word fallback #1360

Merged
merged 11 commits into from
Oct 30, 2023

Conversation

Yucohny
Copy link
Collaborator

@Yucohny Yucohny commented Oct 25, 2023

规范 fallback 的中文翻译,参见 #1356

@github-actions
Copy link

github-actions bot commented Oct 25, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Huxpro
Huxpro previously approved these changes Oct 25, 2023
Copy link
Member

@Huxpro Huxpro left a comment

Choose a reason for hiding this comment

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

@@ -253,7 +253,7 @@ function ProfilePage() {
}
```

这样做将通知 React 在 `Posts` 加载数据之前就开始流式传输 HTML。React 首先会发送加载动画(`PostsGlimmer`)对应的 HTML,然后当 `Posts` 的数据加载完成时,React 会将剩下的 HTML 带上一个 `<script>` 标签一并发送,这个 `<script>` 的作用是将加载动画替换为这段 HTML。从用户的角度上看,页面上首先出现的是 `PostsGlimmer`,稍后被替换为 `Posts`。
这样做将通知 React 在 `Posts` 加载数据之前就开始流式传输 HTML。React 首先会发送加载中的备用方案(`PostsGlimmer`)对应的 HTML,然后当 `Posts` 的数据加载完成时,React 会将剩下的 HTML 带上一个 `<script>` 标签一并发送,这个 `<script>` 的作用是将加载中的备用方案替换为这段 HTML。从用户的角度上看,页面上首先出现的是 `PostsGlimmer`,稍后被替换为 `Posts`。
Copy link
Member

Choose a reason for hiding this comment

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

为什么这里突然是备用方案?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

原文就是 fallback……之前给翻译为了「动画」(结合上下文意译了)

awxiaoxian2020
awxiaoxian2020 previously approved these changes Oct 25, 2023
Copy link
Member

@Huxpro Huxpro left a comment

Choose a reason for hiding this comment

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

LGTM and thanks for the work!

感觉有的地方如果直接写「后备方案」会有一些机翻,不过好处是整个翻译得到了标准化,我们可以先从这里开始看看大家有没有其他反馈再迭代

@Yucohny Yucohny merged commit 5f84f02 into reactjs:main Oct 30, 2023
@Yucohny Yucohny deleted the fallback branch November 8, 2023 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants