-
Notifications
You must be signed in to change notification settings - Fork 1.4k
add translation on file allowJs.md and allowSyntheticDefaultImports.md into indonesian #992
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 into Indonesian
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. |
Hallo @zaiinhs, terimakasih PR-nya bisa diperbaikin judul PR-nya? Lebih baik seperti ini formatya |
@@ -0,0 +1,39 @@ | |||
--- | |||
display: "Izinkan 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.
Ini jangan di translate, ini konfigurasi soalnya.
Gak seharusnya di translate.
Tetep pakai allowJs
oneline: "Biarkan TS menyertakan file .JS dalam impor" | ||
--- | ||
|
||
Izinkan file JavaScript diimpor di dalam proyek Anda, bukan hanya file `.ts` dan`.tsx`. Misalnya, file JS ini: |
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 = berkas
import React from "react"; | ||
``` | ||
|
||
dari pada: |
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.
daripada gak pake spasi
import * as React from "react"; | ||
``` | ||
|
||
Jika modul ** tidak ** secara eksplisit menentukan ekspor default. |
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.
Markdown huruf tebal jangan ditambahkan spasi **tidak**
module.exports.default = allFunctions; | ||
``` | ||
|
||
Bendera ini tidak memengaruhi JavaScript yang dipancarkan oleh TypeScript, ini hanya untuk pemeriksaan jenis. |
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.
Bendera ini mesti cari alternatifnya, jadi kehilangan konteks soalnya.
Opsi mungkin bisa jadi alternatif.
Dipancarkan juga jadi gak enak disini, mungkin "dihasilkan" lebih baik, atau ada kata lainnya
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.
TIPS: Untuk menerjemahkan dokumentasi alat kerja (disini TypeScript), akan lebih baik jika mengartikan berdasarkan makna bukan tulisan kalimat. Sehingga dokumentasi tidak kehilangan makna asal alat tersebut, dan pengguna nanti tidak kebingungan.
Terimakasih 👍 💯
@@ -0,0 +1,39 @@ | |||
--- | |||
display: "Izinkan js" | |||
oneline: "Biarkan TS menyertakan file .JS dalam impor" |
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.
oneline: "Biarkan TS menyertakan file .JS dalam impor" | |
oneline: "Izinkan TS menyertakan berkas .JS di impor" |
oneline: "Biarkan TS menyertakan file .JS dalam impor" | ||
--- | ||
|
||
Izinkan file JavaScript diimpor di dalam proyek Anda, bukan hanya file `.ts` dan`.tsx`. Misalnya, file JS ini: |
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.
Izinkan file JavaScript diimpor di dalam proyek Anda, bukan hanya file `.ts` dan`.tsx`. Misalnya, file JS ini: | |
Izinkan file JavaScript diimpor ke dalam proyek Anda, bukan hanya file `.ts` dan`.tsx`. Contoh, berkas JS berikut: |
export const defaultCardDeck = "Heart"; | ||
``` | ||
|
||
Ketika diimpor ke file TypeScript akan menimbulkan 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.
Ketika diimpor ke file TypeScript akan menimbulkan kesalahan: | |
Ketika diimpor ke berkas TypeScript akan menimbulkan galat seperti berikut: |
console.log(defaultCardDeck); | ||
``` | ||
|
||
Impor baik-baik saja dengan `allowJs` 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.
Impor baik-baik saja dengan `allowJs` diaktifkan: | |
Impor berkas akan baik-baik saja saat `allowJs` diaktifkan: |
console.log(defaultCardDeck); | ||
``` | ||
|
||
Bendera ini dapat digunakan sebagai cara untuk menambahkan file TypeScript secara bertahap ke dalam proyek JS dengan mengizinkan file `.ts` dan`.tsx` untuk hidup berdampingan dengan file JavaScript yang ada. |
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.
Bendera ini dapat digunakan sebagai cara untuk menambahkan file TypeScript secara bertahap ke dalam proyek JS dengan mengizinkan file `.ts` dan`.tsx` untuk hidup berdampingan dengan file JavaScript yang ada. | |
Opso ini dapat digunakan sebagai cara untuk menambahkan berkas TypeScript secara bertahap ke dalam proyek JS dengan mengizinkan berkas `.ts` dan`.tsx` untuk hidup berdampingan dengan berkas JavaScript yang ada. |
|
||
Jika modul ** tidak ** secara eksplisit menentukan ekspor default. | ||
|
||
Misalnya, tanpa`allowSyntheticDefaultImports` karena true: |
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.
Misalnya, tanpa`allowSyntheticDefaultImports` karena true: | |
Misalnya, tanpa`allowSyntheticDefaultImports` disetel ke _true_: |
const count = utils.getStringLength("Check JS"); | ||
``` | ||
|
||
Kode ini menimbulkan kesalahan karena tidak ada objek `default` yang dapat Anda impor. Meski rasanya seperti itu seharusnya. |
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.
Kode ini menimbulkan kesalahan karena tidak ada objek `default` yang dapat Anda impor. Meski rasanya seperti itu seharusnya. | |
Kode ini menimbulkan galat karena tidak ada objek `default` yang dapat Anda impor. Meski rasanya seperti itu seharusnya. |
``` | ||
|
||
Kode ini menimbulkan kesalahan karena tidak ada objek `default` yang dapat Anda impor. Meski rasanya seperti itu seharusnya. | ||
Untuk kenyamanan, transpiler seperti Babel akan secara otomatis membuat default jika tidak dibuat. Membuat modul terlihat lebih seperti: |
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.
Untuk kenyamanan, transpiler seperti Babel akan secara otomatis membuat default jika tidak dibuat. Membuat modul terlihat lebih seperti: | |
Untuk kenyamanan, _transpiler_ seperti Babel akan secara otomatis membuat setelan standar jika tidak dibuat. Membuat modul terlihat lebih seperti: |
module.exports.default = allFunctions; | ||
``` | ||
|
||
Bendera ini tidak memengaruhi JavaScript yang dipancarkan oleh TypeScript, ini hanya untuk pemeriksaan jenis. |
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.
Bendera ini tidak memengaruhi JavaScript yang dipancarkan oleh TypeScript, ini hanya untuk pemeriksaan jenis. | |
Opsi ini tidak mempengaruhi JavaScript yang dihasilkan oleh TypeScript, ini hanya untuk _type checking_. |
``` | ||
|
||
Bendera ini tidak memengaruhi JavaScript yang dipancarkan oleh TypeScript, ini hanya untuk pemeriksaan jenis. | ||
Opsi ini membawa perilaku TypeScript sejalan dengan Babel, di mana kode tambahan dikeluarkan untuk membuat ekspor default modul menjadi lebih ergonomis. |
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.
Opsi ini membawa perilaku TypeScript sejalan dengan Babel, di mana kode tambahan dikeluarkan untuk membuat ekspor default modul menjadi lebih ergonomis. | |
Opsi ini membuat perilaku TypeScript sejalan dengan Babel, di mana kode ekstra akan ditambahkan kedalam setelan standar ekspor untuk membuat sebuah modul lebih ergonomis. |
dilihat dari kalimat asal. '...where extra code is emitted to make using a default export of a module more ergonomic.'
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.
Tolong review saya disesuaikan juga dengan review @irfan-maulana-tkp yak
Mas @zaiinhs minta tolong deskripsi yang saya tandai seperti di gambar ini diedit sesuai dengan format templat berikut ya: ## Overview
This is part of #938
## Changes
Translate for files:
- [x] File name
- [x] File name Templat di atas di copy ajah langsung, tinggal ganti bagian |
LGTM |
Overview
This is part of #938
Changes
Translate for files: