Skip to content

Commit 1eaa4a7

Browse files
ryungomlumirlumir
andauthored
docs: createContext 미세한 번역 추가 (#1332)
<!-- PR을 보내주셔서 감사합니다! 여러분과 같은 기여자들이 React를 더욱 멋지게 만듭니다! 기존 이슈와 관련된 PR이라면, 아래에 이슈 번호를 추가해주세요. --> 이슈번호 : #1327 # API > createContext 미세한 번역 추가 다음 세 부분의 번역부분을 손봤습니다. 번역 모범사례를 참고하여 그대로 번역하기보단 보다 자연스럽다고 생각되는 문장으로 의역했습니다. 예를들어 문제해결 파트의 'I can't find~' 부분을 찾을 수 없다라기 보단 모르겠다 등으로... 그리고 provider 소제목 같은 경우(50번째 줄) '.provider'가 사용되지 않는 맥락이더라도 미관상 전체 문장을 백틱으로 감싸는게 좋을것 같아서 소소하게 맺음백틱 위치를 수정했습니다. - 반환값 - somecontext provider의 '중요합니다' part - 문제해결 <!-- 어떤 종류의 PR인지 상세 내용을 작성해주세요. --> ## 필수 확인 사항 - [x] [기여자 행동 강령 규약<sup>Code of Conduct</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CODE_OF_CONDUCT.md) - [x] [기여 가이드라인<sup>Contributing</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CONTRIBUTING.md) - [x] [공통 스타일 가이드<sup>Universal Style Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/universal-style-guide.md) - [x] [번역을 위한 모범 사례<sup>Best Practices for Translation</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/best-practices-for-translation.md) - [x] [번역 용어 정리<sup>Translate Glossary</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/translate-glossary.md) - [x] [`textlint` 가이드<sup>Textlint Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/textlint-guide.md) - [x] [맞춤법 검사<sup>Spelling Check</sup>](https://nara-speller.co.kr/speller/) ## 선택 확인 사항 - [ ] 번역 초안 작성<sup>Draft Translation</sup> - [ ] 리뷰 반영<sup>Resolve Reviews</sup> --------- Co-authored-by: 루밀LuMir <rpfos@naver.com>
1 parent fc244c1 commit 1eaa4a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/reference/react/createContext.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ const ThemeContext = createContext('light');
3737

3838
#### 반환값 {/*returns*/}
3939

40-
`createContext` returns a context object.
40+
`createContext`는 컨텍스트 객체를 반환합니다.
4141

4242
**컨텍스트 객체 자체는 어떠한 정보도 가지고 있지 않습니다.** 다른 컴포넌트가 읽거나 제공하는 어떤 컨텍스트를 나타냅니다. 일반적으로 상위 컴포넌트에서 컨텍스트 값을 지정하기 위해 [`SomeContext`](#provider)를 사용하고, 아래 컴포넌트에서 읽기 위해 [`useContext(SomeContext)`](/reference/react/useContext)를 호출합니다. 컨텍스트 객체에는 몇 가지 속성이 있습니다.
4343

44-
* `SomeContext` lets you provide the context value to components.
44+
* `SomeContext`는 컴포넌트에게 컨텍스트 값을 제공합니다.
4545
* `SomeContext.Consumer`는 컨텍스트 값을 읽는 대안이며 드물게 사용됩니다.
46-
* `SomeContext.Provider` is a legacy way to provide the context value before React 19.
46+
* `SomeContext.Provider`는 React 19 이전 버전에서 사용되는 오래된 컨텍스트 값 제공 방법입니다.
4747

4848
---
4949

5050
### `SomeContext` Provider {/*provider*/}
5151

52-
컴포넌트를 컨텍스트 제공자로 감싸서 이 컨텍스트의 값을 모든 내부 컴포넌트에 지정합니다.
52+
컴포넌트를 컨텍스트 제공자<sup>Provider</sup>로 감싸서 이 컨텍스트의 값을 모든 내부 컴포넌트에 지정합니다.
5353

5454
```js
5555
function App() {
@@ -65,9 +65,9 @@ function App() {
6565

6666
<Note>
6767

68-
Starting in React 19, you can render `<SomeContext>` as a provider.
68+
React 19부터는 `<SomeContext>`를 제공자<sup>Provider</sup>로 렌더링 할 수 있습니다.
6969

70-
In older versions of React, use `<SomeContext.Provider>`.
70+
오래된 React 버전은 `<SomeContext.Provider>`를 사용합니다.
7171

7272
</Note>
7373

@@ -213,7 +213,7 @@ function App() {
213213

214214
## 문제 해결 {/*troubleshooting*/}
215215

216-
### I can't find a way to change the context value {/*i-cant-find-a-way-to-change-the-context-value*/}
216+
### 컨텍스트 값을 바꾸는 방법을 모르겠어요 {/*i-cant-find-a-way-to-change-the-context-value*/}
217217

218218
이런 코드는 *기본* 컨텍스트 값을 지정합니다.
219219

0 commit comments

Comments
 (0)