Skip to content

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

Merged
merged 3 commits into from
Nov 14, 2020

Conversation

xen0m29
Copy link
Contributor

@xen0m29 xen0m29 commented Oct 20, 2020

Overview
Refer to #938 and this comment, I translated the files into Indonesian.

Changes
Provides Indonesian translation for the following files:

  • Nightly Builds.md
  • Creating DTS files From JS.md
  • Intro to JS with TS.md
  • JSDoc Reference.md
  • Configuring Watch.md
  • Decorators.md
  • Iterators and Generators.md
  • JSX.md
  • Mixins.md
  • Symbols.md
  • Babel with TypeScript.md
  • DOM Manipulation.md
  • React.md
  • TypeScript Tooling in 5 minutes.md

…md, Decorators.md - Mixins.md, Babel with TypeScript.md - TypeScript Tooling in 5 minutes.md
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot added translation id A PR to the Indonesian part of the documentation labels Oct 20, 2020
Copy link

@febrihidayan febrihidayan left a 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 atau nilai 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.

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.

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:

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.

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`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error bisa menjadi kesalahan

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

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:

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:

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_

Copy link
Contributor

@mandaputtra mandaputtra left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

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`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@jefrydco jefrydco left a 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
Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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)
Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@xen0m29
Copy link
Contributor Author

xen0m29 commented Oct 24, 2020

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 🙏

Baik, maaf merepotkan. Terima kasih 🙏

@xen0m29
Copy link
Contributor Author

xen0m29 commented Oct 24, 2020

Saya review 3 File dulu nanti saya teruskan lagi.

  • Nightly Builds
  • Creating DTS File
  • Intro to JS with TS
  • JSDoc reference

Baik, Terima kasih 🙏

@xen0m29
Copy link
Contributor Author

xen0m29 commented Oct 24, 2020

@xen0m29 ada beberapa kata yang harus diperbarui, seperti berikut yang saya temui:

  • anda menjadi Anda
  • default menjadi nilai anggapan atau nilai 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

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.
Copy link
Contributor

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.

@mandaputtra
Copy link
Contributor

LGTM

@github-actions
Copy link
Contributor

Merging because @mandaputtra is a code-owner of all the changes - thanks!

@github-actions github-actions bot merged commit e469797 into microsoft:v2 Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
id A PR to the Indonesian part of the documentation translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants