Skip to content

docs: translate suspense page #523

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

Closed
wants to merge 0 commits into from

Conversation

maulanasdqn
Copy link
Contributor

Closes #416

Description

Translate the Suspense page.
Page URL: https://id.react.dev/reference/react/Suspense

@r17x
Copy link
Collaborator

r17x commented May 3, 2023

Any updates woody? @maulanasdqn

@maulanasdqn
Copy link
Contributor Author

wait buzz @r17x

* `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.
* `children`: UI aktual yang ingin Anda render. Jika `children` ditangguhkan sewaktu merender, batas Suspense akan beralih merender `fallback`.
* `fallback`: UI alternatif untuk dirender menggantikan UI yang sebenarnya jika belum selesai dimuat. Setiap node React yang valid akan diterima, meskipun dalam praktiknya, fallback adalah tampilan placeholder yang ringan, Suspense akan secara otomatis beralih ke `fallback` ketika `children` ditangguhkan, dan kembali ke `children` ketika datanya sudah siap. Jika `fallback` ditangguhkan sewaktu melakukan rendering, itu akan mengaktifkan induk terdekat dari batas Suspense.

#### Caveats {/*caveats*/}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Caveats -> Catatan Penting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

notes bang @r17x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kalau Props apa bang?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Props aja tapi dibikin miring (italiano is no mexico)

@maulanasdqn
Copy link
Contributor Author

gan udh beres minta riview nya @r17x

Copy link
Collaborator

@r17x r17x left a comment

Choose a reason for hiding this comment

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

Boleh diperiksa kembali, beberapa line kebawah yang mirip dengan permintaan perubahan ini #523 (comment).

* `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* {/*props*/}
* `children`: UI aktual yang ingin Anda render. Jika `children` ditangguhkan sewaktu merender, batas Suspense akan beralih merender `fallback`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* `children`: UI aktual yang ingin Anda render. Jika `children` ditangguhkan sewaktu merender, batas Suspense akan beralih merender `fallback`.
* `children`: UI aktual yang ingin Anda *render*. Jika `children` ditangguhkan sewaktu me-*render*, batas Suspense akan beralih me-*render* `fallback`.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oke bang

@maulanasdqn
Copy link
Contributor Author

bang cekin bang tulung @r17x

Copy link
Collaborator

@r17x r17x left a comment

Choose a reason for hiding this comment

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

Beberapa perubahan kecil menghasilkan perubahan besar 🙏

@@ -4,7 +4,7 @@ title: <Suspense>

<Intro>

`<Suspense>` lets you display a fallback until its children have finished loading.
`<Suspense>` memungkinkan Anda menampilkan fallback sampai komponen children selesai dimuat.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
`<Suspense>` memungkinkan Anda menampilkan fallback sampai komponen children selesai dimuat.
`<Suspense>` memungkinkan Anda menampilkan fallback sampai komponen anaknya selesai dimuat.

Based on glossary https://github.com/reactjs/id.react.dev/wiki/Glosarium#c

Lihat juga beberapa kata lain, jika konteksnya hampir sama (kecuali bagian dari API)

cc @mhaidarhanif

Copy link
Collaborator

Choose a reason for hiding this comment

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

Iya betul jadi seperti itu.

Copy link
Collaborator

@r17x r17x left a comment

Choose a reason for hiding this comment

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

Beberapa perubahan kecil menghasilkan perubahan besar 🙏

@r17x
Copy link
Collaborator

r17x commented Jun 29, 2023

Any updates @maulanasdqn

@chez14
Copy link
Contributor

chez14 commented Jul 30, 2023

Hi @maulanasdqn, any updates? I'm willing to take over this PR if you're currently busy with other stuffs.

@maulanasdqn
Copy link
Contributor Author

hii @chez14 iam sorry for this, yes you can Continue this issue, cuz i have so many task

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.

<Suspense>
4 participants