mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
fix(translate): preserve anchors and localize dify.ai URLs
This commit is contained in:
@@ -91,9 +91,13 @@ For plugin-dev paths:
|
||||
- `plugin-dev-en/setup` → `plugin-dev-zh/setup`
|
||||
- `[Guide](/en/docs/guide)` → `[指南](/zh/docs/guide)`
|
||||
|
||||
**Dify website URLs** (`https://dify.ai/...`): Apply same localization
|
||||
- `https://dify.ai/pricing` → `https://dify.ai/zh/pricing` (Chinese)
|
||||
- `https://dify.ai/pricing` → `https://dify.ai/jp/pricing` (Japanese)
|
||||
|
||||
**Do NOT change:**
|
||||
- External URLs (https://...)
|
||||
- Anchor links (#section)
|
||||
- Other external URLs (non-dify.ai)
|
||||
- Anchor links (#section) - translate to match translated headings
|
||||
- Asset paths without language codes
|
||||
|
||||
### Rule 4: Professional Translation Quality
|
||||
|
||||
@@ -119,10 +119,15 @@ For plugin-dev paths:
|
||||
- `plugin-dev-en/setup` → `plugin-dev-zh/setup`
|
||||
- `[Guide](/en/docs/guide)` → `[指南](/zh/docs/guide)`
|
||||
|
||||
**Do NOT change:**
|
||||
- External URLs (https://...)
|
||||
- Anchor links (#section)
|
||||
- Asset paths without language codes
|
||||
**Also localize Dify website URLs** (`https://dify.ai/...`):
|
||||
- `https://dify.ai/pricing` → `https://dify.ai/zh/pricing` (Chinese)
|
||||
- `https://dify.ai/pricing` → `https://dify.ai/jp/pricing` (Japanese)
|
||||
|
||||
**Do NOT localize (preserve as-is):**
|
||||
1. **In-document anchors** (`#section`): Match translated headings, not English
|
||||
- Keep `#指定检索设置`, do NOT replace with `#configure-the-retrieval-settings`
|
||||
2. **Other external URLs**: Non-dify.ai URLs stay unchanged
|
||||
3. **Asset paths**: Images, files without language codes
|
||||
|
||||
## Rule 4: Translation Priority
|
||||
1. **Termbase** (highest): Use exact glossary translations
|
||||
|
||||
@@ -126,10 +126,15 @@ For plugin-dev paths:
|
||||
- `plugin-dev-en/setup` → `plugin-dev-zh/setup`
|
||||
- `[Guide](/en/docs/guide)` → `[指南](/zh/docs/guide)`
|
||||
|
||||
**Do NOT change:**
|
||||
- External URLs (https://...)
|
||||
- Anchor links (#section)
|
||||
- Asset paths without language codes
|
||||
**Also localize Dify website URLs** (`https://dify.ai/...`):
|
||||
- `https://dify.ai/pricing` → `https://dify.ai/zh/pricing` (Chinese)
|
||||
- `https://dify.ai/pricing` → `https://dify.ai/jp/pricing` (Japanese)
|
||||
|
||||
**Do NOT localize (preserve as-is):**
|
||||
1. **In-document anchors** (`#section`): Match translated headings, not English
|
||||
- Keep `#指定检索设置`, do NOT replace with `#configure-the-retrieval-settings`
|
||||
2. **Other external URLs**: Non-dify.ai URLs stay unchanged
|
||||
3. **Asset paths**: Images, files without language codes
|
||||
|
||||
## Rule 4: Translation Priority
|
||||
1. **Termbase** (highest): Use exact glossary translations
|
||||
|
||||
Reference in New Issue
Block a user