-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Translation 2 files to Ko #1081
Conversation
Thanks for the PR! This section of the codebase is owned by @bumkeyy - if they write a comment saying "LGTM" then it will be merged. |
4bbed75
to
3f9f26f
Compare
@@ -0,0 +1,83 @@ | |||
// 객체의 형태를 선언하는 두 가지 주요 도구가 있습니다: |
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.
// 객체의 형태를 선언하는 두 가지 주요 도구가 있습니다: | |
// 객체 형태를 선언하는 주요 도구는 두 가지가 있습니다. |
[제안]
// 인터페이스와 타입 별칭입니다. | ||
// | ||
// 이 둘은 무척 비슷하며, | ||
// 대부분의 경우 동일하게 작동합니다. |
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.
// 대부분의 경우 동일하게 작동합니다. | |
// 대부분 동일하게 작동합니다. |
const bird2: BirdInterface = { wings: 2 }; | ||
|
||
// 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.
// 이들을 교차하여 사용하는 것도 가능합니다. | |
// 교차하여 사용하는 것도 가능합니다. |
[제안]
|
||
// 둘 다 다른 인터페이스와 타입으로의 확장이 가능합니다. | ||
// 타입 별칭은 교차 타입을 통해 이를 수행하는 반면, | ||
// 인터페이스는 키워드를 가집니다. |
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.
// 인터페이스는 키워드를 가집니다. | |
// 인터페이스는 키워드를 사용합니다. |
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.
extend
키워드를 사용해서 확장하는 의미인 것 같아요 :)
let owl: Owl = { wings: 2, nocturnal: true }; | ||
let chicken: Chicken = { wings: 2, colourful: false, flies: false }; | ||
|
||
// 그렇긴 하지만, 타입 별칭 대신 인터페이스를 쓰는 것을 추천합니다. |
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.
// 그렇긴 하지만, 타입 별칭 대신 인터페이스를 쓰는 것을 추천합니다. | |
// 그래도 타입 별칭 보다 인터페이스를 쓰는 것을 추천합니다. |
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.
[제안]
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.
'별칭보다'로 (띄어쓰기 없이) 수정하겠습니다! :D 좋은 의견인 것 같아요
// 그렇긴 하지만, 타입 별칭 대신 인터페이스를 쓰는 것을 추천합니다. | ||
// 분명히 더 나은 에러 메시지를 받을 수 있기 때문입니다. | ||
// 뒤따르는 에러에 커서를 가져가면, | ||
// Chicken과 같은 인터페이스를 사용했을 때 |
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.
// Chicken과 같은 인터페이스를 사용했을 때 | |
// Chicken 인터페이스를 사용했을 때 |
[제안]
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.
본문이 like Chicken
인데, Chicken
인터페이스에만 해당되는 것이 아니라 같은 형태의 인터페이스에도 해당된다는 의미로 Chicken과 같은
으로 해석해야 하지 않나요??
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.
다시보니 원래 번역이 더 맞는거 같네요!
// 분명히 더 나은 에러 메시지를 받을 수 있기 때문입니다. | ||
// 뒤따르는 에러에 커서를 가져가면, | ||
// Chicken과 같은 인터페이스를 사용했을 때 | ||
// 어떻게 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.
// 어떻게 TypeScript가 더 간결하고 정확한 메시지를 제공하는지 알 수 있습니다. | |
// TypeScript가 더 간결하고 정확한 메시지를 어떻게 제공하는지 알 수 있습니다. |
[제안]
// 그것들을 인터페이스로 만드는 것이 더 좋습니다. | ||
|
||
// 타입과 인터페이스에 대한 모든 엣지 케이스를 알고 싶다면, | ||
// 이 stack overflow thread가 |
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.
// 이 stack overflow thread가 | |
// 아래 stack overflow thread가 |
const okNumberIndex = StatusCodes["OK"]; | ||
const stringBadRequest = StatusCodes[400]; | ||
|
||
// 열거형은 여러 타입일 수 있지만, 문자열 타입이 일반적입니다. |
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.
// 열거형은 여러 타입일 수 있지만, 문자열 타입이 일반적입니다. | |
// 열거형은 여러 타입일 수 있지만, 일반적으로 string 타입입니다. |
[제안]
} | ||
}; | ||
|
||
// 트랜스파일된 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.
// 트랜스파일된 JavaScript를 보면, | |
// 트랜스파일된 JavaScript 코드를 보면, |
@bumkeyy |
48e6a50
to
be2d1d9
Compare
@zigsong |
be2d1d9
to
3f1dec5
Compare
@bumkeyy |
LGTM |
Merging because @bumkeyy is a code-owner of all the changes - thanks! |
en:
번역 리뷰 요청합니다 : @yeonjuan @guyeol @dvlprsh
ref: #910