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

용어: import / export #821

Open
1 task
da-in opened this issue Nov 14, 2023 · 3 comments
Open
1 task

용어: import / export #821

da-in opened this issue Nov 14, 2023 · 3 comments
Labels
discussion Discuss the problem. term 문서에서 사용하는 용어에 대한 논의

Comments

@da-in
Copy link
Contributor

da-in commented Nov 14, 2023

논의하고자 하는 용어

import, export를 번역하는 것이 좋을지 논의하고 싶습니다.

해당 용어가 등장하는 원문의 문장

Directives like 'use server' must be at the very beginning of their function or file, above any other code including imports (comments above directives are OK).


논의가 완료된 후에 아래 내용을 업데이트 해주세요

@da-in da-in added discussion Discuss the problem. term 문서에서 사용하는 용어에 대한 논의 labels Nov 14, 2023
@HwangSunBeom
Copy link
Contributor

HwangSunBeom commented Nov 15, 2023

관련 내용이 #810 에서도 등장해 함께 이야기되면 좋을 것 같습니다.

When a file marked 'use client' is imported from a server component, compatible bundlers will treat the import as the “cut-off point” between server-only code and client code. Components at or below this point in the module graph can use client-only React features like useState.

Directives like 'use client' must be at the very beginning of a file, above any imports or other code (comments above directives are OK).

@taggon
Copy link
Collaborator

taggon commented Mar 28, 2024

Directives like 'use server' must be at the very beginning of their function or file, above any other code including imports (comments above directives are OK).

여기서는 문맥으로 보면 import 코드를 의미하는 거라서 번역하지 않고 영어 그대로 표기해야 맞을 것 같습니다.

import를 비롯한 다른 모든 코드보다 위에 있어야 한다.

When a file marked 'use client' is imported from a server component, compatible bundlers will treat the import as the “cut-off point” between server-only code and client code. Components at or below this point in the module graph can use client-only React features like useState.

뒤에 올려준 부분은 책을 번역할 때는 한국어로 보통 "가져온다"라고 표기하는데, 위 사례와 동일한 원칙을 적용하고 싶다면 import하다로 쓸 수 있습니다 . 제 눈에는 어색하게 보이지만 다른 분들이 괜찮다면 용인할 정도는 됩니다.

안1:

'use client'로 표시된 파일을 서버 컴포넌트에서 import할 때...

안2:

'use client'로 표시된 파일을 서버 컴포넌트에서 가져올 때...

@eomttt
Copy link
Collaborator

eomttt commented May 12, 2024

코드로서 import 를 의미한다면 번역하지 않는것이 덜 헷갈릴것 같습니다.
그 외에는 가져온다 로 표기해도 전 괜찮을것 같긴합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discuss the problem. term 문서에서 사용하는 용어에 대한 논의
Projects
None yet
Development

No branches or pull requests

4 participants