-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docs(i18n-id): Provide Indonesian translation for documentation #1260
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
…md, Decorators.md - Mixins.md, Babel with TypeScript.md - TypeScript Tooling in 5 minutes.md
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. |
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.
@xen0m29 ada beberapa kata yang harus diperbarui, seperti berikut yang saya temui:
- anda menjadi Anda
- default menjadi
nilai anggapan
ataunilai bawaan
- error menjadi kesalahan
- folder menjadi direktori
- file menjadi berkas
- property menjadi properti
mungkin ini yang saya temui dan harus di ubah, silakan diskusikan untuk ini
## Memperbarui IDE-mu untuk menggunakan nightly builds | ||
|
||
Anda juga dapat memperbarui IDE-mu untuk menggunakan nightly drop. | ||
Pertama, anda akan perlu untuk memasang package melalui npm. |
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.
penulisan anda menjadi Anda
|
||
Anda juga dapat memperbarui IDE-mu untuk menggunakan nightly drop. | ||
Pertama, anda akan perlu untuk memasang package melalui npm. | ||
Anda juga dapat memasang npm package secara global atau pada folder `node_modules` di dalam proyek-mu. |
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.
folder bisa menjadi direktori
|
||
### Sublime Text | ||
|
||
Perbarui file `Settings - User` dengan cara berikut: |
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.
file bisa menjadi berkas
|
||
## `@ts-check` | ||
|
||
Baris terakhir dari contoh kode sebelumnya akan menimbulkan kesalahan dalam TypeScript, tetapi tidak secara default dalam proyek JS. |
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.
default bisa menjadi nilai anggapan
atau nilai bawaan
Jika anda memiliki banyak file JavaScript yang ingin ditambahkan pemeriksaan error-nya, anda bisa beralhir menggunakan [`jsconfig.json`](/docs/handbook/tsconfig-json.html). | ||
Dengan begitu, anda tidak perlu menambahkan `// @ts-nocheck` di tiap file-nya. | ||
|
||
TypeScript mungkin memberikan error yang kamu tidak sepakati. Pada kasus tersebut, anda bisa membiarkan error itu spesifik dibaris manapun dengan menambahkan `// @ts-ignore` atau `// @ts-expect-error`. |
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 bisa menjadi kesalahan
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 padanannya adalah "galat"
https://github.com/isatrio/Panduan-Penerjemahan/blob/master/glosarium.md#e
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.
@mandaputtra oke mas
} | ||
``` | ||
|
||
mengimpor type juga dapat digunakan di deklarasi type alias: |
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.
type menjadi tipe
myPet.name; | ||
``` | ||
|
||
Mengimpor type dapat digunakan untuk mendapatkan type nilai dari module, jika Anda tidak mengetahui jenisnya, atau jika nilai tersebut memiliki type yang besar yang dapat mengganggu untuk diketik: |
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.
module menjadi modul
``` | ||
|
||
`@params` memperbolehkan sintaks yang serupa untuk spesifikasi type-nya. | ||
Perhatikan bahwa nama nested property harus diawali dengan nama parameternya: |
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.
nested property menjadi properti _nested_
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.
Saya review 3 File dulu nanti saya teruskan lagi.
- Nightly Builds
- Creating DTS File
- Intro to JS with TS
- JSDoc reference
translatable: true | ||
--- | ||
|
||
Nightly build dari branch [master TypeScript](https://github.com/Microsoft/TypeScript/tree/master) diterbitkan pada tengah malam, di zona waktu PST ke npm. |
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.
Nightly build dari branch [master TypeScript](https://github.com/Microsoft/TypeScript/tree/master) diterbitkan pada tengah malam, di zona waktu PST ke npm. | |
_Nightly build_ dari _branch_ [master TypeScript](https://github.com/Microsoft/TypeScript/tree/master) diterbitkan pada tengah malam, di zona waktu PST ke npm. |
|
||
> Catatan: Sebagian besar perubahan tidak mengharuskan anda untuk memasang versi terbaru dari plugin VS TypeScript. | ||
|
||
Saat ini, Nightly build tidak menyertakan plugin secara lengkap, tapi kami sedang mengupayakan untuk menerbitkan sebuah installer di nightly. |
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.
Saat ini, Nightly build tidak menyertakan plugin secara lengkap, tapi kami sedang mengupayakan untuk menerbitkan sebuah installer di nightly. | |
Saat ini, Nightly build tidak menyertakan plugin secara lengkap, tapi kami sedang mengupayakan untuk menerbitkan sebuah installer di _nightly_. |
Semua yang mengandung unsur bahasa asing tolong dicetak miring 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.
Masih ada beberapa bahasa inggris yang belum di cetak miring ya.
|
||
Saat ini, Nightly build tidak menyertakan plugin secara lengkap, tapi kami sedang mengupayakan untuk menerbitkan sebuah installer di nightly. | ||
|
||
1. Unduh skrip [VSDevMode.ps1](https://github.com/Microsoft/TypeScript/blob/master/scripts/VSDevMode.ps1) script. |
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.
1. Unduh skrip [VSDevMode.ps1](https://github.com/Microsoft/TypeScript/blob/master/scripts/VSDevMode.ps1) script. | |
1. Unduh kode [VSDevMode.ps1](https://github.com/Microsoft/TypeScript/blob/master/scripts/VSDevMode.ps1) kode. |
|
||
Untuk menambahkan pembuatan file .d.ts di proyekmu, Anda perlu melakukan hingga empat langkah: | ||
|
||
- Tambahkan TypeScript ke dependensi dev Anda |
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.
- Tambahkan TypeScript ke dependensi dev Anda | |
- Tambahkan TypeScript ke dependensi _dev_ Anda |
|
||
### TSConfig | ||
|
||
TSConfig adalah file jsonc yang mengkonfigurasi kedua flag compiler Anda, dan menyatakan di mana mencari file. |
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.
TSConfig adalah file jsonc yang mengkonfigurasi kedua flag compiler Anda, dan menyatakan di mana mencari file. | |
TSConfig adalah file jsonc yang mengkonfigurasi kedua _flag_ compiler Anda, dan menyatakan di mana mencari file. |
|
||
```json5 | ||
{ | ||
// Change this to match your project |
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.
komentar pada kode juga harus diterjemahkan
Jika anda memiliki banyak file JavaScript yang ingin ditambahkan pemeriksaan error-nya, anda bisa beralhir menggunakan [`jsconfig.json`](/docs/handbook/tsconfig-json.html). | ||
Dengan begitu, anda tidak perlu menambahkan `// @ts-nocheck` di tiap file-nya. | ||
|
||
TypeScript mungkin memberikan error yang kamu tidak sepakati. Pada kasus tersebut, anda bisa membiarkan error itu spesifik dibaris manapun dengan menambahkan `// @ts-ignore` atau `// @ts-expect-error`. |
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 padanannya adalah "galat"
https://github.com/isatrio/Panduan-Penerjemahan/blob/master/glosarium.md#e
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.
Terima kasih banyak kontribusinya @xen0m29, namun sedikit saran juga minta tolong kedepannya pull request-nya dipecah menjadi pull request yang lebih kecil (memuat perubahan berkas yang tidak terlalu banyak), supaya teman-teman bisa review dengan lebih cermat. Dan jangan capek-capek untuk kontribusi ya 🙏
Anda bisa mempelajari bagaimana melakukan ini di [halaman pemasangan](/download) TypeScript kami. | ||
Anda perlu memastikan file-file ini disertakan dalam package Anda jika Anda memiliki file dalam `gitignore` proyek Anda. | ||
|
||
## Meng-edit file package.json |
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.
meng-edit
-> menyunting
file
-> berkas
## Meng-edit file package.json | ||
|
||
TypeScript mereplikasi resolusi node untuk modul di `package.json`, dengan langkah tambahan untuk menemukan file .d.ts. | ||
Secara kasar, resolusi pertama-tama akan memeriksa bidang `"types"` opsional, kemudian bidang `"main"`, dan terakhir akan mencoba `index.d.ts` di root. |
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.
Secara kasar
ini konteks dalam bahasa Inggrisnya apakah? Mungkin lebih tepat Secara garis besar
.
resolusi pertama-tama akan memeriksa bidang `"types"` opsional
mungkin lebih cocok
Pertama-tama resolusi akan memeriksa bagian "types" yang opsional
@@ -0,0 +1,70 @@ | |||
--- | |||
title: JS Projects Utilizing 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.
Ini judulnya belum diterjemahkan
title: JS Projects Utilizing TypeScript | ||
layout: docs | ||
permalink: /id/docs/handbook/intro-to-js-ts.html | ||
oneline: Cara menambahkan pemeriksaan type ke file JavaScript menggunakan 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.
pemeriksaan type
-> pemeriksaan tipe data
?
|
||
Sistem tipe di TypeScript memiliki tingkat keketatan yang berbeda saat bekerja dengan basis kode: | ||
|
||
- Sistem tipe yang hanya berdasarkan pada inferensi dengan kode JavaScript |
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.
tipe
-> tipe data
Sistem tipe di TypeScript memiliki tingkat keketatan yang berbeda saat bekerja dengan basis kode: | ||
|
||
- Sistem tipe yang hanya berdasarkan pada inferensi dengan kode JavaScript | ||
- Pengetikkan incremental di JavaScript [melalui JSDoc](/docs/handbook/jsdoc-supported-types.html) |
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.
incremental
-> secara bertahap
- Kode TypeScript | ||
- TypeScript dengan [`strict`](/tsconfig#strict) diaktifkan | ||
|
||
Setiap langkah mewakili gerakan menuju sistem tipe yang lebih aman, tetapi tidak setiap proyek membutuhkan tingkat verifikasi seperti itu. |
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.
Setiap langkah mewakili gerakan menuju sistem tipe yang lebih aman
Setiap langkah mewakili tahapan sistem tipe yang lebih aman
@@ -0,0 +1,66 @@ | |||
--- | |||
title: Configuring Watch |
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 belum diterjemahkan
translatable: true | ||
--- | ||
|
||
Compiler mendukung konfigurasi cara mengawasi file dan direktori menggunakan compiler flags di TypeScript 3.8+, dan variabel environment. |
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.
Compiler
-> Kompilator
, minta tolong cek ditempat lain juga
|
||
Implementasi `--watch` dari compiter bergantung pada penggunaan `fs.watch` dan `fs.watchFile` yang disediakan oleh node, kedua metode ini memiliki kelebihan dan kekurangan. | ||
|
||
`fs.watch` menggunakan system event file untuk memberi tahu perubahan dalam file/direktori. Tetapi ini bergantung pada OS dan notifikasi tidak sepenuhnya dapat diandalkan dan tidak berfungsi seperti yang diharapkan pada banyak OS. Juga mungkin ada batasan jumlah watch yang dapat dibuat, misalnya. linux dan kami dapat melakukannya dengan cukup cepat dengan program yang menyertakan banyak file. Tetapi karena ini menggunakan system event file, tidak banyak siklus CPU yang terlibat. Compiler biasanya menggunakan `fs.watch` untuk melihat direktori (misalnya. Direktori sumber disertakan oleh file konfigurasi, direktori di mana resolusi modul gagal, dll.) Ini dapat menangani ketepatan yang hilang dalam memberi tahu tentang perubahan. Tetapi memantau secara rekursif hanya didukung pada Windows dan OSX. Artinya kita membutuhkan sesuatu untuk menggantikan sifat rekursif di OS lain. |
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.
menggunakan system event file
-> menggunakan berkas _system event_
.
linux dan kami dapat melakukannya dengan cukup cepat dengan program yang menyertakan banyak file
Ini 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.
Teks aslinya seperti ini:
fs.watch
uses file system events to notify the changes in the file/directory. But this is OS dependent and the notification is not completely reliable and does not work as expected on many OS. Also there could be limit on number of watches that can be created, eg. linux and we could exhaust it pretty quickly with programs that include large number of files. But because this uses file system events, there is not much CPU cycle involved. Compiler typically uses fs.watch
to watch directories (eg. source directories included by config file, directories in which module resolution failed etc) These can handle the missing precision in notifying about the changes. But recursive watching is supported on only Windows and OSX. That means we need something to replace the recursive nature on other OS.
Baik, maaf merepotkan. Terima kasih 🙏 |
Baik, Terima kasih 🙏 |
Siap, akan segera saya perbaiki. Terima kasih 🙏 |
|
||
> Catatan: Sebagian besar perubahan tidak mengharuskan anda untuk memasang versi terbaru dari plugin VS TypeScript. | ||
|
||
Saat ini, Nightly build tidak menyertakan plugin secara lengkap, tapi kami sedang mengupayakan untuk menerbitkan sebuah installer di nightly. |
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 bahasa inggris yang belum di cetak miring ya.
LGTM |
Merging because @mandaputtra is a code-owner of all the changes - thanks! |
Overview
Refer to #938 and this comment, I translated the files into Indonesian.
Changes
Provides Indonesian translation for the following files: