Skip to content
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

add translation on file allowJs.md and allowSyntheticDefaultImports.md into indonesian #992

Merged
merged 3 commits into from
Sep 3, 2020

Conversation

zaiinhs
Copy link
Contributor

@zaiinhs zaiinhs commented Aug 30, 2020

Overview

This is part of #938

Changes

Translate for files:

  • allowJs.md
  • allowSyntheticDefaultImports.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 Aug 30, 2020
@mandaputtra
Copy link
Contributor

mandaputtra commented Aug 30, 2020

Hallo @zaiinhs, terimakasih PR-nya bisa diperbaikin judul PR-nya? Lebih baik seperti ini formatya [translate-id] bagian-mana yang di terjemahkan

@@ -0,0 +1,39 @@
---
display: "Izinkan js"
Copy link

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

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

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

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

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

@mazipan mazipan mentioned this pull request Aug 30, 2020
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.

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"
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
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:
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
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:
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
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:
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
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.
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
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:
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
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.
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
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:
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
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.
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
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.
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
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.'

Copy link
Contributor

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

@zaiinhs zaiinhs changed the title trindo add translation on file allowJs.md and allowSyntheticDefaultImports.md into indonesian Aug 31, 2020
@jefrydco
Copy link
Contributor

jefrydco commented Aug 31, 2020

Mas @zaiinhs minta tolong deskripsi yang saya tandai seperti di gambar ini

GitHub Pull Request Description

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 file name dengan nama berkas yang Mas ubah

@jefrydco
Copy link
Contributor

jefrydco commented Sep 3, 2020

LGTM

@orta orta merged commit f7f046a into microsoft:v2 Sep 3, 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.

None yet

5 participants