Skip to content

Commit 408a706

Browse files
committed
fix: update callout + sidebar translations
1 parent 12087d0 commit 408a706

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

src/components/MDX/ExpandableCallout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const variantMap = {
5353
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
5454
},
5555
experimental: {
56-
title: 'Experimental Feature',
56+
title: 'Fitur Eksperimental',
5757
Icon: IconCanary,
5858
containerClasses:
5959
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -86,7 +86,7 @@ const variantMap = {
8686
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
8787
},
8888
rsc: {
89-
title: 'React Server Components',
89+
title: 'Komponen Server React',
9090
Icon: null,
9191
containerClasses: 'bg-blue-10 dark:bg-blue-60 dark:bg-opacity-20',
9292
textColor: 'text-blue-50 dark:text-blue-40',

src/content/learn/setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Setup
2+
title: Pengaturan
33
---
44
<Intro>
55

66
React terintegrasi dengan berbagai alat seperti editor, TypeScript, ekstensi browser, dan kompiler. Bagian ini akan membantu Anda menyiapkan lingkungan Anda.
77

88
</Intro>
99

10-
## Setup editor {/*editor-setup*/}
10+
## Persiapan editor {/*editor-setup*/}
1111

1212
Lihat daftar [editor-editor yang kami rekomendasikan](/learn/editor-setup) dan pelajari cara mengaturnya untuk dapat bekerja dengan React.
1313

@@ -19,9 +19,9 @@ TypeScript adalah cara populer untuk menambahkan definisi *type* ke basis kode J
1919

2020
React Developer Tools adalah pengaya browser (browser extension) yang dapat memeriksa komponen React, mengubah *props* dan *state*, serta mengidentifikasi masalah performa. Pelajari cara memasangnya [di sini](learn/react-developer-tools).
2121

22-
## Kompilator React {/*react-compiler*/}
22+
## Kompiler React {/*react-compiler*/}
2323

24-
Kompilator React adalah perangkat yang secara otomatis mengoptimalkan aplikasi React Anda. [Pelajari lebih lanjut](/learn/react-compiler).
24+
Kompiler React adalah perangkat yang secara otomatis mengoptimalkan aplikasi React Anda. [Pelajari lebih lanjut](/learn/react-compiler).
2525

2626
## Langkah selanjutnya {/*next-steps*/}
2727

src/content/reference/rsc/use-client.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ titleForTitleTag: "'use client' directive"
55

66
<RSC>
77

8-
`'use client'` is for use with [React Server Components](/reference/rsc/server-components).
8+
`'use client'` digunakan dengan [Komponen Server React](/reference/rsc/server-components).
99

1010
</RSC>
1111

1212

1313
<Intro>
1414

15-
`'use client'` lets you mark what code runs on the client.
15+
`'use client'` menandai kode-kode yang dipanggil dari sisi klien.
1616

1717
</Intro>
1818

1919
<InlineToc />
2020

2121
---
2222

23-
## Reference {/*reference*/}
23+
## Referensi {/*reference*/}
2424

2525
### `'use client'` {/*use-client*/}
2626

27-
Add `'use client'` at the top of a file to mark the module and its transitive dependencies as client code.
27+
Tambahkan `'use client'` di bagian atas file untuk menandai modul dan dependensi transitifnya sebagai kode klien.
2828

2929
```js {1}
3030
'use client';
@@ -41,6 +41,10 @@ export default function RichTextEditor({ timestamp, text }) {
4141
}
4242
```
4343

44+
Bila file yang ditandai dengan `'use client'` diimpor dari Komponen Server, [bundler yang kompatibel](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) akan memperlakukan impor modul sebagai batas antara kode yang dijalankan server dan kode yang dijalankan klien.
45+
46+
Sebagai dependensi `RichTextEditor`, `formatDate` dan `Button` juga akan dievaluasi pada klien terlepas dari apakah modulnya berisi arahan `'use client'`. Perhatikan bahwa satu modul dapat dievaluasi pada server saat diimpor dari kode server dan pada klien saat diimpor dari kode klien.
47+
4448
When a file marked with `'use client'` is imported from a Server Component, [compatible bundlers](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) will treat the module import as a boundary between server-run and client-run code.
4549

4650
As dependencies of `RichTextEditor`, `formatDate` and `Button` will also be evaluated on the client regardless of whether their modules contain a `'use client'` directive. Note that a single module may be evaluated on the server when imported from server code and on the client when imported from client code.

src/sidebarLearn.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
]
4040
},
4141
{
42-
"title": "Setup",
42+
"title": "Pengaturan",
4343
"path": "/learn/setup",
4444
"routes": [
4545
{
@@ -55,7 +55,7 @@
5555
"path": "/learn/react-developer-tools"
5656
},
5757
{
58-
"title": "Kompilator React",
58+
"title": "Kompiler React",
5959
"path": "/learn/react-compiler",
6060
"canary": true
6161
}

src/sidebarReference.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
]
312312
},
313313
{
314-
"title": "Static APIs",
314+
"title": "API Statis",
315315
"path": "/reference/react-dom/static",
316316
"routes": [
317317
{
@@ -348,18 +348,18 @@
348348
},
349349
{
350350
"hasSectionHeader": true,
351-
"sectionHeader": "React Server Components"
351+
"sectionHeader": "Komponen Server React"
352352
},
353353
{
354-
"title": "Server Components",
354+
"title": "Komponen Server",
355355
"path": "/reference/rsc/server-components"
356356
},
357357
{
358-
"title": "Server Functions",
358+
"title": "Fungsi Server",
359359
"path": "/reference/rsc/server-functions"
360360
},
361361
{
362-
"title": "Directives",
362+
"title": "Direktif",
363363
"path": "/reference/rsc/directives",
364364
"routes": [
365365
{

0 commit comments

Comments
 (0)