-
Notifications
You must be signed in to change notification settings - Fork 125
Finished translation of Suspense page #556
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
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! 🙌 |
Thanks for the PR! I'll do a review a little bit later, as there are already another two big PRs submitted earlier which are waiting for the review. |
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.
Перша частина перевірки
* `children`: Реальний UI, який ви хочете відрендерити. Якщо `children` затримується під час рендерингу, межа Suspense перемкнеться на рендер `fallback`. | ||
* `fallback`: Альтернативний UI, який рендериться замість справжнього UI, якщо той ще не завершив завантаження. Будь-який валідний React-вузол приймається, хоча на практиці, запасний варіант є легким заповнювачем, таким як спінер чи скелетон. Suspense автоматично перемкнеться на `fallback`, коли `children` затримується, і назад на `children`, коли дані будуть готові. Якщо `fallback` затримується під час рендеру, найближча батьківська межа Suspense буде активована. |
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.
Треба або в двох використовувати "реальний UI", або "справжній UI", щоб був однаковий переклад для "actual UI". Також я б переклала як "бажаний UI" або "очікуваний UI", щоб краще передати суть.
* `children`: The actual UI you intend to render. If `children` suspends while rendering, the Suspense boundary will switch to rendering `fallback`. | ||
* `fallback`: An alternate UI to render in place of the actual UI if it has not finished loading. Any valid React node is accepted, though in practice, a fallback is a lightweight placeholder view, such as a loading spinner or skeleton. Suspense will automatically switch to `fallback` when `children` suspends, and back to `children` when the data is ready. If `fallback` suspends while rendering, it will activate the closest parent Suspense boundary. | ||
#### Пропси {/*props*/} | ||
* `children`: Реальний UI, який ви хочете відрендерити. Якщо `children` затримується під час рендерингу, межа Suspense перемкнеться на рендер `fallback`. |
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.
* `children`: Реальний UI, який ви хочете відрендерити. Якщо `children` затримується під час рендерингу, межа Suspense перемкнеться на рендер `fallback`. | |
* `children`: Реальний UI, який ви хочете відрендерити. Якщо `children` затримується (suspends) під час рендерингу, межа (boundary) Suspense перемкнеться на рендер `fallback`. |
Я погоджуюсь тут із boundary як межа і suspend як затримувати, просто додамо на першому входженні оригінал для розуміння
p.s. чому suspend не призупиняти? є якийсь окремий підтекст чи пояснення?
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.
Друга частина перевірки: усі ці та попередні зауваження мають бути виправлені у всьому PR.
Третя частина перевірки буде після злиття #564 і виправлень першої і другої частини перевірки цього PR - інакше у мене накладається складність коректури одного і того самого
926ffa8
to
bd5f734
Compare
Дякую за рев'ю.
|
bd5f734
to
2b508a2
Compare
@GeorgeShvab можеш ребейзнути? |
2b508a2
to
2ac4731
Compare
@alinkedd ребейзнув |
Apologies for the long time this translation has taken.
Translated "fallback" as "запасний варіант" according to the glossary. I considered other variants but couldn't find a more suitable option.