-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
src/content/reference/react-dom/server/renderToReadableStream.md
Outdated
Show resolved
Hide resolved
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
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.
Great! Starting forward we should slowly update our https://github.com/reactjs/zh-hans.react.dev/wiki/The-Glossary-Sheet to reflect those changes.
For references, from https://github.com/vuejs-translations/docs-zh-cn/wiki/%E7%BF%BB%E8%AF%91%E9%A1%BB%E7%9F%A5:
@@ -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`。 |
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.
为什么这里突然是备用方案?
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.
原文就是 fallback……之前给翻译为了「动画」(结合上下文意译了)
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
src/content/reference/react-dom/server/renderToPipeableStream.md
Outdated
Show resolved
Hide resolved
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.
LGTM and thanks for the work!
感觉有的地方如果直接写「后备方案」会有一些机翻,不过好处是整个翻译得到了标准化,我们可以先从这里开始看看大家有没有其他反馈再迭代
规范
fallback
的中文翻译,参见 #1356 。