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

[ko] Intl.DateTimeFormat.prototype.format() 신규번역 외 #22342

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

wisedog
Copy link
Contributor

@wisedog wisedog commented Jul 9, 2024

  • Intl.DateTimeFormat.prototype.format() 신규 번역
  • String.prototype.trimStart() 최신화

- Intl.DateTimeFormat.prototype.format() 신규 번역
- String.prototype.trimStart() 최신화
@wisedog wisedog requested a review from a team as a code owner July 9, 2024 23:21
@wisedog wisedog requested review from 1ilsang and removed request for a team July 9, 2024 23:21
@github-actions github-actions bot added the l10n-ko Issues related to Korean content. label Jul 9, 2024
Copy link
Contributor

github-actions bot commented Jul 9, 2024

Preview URLs

External URLs (1)

URL: /ko/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart
Title: String.prototype.trimStart()

(comment last updated: 2024-07-14 12:33:14)

Copy link
Member

@1ilsang 1ilsang left a comment

Choose a reason for hiding this comment

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

@wisedog 님 안녕하세요. 기여해주셔서 감사합니다! 💯

몇 가지 코멘트 남겨두었습니다.

확인하시고 다시 리뷰 요청 부탁드리겠습니다. 🙇

질문이나 도움이 필요하시다면 언제든 멘션 부탁드리겠습니다.


### format 사용하기

단일 날짜의 서식을 지정하려면 `format` 접근자 함수를 사용합니다. 아래는 세르비아의 경우입니다.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
단일 날짜의 서식을 지정하려면 `format` 접근자 함수를 사용합니다. 아래는 세르비아의 경우입니다.
단일 날짜의 서식을 지정하려면 `format` 접근자 함수를 사용합니다.
아래는 세르비아의 경우입니다.

줄 수는 원문과 동일하게 해주세요. 관련 논의는 여기에서 확인할 수 있습니다.

Comment on lines 65 to 92
### 형식이 지정된 날짜 값을 정적 값과 비교하지 않기

대부분의 경우 `format()`이 반환하는 서식은 일관적입니다.
그러나 이는 향후 변경될 수 있으며 모든 언어에 대해 보장되는 것은 아닙니다.
설계에 따른 출력 변형은 사양에 따라 허용됩니다.
특히 IE 와 Edge 브라우저는 날짜 주위에 양방향 제어 문자를 삽입하기 때문에 다른 텍스트와 연결할 때
출력 텍스트가 제대로 흐릅니다.

이러한 이유로 `format()`의 결과를 정적 값과 비교할 수 없습니다.

```js example-bad
let d = new Date("2019-01-01T00:00:00.000000Z");
let formattedDate = Intl.DateTimeFormat(undefined, {
year: "numeric",
month: "numeric",
day: "numeric",
hour: "numeric",
minute: "numeric",
second: "numeric",
}).format(d);

"1.1.2019, 01:00:00" === formattedDate;
// Firefox와 다른 곳에서는 true
// IE와 Edge에서는 false
```

> **참고:** 보다 자세한 정보와 예제는 [StackOverflow 글타래](https://stackoverflow.com/questions/25574963/ies-tolocalestring-has-strange-characters-in-results)를
> 참고하시기 바랍니다.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
### 형식이 지정된 날짜 값을 정적 값과 비교하지 않기
대부분의 경우 `format()`이 반환하는 서식은 일관적입니다.
그러나 이는 향후 변경될 수 있으며 모든 언어에 대해 보장되는 것은 아닙니다.
설계에 따른 출력 변형은 사양에 따라 허용됩니다.
특히 IE 와 Edge 브라우저는 날짜 주위에 양방향 제어 문자를 삽입하기 때문에 다른 텍스트와 연결할 때
출력 텍스트가 제대로 흐릅니다.
이러한 이유로 `format()`의 결과를 정적 값과 비교할 수 없습니다.
```js example-bad
let d = new Date("2019-01-01T00:00:00.000000Z");
let formattedDate = Intl.DateTimeFormat(undefined, {
year: "numeric",
month: "numeric",
day: "numeric",
hour: "numeric",
minute: "numeric",
second: "numeric",
}).format(d);
"1.1.2019, 01:00:00" === formattedDate;
// Firefox와 다른 곳에서는 true
// IE와 Edge에서는 false
```
> **참고:** 보다 자세한 정보와 예제는 [StackOverflow 글타래](https://stackoverflow.com/questions/25574963/ies-tolocalestring-has-strange-characters-in-results)
> 참고하시기 바랍니다.

원문에 존재하지 않는 내용으로 보입니다. 확인 부탁드리겠습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

같은 문서 ja, fr 을 보면 남아있어서 원래 있었는데 빠진듯 합니다. 근데 한참 전에 빠진것 같은데 왜 제 로컬에 남아있어서 이것까지 해석했는지 모르겠군요. ㅠㅠ 예전에 번역하려고 로컬에 저장해놓은것일 수 있어서 intl 쪽은 번역할때 다시 한 번 최신 문서 확인하도록 하겠습니다.

@wisedog wisedog requested a review from 1ilsang July 14, 2024 12:46
Copy link
Member

@1ilsang 1ilsang left a comment

Choose a reason for hiding this comment

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

LGTM 고생하셨습니다

@1ilsang 1ilsang merged commit 931b91e into mdn:main Jul 15, 2024
7 checks passed
@wisedog wisedog deleted the js/intl-datetimeformat-format branch July 15, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ko Issues related to Korean content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants