Skip to content

Translate page declaration #1137

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
68 changes: 0 additions & 68 deletions package.json

This file was deleted.

17 changes: 9 additions & 8 deletions packages/tsconfig-reference/copy/en/options/declaration.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
---
display: "Declaration"
oneline: "Emit d.ts files for referenced files in the project"
oneline: "Emit file d.ts untuk file referensi dalam proyek"
---

Generate `.d.ts` files for every TypeScript or JavaScript file inside your project.
These `.d.ts` files are type definition files which describe the external API of your module.
With `.d.ts` files, tools like TypeScript can provide intellisense and accurate types for un-typed code.
Buat file `.d.ts` untuk setiap file TypeScript atau JavaScript di dalam proyek Anda.
File `.d.ts` ini adalah file definisi tipe yang menjelaskan API eksternal modul Anda.
Dengan file `.d.ts`, alat seperti TypeScript dapat menyediakan tipe yang masuk akal dan akurat untuk kode yang tidak diketik.

When `declaration` is set to `true`, running the compiler with this TypeScript code:
Jika `declaration` disetel ke` true`, jalankan compiler dengan kode TypeScript:

```ts twoslash
export let helloWorld = "hi";
```

Will generate an `index.js` file like this:
Akan menghasilkan file `index.js` seperti ini:

```ts twoslash
// @showEmit
export let helloWorld = "hi";
```

With a corresponding `helloWorld.d.ts`:
Dengan `helloWorld.d.ts` yang sesuai:


```ts twoslash
// @showEmittedFile: index.d.ts
Expand All @@ -29,4 +30,4 @@ With a corresponding `helloWorld.d.ts`:
export let helloWorld = "hi";
```

