Skip to content

Commit 6fc618e

Browse files
Korean translation (#1816)
Co-authored-by: Kazuhiro Sera <[email protected]>
1 parent 22a63aa commit 6fc618e

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

docs/scripts/translate_docs.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
source_dir = "docs"
2727
languages = {
2828
"ja": "Japanese",
29+
"ko": "Korean",
2930
# Add more languages here, e.g., "fr": "French"
3031
}
3132

@@ -79,6 +80,40 @@
7980
"Python first": "Python ファースト",
8081
# Add more Japanese mappings here
8182
},
83+
"ko": {
84+
"agents": "에이전트",
85+
"computer use": "컴퓨터 사용",
86+
"OAI hosted tools": "OpenAI 호스트하는 도구",
87+
"well formed data": "적절한 형식의 데이터",
88+
"guardrail": "가드레일",
89+
"orchestrating multiple agents": "멀티 에이전트 오케스트레이션",
90+
"handoffs": "핸드오프",
91+
"function tools": "함수 도구",
92+
"function calling": "함수 호출",
93+
"tracing": "트레이싱",
94+
"code examples": "코드 예제",
95+
"vector store": "벡터 스토어",
96+
"deep research": "딥 리서치",
97+
"category": "카테고리",
98+
"user": "사용자",
99+
"parameter": "매개변수",
100+
"processor": "프로세서",
101+
"server": "서버",
102+
"web search": "웹 검색",
103+
"file search": "파일 검색",
104+
"streaming": "스트리밍",
105+
"system prompt": "시스템 프롬프트",
106+
"Python-first": "파이썬 우선",
107+
"interruption": "인터럽션(중단 처리)",
108+
"TypeScript-first": "TypeScript 우선",
109+
"Human in the loop": "휴먼인더루프 (HITL)",
110+
"Hosted tool": "호스티드 툴",
111+
"Hosted MCP server tools": "호스티드 MCP 서버 도구",
112+
"raw": "원문",
113+
"Realtime Agents": "실시간 에이전트",
114+
"Build your first agent in minutes.": "단 몇 분 만에 첫 에이전트를 만들 수 있습니다",
115+
"Let's build": "시작하기",
116+
},
82117
# Add more languages here
83118
}
84119
eng_to_non_eng_instructions = {
@@ -95,6 +130,12 @@
95130
"* You must consistently use polite wording such as です/ます rather than である/なのだ.",
96131
# Add more Japanese mappings here
97132
],
133+
"ko": [
134+
"* 공손하고 중립적인 문체(합니다/입니다체)를 일관되게 사용하세요.",
135+
"* 개발자 문서이므로 자연스러운 의역을 허용하되 정확성을 유지하세요.",
136+
"* 'instructions', 'tools' 같은 API 매개변수와 temperature, top_p, max_tokens, presence_penalty, frequency_penalty 등은 영문 그대로 유지하세요.",
137+
"* 문장이 아닌 불릿 항목 끝에는 마침표를 찍지 마세요.",
138+
],
98139
# Add more languages here
99140
}
100141

@@ -163,6 +204,9 @@ def built_instructions(target_language: str, lang_code: str) -> str:
163204
*(applies only when {target_language} = Japanese)*
164205
- Insert a half‑width space before and after all alphanumeric terms.
165206
- Add a half‑width space just outside markdown emphasis markers: ` **太字** ` (good) vs `** 太字 **` (bad).
207+
*(applies only when {target_language} = Korean)*
208+
- Do not alter spaces around code/identifiers; keep them as in the original.
209+
- Do not add stray spaces around markdown emphasis: `**굵게**` (good) vs `** 굵게 **` (bad).
166210
167211
#########################
168212
## DO NOT TRANSLATE ##

mkdocs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,42 @@ plugins:
181181
- realtime/quickstart.md
182182
- realtime/guide.md
183183

184+
- locale: ko
185+
name: 한국어
186+
build: true
187+
nav:
188+
- 소개: index.md
189+
- 빠른 시작: quickstart.md
190+
- 코드 예제: examples.md
191+
- 문서:
192+
- agents.md
193+
- running_agents.md
194+
- sessions.md
195+
- results.md
196+
- streaming.md
197+
- repl.md
198+
- tools.md
199+
- mcp.md
200+
- handoffs.md
201+
- tracing.md
202+
- context.md
203+
- guardrails.md
204+
- multi_agent.md
205+
- usage.md
206+
- 모델:
207+
- models/index.md
208+
- models/litellm.md
209+
- config.md
210+
- visualization.md
211+
- release.md
212+
- 음성 에이전트:
213+
- voice/quickstart.md
214+
- voice/pipeline.md
215+
- voice/tracing.md
216+
- 실시간 에이전트:
217+
- realtime/quickstart.md
218+
- realtime/guide.md
219+
184220
extra:
185221
# Remove material generation message in footer
186222
generator: false
@@ -192,6 +228,9 @@ extra:
192228
- name: 日本語
193229
link: /openai-agents-python/ja/
194230
lang: ja
231+
- name: 한국어
232+
link: /openai-agents-python/ko/
233+
lang: ko
195234

196235
markdown_extensions:
197236
- pymdownx.superfences:

0 commit comments

Comments
 (0)