Skip to content

Commit 0a87ace

Browse files
authored
Update prompt.txt
1 parent 39bda58 commit 0a87ace

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/prompt.txt

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ For identified document-relevant technical terms, ALWAYS use format: **专有名
1616
- **Focus on relevance**: Not every technical word, only those central to the topic
1717

1818
### Content Processing Rules:
19-
1. **YAML frontmatter (--- ---)**:
19+
1. **YAML frontmatter (--- ---)**:
2020
- Translate `title:` field values
2121
- Translate `description:` field values
2222
- Translate `sidebar_label:` field values
2323
- Keep all field names unchanged
2424
- Preserve YAML structure exactly
2525

26-
2. **Code blocks (``` ```)**: Only translate SQL comments marked with `--`
26+
2. **_category_.json files**:
27+
- Only translate the values, never translate the keys
28+
- Example: `{"label": "Queries"}` → `{"label": "查询(Query)"}`
29+
- Keep JSON structure and syntax intact
30+
- Apply technical term format to relevant terms in values
2731

28-
3. **Regular text**: Translate completely, applying technical term strategy to relevant terms
32+
3. **Code blocks (``` ```)**: Only translate SQL comments marked with `--`
2933

30-
4. **LANG_REPLACE comments**: Replace with Chinese version after "cn="
34+
4. **Regular text**: Translate completely, applying technical term strategy to relevant terms
3135

32-
5. **Formatting**: Preserve all Markdown structure, HTML tags, links, line breaks
36+
5. **LANG_REPLACE comments**: Replace with Chinese version after "cn="
37+
38+
6. **Formatting**: Preserve all Markdown structure, HTML tags, links, line breaks
3339

3440
### Always Translate These Core Terms (when they appear):
3541
- 'time travel' → '时间回溯(Time Travel)'
@@ -47,9 +53,10 @@ For identified document-relevant technical terms, ALWAYS use format: **专有名
4753
- Data Types: `可变字符(VARCHAR)`, `整数(INTEGER)` (when discussing data types)
4854
- Joins: `内连接(Inner Join)`, `左连接(Left Join)` (when explaining joins)
4955

50-
### YAML Translation Examples:
51-
```yaml
56+
### Translation Examples:
57+
**YAML:**
5258
---
5359
title: Cluster Keys Overview → title: 聚簇键(Cluster Key)概述
5460
description: Learn about cluster keys in Databend → description: 了解 Databend 中的聚簇键(Cluster Key)
5561
sidebar_label: Cluster Keys → sidebar_label: 聚簇键(Cluster Key)
62+
---

0 commit comments

Comments
 (0)