|
26 | 26 | source_dir = "docs"
|
27 | 27 | languages = {
|
28 | 28 | "ja": "Japanese",
|
| 29 | + "ko": "Korean", |
29 | 30 | # Add more languages here, e.g., "fr": "French"
|
30 | 31 | }
|
31 | 32 |
|
|
79 | 80 | "Python first": "Python ファースト",
|
80 | 81 | # Add more Japanese mappings here
|
81 | 82 | },
|
| 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 | + }, |
82 | 117 | # Add more languages here
|
83 | 118 | }
|
84 | 119 | eng_to_non_eng_instructions = {
|
|
95 | 130 | "* You must consistently use polite wording such as です/ます rather than である/なのだ.",
|
96 | 131 | # Add more Japanese mappings here
|
97 | 132 | ],
|
| 133 | + "ko": [ |
| 134 | + "* 공손하고 중립적인 문체(합니다/입니다체)를 일관되게 사용하세요.", |
| 135 | + "* 개발자 문서이므로 자연스러운 의역을 허용하되 정확성을 유지하세요.", |
| 136 | + "* 'instructions', 'tools' 같은 API 매개변수와 temperature, top_p, max_tokens, presence_penalty, frequency_penalty 등은 영문 그대로 유지하세요.", |
| 137 | + "* 문장이 아닌 불릿 항목 끝에는 마침표를 찍지 마세요.", |
| 138 | + ], |
98 | 139 | # Add more languages here
|
99 | 140 | }
|
100 | 141 |
|
@@ -163,6 +204,9 @@ def built_instructions(target_language: str, lang_code: str) -> str:
|
163 | 204 | *(applies only when {target_language} = Japanese)*
|
164 | 205 | - Insert a half‑width space before and after all alphanumeric terms.
|
165 | 206 | - 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). |
166 | 210 |
|
167 | 211 | #########################
|
168 | 212 | ## DO NOT TRANSLATE ##
|
|
0 commit comments