When working with `.d.ts` files for JavaScript files you may want to use [`emitDeclarationOnly`](#emitDeclarationOnly) or use [`outDir`](#outDir) to ensure that the JavaScript files are not overwritten.
Saat bekerja dengan file `.d.ts` untuk file JavaScript, Anda mungkin ingin menggunakan [`emitDeclarationOnly`](#emitDeclarationOnly) atau menggunakan [`outDir`](#outDir) untuk memastikan bahwa file JavaScript tidak ditimpa.
8 changes: 4 additions & 4 deletions packages/tsconfig-reference/copy/en/options/declarationDir.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
display: "Declaration Dir"
oneline: "Set the root directory for d.ts files to go"
oneline: "Atur direktori root untuk file d.ts yang akan dituju"
---

Offers a way to configure the root directory for where declaration files are emitted.
Menawarkan cara untuk mengconfigurasi direktori root tempat file deklarasi dipancarkan.

```
example
Expand All @@ -12,7 +12,7 @@ example
└── tsconfig.json
```

with this `tsconfig.json`:
dengan `tsconfig.json`:

```json tsconfig
{
Expand All @@ -23,7 +23,7 @@ with this `tsconfig.json`:
}
```

Would place the d.ts for the `index.ts` in a `types` folder:
Akan menempatkan d.ts untuk `index.ts` di folder` types`:

```
example
Expand Down
8 changes: 4 additions & 4 deletions packages/tsconfig-reference/copy/en/options/declarationMap.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
display: "Declaration Map"
oneline: "Create sourcemaps for d.ts files"
oneline: "Buat peta sumber untuk d.ts"
---

Generates a source map for `.d.ts` files which map back to the original `.ts` source file.
This will allow editors such as VS Code to go to the original `.ts` file when using features like _Go to Definition_.
Menghasilkan peta sumber untuk file `.d.ts` yang dipetakan kembali ke file sumber` .ts` asli.
Ini akan memungkinkan editor seperti VS Code untuk membuka file `.ts` asli saat menggunakan fitur seperti _Go to Definition_.

You should strongly consider turning this on if you're using project references.
Anda harus sangat mempertimbangkan untuk mengaktifkan ini jika Anda menggunakan referensi proyek.
6 changes: 3 additions & 3 deletions packages/tsconfig-reference/copy/en/options/diagnostics.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
display: "Diagnostics"
oneline: "Output additional information after a compile"
oneline: "Keluarkan informasi tambahan setelah kompilasi"
---

Used to output diagnostic information for debugging. This command is a subset of [`extendedDiagnostics`](#extendedDiagnostics) which are more user-facing results, and easier to interpret.
Digunakan untuk mengeluarkan informasi diagnostik untuk debugging. Perintah ini adalah subset dari [`extendedDiagnostics`](#extendedDiagnostics) yang lebih merupakan hasil yang dilihat pengguna, dan lebih mudah ditafsirkan.

If you have been asked by a TypeScript compiler engineer to give the results using this flag in a compile, in which there is no harm in using [`--extendedDiagnostics`](#extendedDiagnostics) instead.
Jika Anda telah diminta oleh engineer kompilator TypeScript untuk memberikan hasil menggunakan tanda ini dalam sebuah kompilasi, di mana tidak ada salahnya menggunakan [`--extendedDiagnostics`](# extendedDiagnostics) sebagai gantinya.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
display: "disableReferencedProjectLoad"
oneline: "Reduces the number of projects loaded automatically by TypeScript"
oneline: "Mengurangi jumlah proyek yang dimuat secara otomatis oleh TypeScript"
---

In multi-project TypeScript programs, TypeScript will load all of the available projects into memory in order to provide accurate results for editor responses which require a full knowledge graph like 'Find All References'.
Dalam program TypeScript multi-proyek, TypeScript akan memuat semua proyek yang tersedia ke dalam memori untuk memberikan hasil yang akurat untuk tanggapan editor yang memerlukan grafik pengetahuan lengkap seperti 'Temukan Semua Referensi'.

If your project is large, you can use the flag `disableReferencedProjectLoad` to disable the automatic loading of all projects. Instead, projects are loaded dynamically as you open files through your editor.
Jika project Anda besar, Anda dapat menggunakan flag `disableReferencedProjectLoad` untuk menonaktifkan pemuatan otomatis semua project. Sebaliknya, proyek dimuat secara dinamis saat Anda membuka file melalui editor Anda.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
display: "Disable Size Limit"
oneline: "Remove the memory cap on the TypeScript language server"
display: "Nonaktifkan Batas Ukuran"
oneline: "Lepaskan tutup memori pada server bahasa TypeScript"
---

To avoid a possible memory bloat issues when working with very large JavaScript projects, there is an upper limit to the amount of memory TypeScript will allocate. Turning this flag on will remove the limit.
Untuk menghindari kemungkinan masalah pembengkakan memori saat bekerja dengan proyek JavaScript yang sangat besar, ada batas atas jumlah memori yang akan dialokasikan TypeScript. Mengaktifkan bendera ini akan menghapus batas.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
display: "Disable Source Project Reference Redirect"
oneline: "Use d.ts files as the source of truth for tooling between composite project boundries"
# display: "Disable Source Project Reference Redirect"
display: "Nonaktifkan Pengalihan Referensi Proyek Sumber"
# oneline: "Use d.ts files as the source of truth for tooling between composite project boundries"
oneline: "Gunakan file d.ts sebagai sumber kebenaran untuk perkakas antara batasan proyek gabungan"
---

When working with [composite TypeScript projects](/docs/handbook/project-references.html), this option provides a way to go [back to the pre-3.7](/docs/handbook/release-notes/typescript-3-7.html#build-free-editing-with-project-references) behavior where d.ts files were used to as the boundaries between modules.
In 3.7 the source of truth is now your TypeScript files.
Saat bekerja dengan [proyek Typescript komposit](/docs/handbook/project-references.html), opsi ini menyediakan cara untuk kembali [kembali ke pra-3.7](/docs/handbook/release-notes/typescript-3-7.html#build-free-editing-with-project-references) di mana file d.ts digunakan sebagai batas antar modul.
Di 3.7 sumber kebenaran sekarang adalah file TypeScript Anda.