Skip to content

Commit 8ace8e5

Browse files
authored
docs(content): translate meta (#705)
1 parent e607f98 commit 8ace8e5

File tree

1 file changed

+22
-22
lines changed
  • src/content/reference/react-dom/components

1 file changed

+22
-22
lines changed

src/content/reference/react-dom/components/meta.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ canary: true
55

66
<Canary>
77

8-
React's extensions to `<meta>` are currently only available in React's canary and experimental channels. In stable releases of React `<meta>` works only as a [built-in browser HTML component](https://react.dev/reference/react-dom/components#all-html-components). Learn more about [React's release channels here](/community/versioning-policy#all-release-channels).
8+
Ekstensi React pada `<meta>` saat ini hanya tersedia di saluran eksperimental dan canary. Dalam rilis stabil React `<meta>` hanya bekerja sebagai [komponen HTML bawaan](https://react.dev/reference/react-dom/components#all-html-components). Pelajari lebih lanjut tentang [saluran rilis React di sini](/community/versioning-policy#all-release-channels).
99

1010
</Canary>
1111

1212

1313
<Intro>
1414

15-
The [built-in browser `<meta>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta) lets you add metadata to the document.
15+
[Komponen HTML bawaan `<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta) memungkinkan Anda menambahkan metadata ke dokumen.
1616

1717
```js
1818
<meta name="keywords" content="React, JavaScript, semantic markup, html" />
@@ -24,51 +24,51 @@ The [built-in browser `<meta>` component](https://developer.mozilla.org/en-US/do
2424

2525
---
2626

27-
## Reference {/*reference*/}
27+
## Referensi {/*reference*/}
2828

2929
### `<meta>` {/*meta*/}
3030

31-
To add document metadata, render the [built-in browser `<meta>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta). You can render `<meta>` from any component and React will always place the corresponding DOM element in the document head.
31+
Untuk menambahkan metadata dokumen, *render* komponen HTML bawaan `<meta>`. Anda dapat me-*render* `<meta>` dari komponen apa pun dan React akan selalu menempatkan elemen DOM yang sesuai di `<head>` dokumen.
3232

3333
```js
3434
<meta name="keywords" content="React, JavaScript, semantic markup, html" />
3535
```
3636

37-
[See more examples below.](#usage)
37+
[Lihat contoh lebih lanjut di bawah.](#usage)
3838

39-
#### Props {/*props*/}
39+
#### *Props* {/*props*/}
4040

41-
`<meta>` supports all [common element props.](/reference/react-dom/components/common#props)
41+
`<meta>` mendukung semua [*props* elemen pada umumnya.](/reference/react-dom/components/common#props)
4242

43-
It should have *exactly one* of the following props: `name`, `httpEquiv`, `charset`, `itemProp`. The `<meta>` component does something different depending on which of these props is specified.
43+
Elemen ini harus memiliki *setidaknya satu* dari *props* berikut: `name`, `httpEquiv`, `charset`, `itemProp`. Komponen `<meta>` akan menghasilkan hal yang berbeda tergantung dari *props* yang diberikan.
4444

45-
* `name`: a string. Specifies the [kind of metadata](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name) to be attached to the document.
46-
* `charset`: a string. Specifies the character set used by the document. The only valid value is `"utf-8"`.
47-
* `httpEquiv`: a string. Specifies a directive for processing the document.
48-
* `itemProp`: a string. Specifies metadata about a particular item within the document rather than the document as a whole.
49-
* `content`: a string. Specifies the metadata to be attached when used with the `name` or `itemProp` props or the behavior of the directive when used with the `httpEquiv` prop.
45+
* `name`: sebuah string. Menentukan [jenis dari metadata](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name) yang akan dilampirkan ke dokumen.
46+
* `charset`: sebuah string. Menentukan setelan karakter yang akan digunakan dokumen. Nilai yang valid hanyalah `"utf-8"`.
47+
* `httpEquiv`: sebuah string. Menentukan direktif dalam memproses dokumen.
48+
* `itemProp`: sebuah string. Menentukan metadata tentang item tertentu dalam dokumen, bukan dokumen secara keseluruhan.
49+
* `content`: sebuah string. Menentukan metadata yang akan dilampirkan saat digunakan dengan *props* `name` atau `itemProp` atau perilaku direktif saat digunakan dengan *prop* `httpEquiv`.
5050

51-
#### Special rendering behavior {/*special-rendering-behavior*/}
51+
#### Perilaku khusus pe-*render*-an {/*special-rendering-behavior*/}
5252

53-
React will always place the DOM element corresponding to the `<meta>` component within the document’s `<head>`, regardless of where in the React tree it is rendered. The `<head>` is the only valid place for `<meta>` to exist within the DOM, yet it’s convenient and keeps things composable if a component representing a specific page can render `<meta>` components itself.
53+
React akan selalu menempatkan elemen DOM yang terkait dengan komponen `<meta>` di dalam `<head>` dokumen, di mana pun elemen tersebut di-*render* di pohon React. Hanyalah `<head>`tempat yang valid untuk meletakkan `<meta>` di dalam DOM, namun tetap cocok dan membuat semuanya tetap dapat disusun jika komponen yang mewakili halaman tertentu dapat me-*render* komponen `<meta>` itu sendiri.
5454

55-
There is one exception to this: if `<meta>` has an [`itemProp`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemprop) prop, there is no special behavior, because in this case it doesn’t represent metadata about the document but rather metadata about a specific part of the page.
55+
Ada satu pengecualian: jika komponen `<meta>` memiliki sebuah *prop* [`itemProp`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemprop), maka tidak ada perilaku khusus, karena dalam hal ini komponen tersebut tidak mewakili metadata tentang dokumen, melainkan metadata tentang bagian tertentu dari halaman.
5656

5757
---
5858

59-
## Usage {/*usage*/}
59+
## Penggunaan {/*usage*/}
6060

61-
### Annotating the document with metadata {/*annotating-the-document-with-metadata*/}
61+
### Menandai dokumen dengan metadata {/*annotating-the-document-with-metadata*/}
6262

63-
You can annotate the document with metadata such as keywords, a summary, or the author’s name. React will place this metadata within the document `<head>` regardless of where in the React tree it is rendered.
63+
Anda dapat memberikan keterangan dokumen dengan metadata seperti kata kunci, ringkasan, atau nama pembuat. React akan menempatkan metadata ini di dalam dokumen `<head>` terlepas dari di mana metadata tersebut di-*render* di pohon React.
6464

6565
```html
6666
<meta name="author" content="John Smith" />
6767
<meta name="keywords" content="React, JavaScript, semantic markup, html" />
6868
<meta name="description" content="API reference for the <meta> component in React DOM" />
6969
```
7070

71-
You can render the `<meta>` component from any component. React will put a `<meta>` DOM node in the document `<head>`.
71+
Anda dapat me-*render* komponen `<meta>` dari komponen mana pun. React akan meletakkan simpul DOM `<meta>` tersebut di dalam dokumen `<head>`.
7272

7373
<SandpackWithHTMLOutput>
7474

@@ -89,9 +89,9 @@ export default function SiteMapPage() {
8989

9090
</SandpackWithHTMLOutput>
9191

92-
### Annotating specific items within the document with metadata {/*annotating-specific-items-within-the-document-with-metadata*/}
92+
### Menandai item tertentu di dalam dokumen dengan metadata {/*annotating-specific-items-within-the-document-with-metadata*/}
9393

94-
You can use the `<meta>` component with the `itemProp` prop to annotate specific items within the document with metadata. In this case, React will *not* place these annotations within the document `<head>` but will place them like any other React component.
94+
Anda dapat menggunakan komponen `<meta>` dengan *prop* `itemProp` untuk memberi anotasi pada item tertentu dalam dokumen dengan metadata. Dalam hal ini, React tidak akan menempatkan anotasi ini di dalam dokumen `<head>`, melainkan akan menempatkannya seperti komponen React lainnya.
9595

9696
```js
9797
<section itemScope>

0 commit comments

Comments
 (0)