Skip to content

Commit b916fe1

Browse files
committed
Rename Chinese docs from 'cn' to 'zh'
All Chinese documentation files and related configuration references have been renamed from 'cn' to 'zh' to standardize language codes. Workflow, translation script, and mkdocs configuration updated accordingly. Minor translation improvements applied to agents and visualization docs.
1 parent 41bd408 commit b916fe1

30 files changed

+9
-9
lines changed

.github/workflows/update-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- mkdocs.yml
2020
- '!docs/ja/**'
2121
- '!docs/ko/**'
22-
- '!docs/cn/**'
22+
- '!docs/zh/**'
2323

2424
permissions:
2525
contents: write

docs/scripts/translate_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"Build your first agent in minutes.": "단 몇 분 만에 첫 에이전트를 만들 수 있습니다",
116116
"Let's build": "시작하기",
117117
},
118-
"cn": {
118+
"zh": {
119119
"agents": "智能体",
120120
"computer use": "计算机操作",
121121
"OAI hosted tools": "由OpenAI托管的工具",
@@ -161,7 +161,7 @@
161161
"* 'instructions', 'tools' 같은 API 매개변수와 temperature, top_p, max_tokens, presence_penalty, frequency_penalty 등은 영문 그대로 유지하세요.",
162162
"* 문장이 아닌 불릿 항목 끝에는 마침표를 찍지 마세요.",
163163
],
164-
"cn": [
164+
"zh": [
165165
"* The term 'examples' must be code examples when the page mentions the code examples in the repo, it can be translated as either 'code examples' or 'sample code'.",
166166
"* The term 'primitives' can be translated as basic components.",
167167
"* When the terms 'instructions' and 'tools' are mentioned as API parameter names, they must be kept as is.",

docs/cn/agents.md renamed to docs/zh/agents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ agent = Agent(
220220
)
221221
```
222222

223-
- `StopAtTools(stop_at_tool_names=[...])`: 指定したツールのいずれかが呼び出された場合に停止し、その出力を最終応答として使用します
223+
- `StopAtTools(stop_at_tool_names=[...])`: 当指定的工具中的任何一个被调用时停止,并将其输出用作最终响应
224224

225225
```python
226226
from agents import Agent, Runner, function_tool
@@ -244,7 +244,7 @@ agent = Agent(
244244
)
245245
```
246246

247-
- `ToolsToFinalOutputFunction`: ツール結果を処理し、停止するか LLM を継続するかを判断するカスタム関数です
247+
- `ToolsToFinalOutputFunction`: 处理工具结果并决定是停止还是继续LLM的自定义函数
248248

249249
```python
250250
from agents import Agent, Runner, function_tool, FunctionToolResult, RunContextWrapper
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)