-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs(i18n-id): translate generateCpuProfile.md until isolatedModules.md into indonesian #1173
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
Conversation
Thanks for the PR! This section of the codebase is owned by @jefrydco, @nusendra, @mazipan, and @mandaputtra - if they write a comment saying "LGTM" then it will be merged. |
oneline: "Pastikan setiap berkas dapat dilihat dengan aman tanpa bergantung pada impor lain" | ||
--- | ||
|
||
Meskipun Anda dapat menggunakan TypeScript untuk menghasilkan ke kode JavaScript, penggunaan transpiler lain seperti [Babel](https://babeljs.io) juga umum untuk dilakukan. Namun, transpiler lain hanya beroperasi di satu berkas pada satu waktu, yang berarti mereka tidak dapat menerapkan transformasi kode yang bergantung pada pemahaman sistem tipe penuh. |
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.
transpiler
-> _transpiler_
|
||
Itu tidak mengubah kode Anda atau mengubah perilaku proses pemeriksaan dan mengecek kode TypeScript. | ||
|
||
Beberapa contoh kode yang tidak berfungsi saat `terisolasiModules` diaktifkan. |
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.
terisolasiModules
ini kayaknya istilah teknis di TypeScript, konteks bahasa inggrisnya apakah?
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.
Gak udah diterjemahkan kalau istilah teknis, malah bingung
@@ -72,5 +72,5 @@ declare const enum Numbers { | |||
console.log(Numbers.Zero + Numbers.One); | |||
``` | |||
|
|||
Tanpa pengetahuan tentang nilai anggota ini, transpiler lain tidak dapat menggantikan referensi ke `Number`, yang akan menjadi galat dijalankan jika dibiarkan (karena tidak ada objek `Numbers` pada waktu proses). | |||
Tanpa pengetahuan tentang nilai anggota ini, _transpiler_ lain tidak dapat menggantikan referensi ke `Number`, yang akan menjadi galat dijalankan jika dibiarkan (karena tidak ada objek `Numbers` pada waktu proses). | |||
Karena itu, ketika `isolatedModules` dipilih, akan terjadi kesalahan yang mereferensikan anggota `const enum` disekelilingnya. |
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.
di sekelilingnya, bukan disekelilingnya
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.
Masih ada beberapa kalimat yang pas dibaca utuh jadi kehilangan konteks dan maknanya.
Minta bantuan untuk proof read lagi dong @jefrydco @mandaputtra
npm run tsc --generateCpuProfile tsc-output.cpuprofile | ||
``` | ||
|
||
Berkas ini dapat dibuka di browser berbasis chromium seperti Chrome atau Edge Developer di [Riwayat CPU](https://developers.google.com/web/tools/chrome-devtools/rendering-tools/js-execution) bagian. |
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.
Browser = peramban
|
||
Jika `importHelpers` kode ini aktif, fungsi penunjang ini diimpor dari [tslib](https://www.npmjs.com/package/tslib) modul. | ||
Anda perlu memastikan bahwa berkas `tslib` modul dapat diimpor saat dijalankan. | ||
Ini hanya mempengaruhi modul; berkas kode tidak akan mencoba mengimpor modul. |
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.
Ini intended menggunakan titik koma (;
) bukan (,
)?
Soalnya di ejaan bahasa Indonesia rada jarang kita menggunakan titik koma.
Apa kita ganti aja pakai koma ya?
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.
Baik, siap mas @mazipan
|
||
Kode ini mengontrol cara kerja `import`, ada 3 opsi berbeda: | ||
|
||
- `remove`: Perilaku umum menghapus pernyataan `import` yang hanya acuan kata. |
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.
Perilaku umum untuk menghapus penyataan impor
yang hanya merupakan acuan dari kata.
|
||
- `remove`: Perilaku umum menghapus pernyataan `import` yang hanya acuan kata. | ||
|
||
- `preserve`: Mempertahankan semua pernyataan `import` yang nilai atau kata tidak pernah digunakan. Hal ini dapat menyebabkan impor/efek samping yang dipertahankan. |
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.
Mempertahankan semua pernyataan import
yang nilai atau katanya tidal pernah digunakan. Hal ini dapat menyebabkan impor/efek samping yang tetap dipertahankan.
|
||
- `preserve`: Mempertahankan semua pernyataan `import` yang nilai atau kata tidak pernah digunakan. Hal ini dapat menyebabkan impor/efek samping yang dipertahankan. | ||
|
||
- `error`: Ini mempertahankan semua impor (sama seperti pilihan), tetapi akan mengalami galat saat impor nilai hanya digunakan sebagai kata. Ini mungkin berguna jika Anda ingin memastikan tidak ada nilai yang diimpor secara tidak sengaja, tetapi tetap membuat impor dengan jelas. |
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.
nilai hanya digunakan sebagai kata, ini bahasa Inggrisnya apa?
Saya curiga ini sepertinya mengacu pada istilah teknis di TypeScript.
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.
but will error when a value import is only used as a type.
ini bahasa inggris nya mas .
Bagaimana ?
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.
tetapi akan terjadi galat ketika nilai impor hanya digunakan sebagai tipe data.
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.
Kayaknya sering terjadi miskonsepsi type
istilah teknis di TypeScript dengan type yg lain
└── yarn.lock | ||
``` | ||
|
||
`include` dan `exclude` mendukung karakter untuk membuat contoh umum: |
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.
Global disini maksudnya npm package global gak sih?
Sabar ya mas, ini banyak kalimat yang cukup susah. |
Baik siap mas @mazipan . |
--- | ||
|
||
Memberi tahu TypeScript untuk menyimpan informasi tentang grafik proyek dari kompilasi terakhir ke berkas yang disimpan di penyimpanan. Ini | ||
membuat serangkaian berkas `.tsbuildinfo` di folder yang sama dengan keluaran kompilasi Anda. Mereka tidak menggunakan JavaScript saat runtime dan dapat dihapus dengan aman. Anda dapat membaca lebih lanjut di [3.4 release notes](/docs/handbook/release-notes/typescript-3-4.html#faster-subsequent-builds-with-the---incremental-flag). |
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.
Ini memang versi bahasa Inggrisnya ditaruh di baris baru kah?
disimpan di penyimpanan. Ini
membuat serangkaian berkas
atau
disimpan di penyimpanan. Ini membuat serangkaian berkas
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.
iya betul mas, maaf typo
Batasan ini dapat menyebabkan masalah waktu proses dengan beberapa fitur TypeScript seperti `const enum`s dan `namespace`s. | ||
Pilihan `isolatedModules` memberi tahu TypeScript untuk memperingatkan Anda jika menulis kode tertentu yang tidak dapat diartikan dengan benar oleh proses transpilasi berkas tunggal. | ||
|
||
Itu tidak mengubah kode Anda atau mengubah perilaku proses pemeriksaan dan mengecek kode TypeScript. |
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.
dan mengecek kode TypeScript itu konteks bahasa Inggrisnya apakah? Mungkin lebih cocok kalau pemeriksaan dan pengecekan kode TypeScript
export { someFunction }; | ||
``` | ||
|
||
_Transpiler_ satu berkas tidak tahu apakah `someType` menghasilkan nilai atau tidak, jadi adalah kesalahan untuk mengekspor nama yang hanya merujuk ke sebuah tipe. |
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.
jadi adalah kesalahan untuk mengekspor
itu konteks bahasa Inggrisnya apakah?
|
||
#### Non-Module Files | ||
|
||
Jika `isolatedModules` dipilih, semua berkas implementasi harus dalam _modules_ (yang berarti memiliki beberapa bentuk `import` / `export`). Kesalahan terjadi jika berkas: |
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.
Kesalahan
ini errors
bukan di Bahasa Inggrisnya? Kalau iya mungkin bisa dipadankan dengan galat
. Sama minta tolong dicek di bagian yg lain juga ya, kalau ada error
dipadankan dengan galat
npm run tsc --generateCpuProfile tsc-output.cpuprofile | ||
``` | ||
|
||
Berkas ini dapat dibuka di peramban berbasis chromium seperti Chrome atau Edge Developer di [Riwayat CPU](https://developers.google.com/web/tools/chrome-devtools/rendering-tools/js-execution) bagian. |
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.
kata "bagian" mestinya sebelum "Riwayat CPU" dong
oneline: "Izinkan mengimpor fungsi penunjang satu kali per proyek, termasuk menyertakan per-berkas" | ||
--- | ||
|
||
Untuk operasi penurunan tingkat tertentu, TypeScript menggunakan beberapa kode penunjang untuk operasi seperti memperluas kelas, menyebarkan susunan atau objek, dan menyambungkan operasi. |
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.
menyebarkan ini spread kan? mending ditambahkan kata aslinya soalnya ini juga istilah di JS.
Jadi:
menyebarkan (spread)
susunan ini array kan?
memang kita terjemahkan jadi susunan ya @jefrydco?
Saya pernah review ada yang diterjemahkan ke himpunan deh.
Mana yang benar?
@@ -0,0 +1,46 @@ | |||
--- | |||
display: "Impor Penunjang" | |||
oneline: "Izinkan mengimpor fungsi penunjang satu kali per proyek, termasuk menyertakan per-berkas" |
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.
penunjang ini apa sih bahasa Inggrisnya?
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.
Import Helpers
mas.
saya sudah merubah itu dengan mengembalikan ke kalimat bahasa inggris nya mas
@@ -0,0 +1,9 @@ | |||
--- | |||
display: "Tambahan" |
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.
Ini bikin saya bingung deh karena opsinya pada diterjemahkan begini.
Memang kita terjemahkan ya @jefrydco?
Ada web yang bisa kita cek live nya gak sih buat web v2 ini?
mohon maaf banget kalau masih banyak kesalahan translate nya mas @mazipan . |
Santai, sama-sama belajar. |
hehehe |
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.
Ada beberapa masukan bung @zaiinhs , Sama kalau misal bikin PR lagi jangan banyak - banyak ya file-nya, 1 - 3 aja haha. Kasihan saya yang review 😆
|
||
- `preserve`: Mempertahankan semua pernyataan `import` yang nilai atau katanya tidak pernah digunakan. Hal ini dapat menyebabkan impor/efek samping yang tetap dipertahankan. | ||
|
||
- `error`: Ini mempertahankan semua impor (sama seperti pilihan), tetapi akan mengalami galat jika impor nilai hanya digunakan sebagai _tipe_. Ini mungkin berguna jika Anda ingin memastikan tidak ada nilai yang diimpor secara tidak sengaja, tetapi tetap membuat impor dengan jelas. |
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.
- `error`: Ini mempertahankan semua impor (sama seperti pilihan), tetapi akan mengalami galat jika impor nilai hanya digunakan sebagai _tipe_. Ini mungkin berguna jika Anda ingin memastikan tidak ada nilai yang diimpor secara tidak sengaja, tetapi tetap membuat impor dengan jelas. | |
- `error`: Ini mempertahankan semua impor (sama seperti pilihan), tetapi akan mengalami galat jika impor nilai hanya digunakan sebagai tipe data. Ini mungkin berguna jika Anda ingin memastikan tidak ada nilai yang diimpor secara tidak sengaja, tetapi tetap membuat impor dengan jelas. |
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.
hehheh
oke oke siap mas.
Maaf ya
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.
@zaiinhs santai ajah hahah, kalau semisal sudah diperbaiki bisa dipejet resolve
di pembicaraan ini biar maintainer tau kalau yang di request sudah dikerjakan.
@@ -0,0 +1,66 @@ | |||
--- | |||
display: "Memasukkan" |
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.
display: "Memasukkan" | |
display: "Disertakan (_Include_)" |
@@ -0,0 +1,76 @@ | |||
--- | |||
display: "Isolated Modules" |
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.
display: "Isolated Modules" | |
display: "Modul Terisolasi (_Isolated Modules_)" |
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.
Oke dari saya, tunggu dari mas @mandaputtra ya
LGTM! |
Merging because @jefrydco is a code-owner of all the changes - thanks! |
Overview
This is part of #938
Changes
Translate for files: