Files
claude-howto/fa/TRANSLATION_NOTES.md
Hassan BehtooeiandSolar Mini4 6d547a154e docs(i18n): add Persian (Farsi) translation (#208)
Type: docs

## Summary

This PR adds a complete Persian (فارسی) translation of the documentation
under `fa/`,
mirroring the English source tree one file for one, following the same
layout already
used by `ja/`, `zh/`, `uk/` and `vi/`.

It is documentation only — no code, scripts or build configuration are
changed.

## What's included

- All 95 Markdown documents under `fa/`, matching the English tree
file-for-file
- Translated GitHub templates under `fa/.github/` (issue templates, PR
template,
  security and testing docs)
- `fa/RELEASE_NOTES.md`, consistent with the other locales

## Translation policy

- **Translated:**​ prose, headings, table headers and cells, list
items, blockquotes,
image alt text, Mermaid diagram labels, and `#` / `//` comments inside
code blocks
- **Kept verbatim:**​ code, JSON/YAML keys and identifier values,
file paths, URLs,
shell commands, flags, environment variables, tool and model names,
version
  numbers, permission-rule syntax, and Markdown link targets
- **Anchors:**​ in-page anchors are Persian, because GitHub
derives them from heading
text. They were generated from the translated headings and verified to
resolve.
- **Relative paths:**​ shifted by one level (`../` → `../../`)
where the extra `fa/`
directory depth requires it, e.g. `LICENSE`, the language switcher, and
shared
  screenshots under `resources/`.

## Verification

- 95 files, line-for-line parity with the English source for every file
- 0 unclosed code fences
- 151 / 151 internal anchors resolve
- 284 / 285 relative links point to existing files — the single
exception is an
illustrative path inside prose that is also absent from the English
source
- No CJK, Hangul, Cyrillic, Thai or Devanagari characters outside code
fences,
except the language-switcher line, where each language name is
intentionally
  written in its own script

## Terminology

For consistency, recurring terms are translated as: agent → ایجنت,
subagent → زیرایجنت,
skill → مهارت, hook → هوک, plugin → پلاگین, slash command → دستور اسلش,
checkpoint → چک‌پوینت, session → نشست, prompt → پرامپت, context → زمینه,
sandbox → سندباکس, worktree → درخت کاری. Product and model names stay in
Latin script.

## Known limitation

`fa/03-skills/doc-generator/SKILL.md` is 3 lines shorter than the
English original.
That source file triggers a content-approval prompt in my environment
that I could
not clear, so I left it untouched rather than guessing at the missing
content.
I am happy to send a small follow-up PR for that one file.

## Request

Could you review and merge? I am glad to adjust terminology, revert any
file you would
rather keep in English, or split this into smaller commits if you prefer
a different
granularity.

---------

Co-authored-by: Solar Mini4 <solar@upstage.ai>
2026-11-12 10:24:00 +01:00

5.7 KiB
Raw Permalink Blame History

واژه‌نامه و راهنمای سبک ترجمه فارسی

Persian Translation Glossary & Style Guide

مهم: این سند قواعد ترجمهٔ مستندات Claude Code به فارسی را تعیین می‌کند. پیش از شروع کار آن را بخوانید.

اصول پایه

  • زبان: فارسی روان و رسمی، با لحن آموزشی (نه ترجمهٔ تحت‌اللفظی).
  • اصطلاحات فنی: نام محصول‌ها، پرچم‌ها، دستورها و برچسب‌های کد به انگلیسی می‌مانند.
  • کد: محتوای بلوک‌های کد ۱۰۰٪ بدون تغییر می‌ماند؛ فقط کامنت‌ها و متن‌های توضیحی داخل آن‌ها ترجمه می‌شوند.
  • Mermaid: واژه‌های ساختاری (graph, sequenceDiagram, participant, --> و…) انگلیسی می‌مانند؛ برچسب‌های انسانی داخل نمودار ترجمه می‌شوند.
  • پیوندها: مسیرها و لنگرها (anchor) تغییر نمی‌کنند؛ فقط متن نمایشی ترجمه می‌شود.
  • اعداد فهرست: نشانگر فهرست باید با رقم ASCII باشد (1.، 2.). رقم‌های فارسی در متن، تاریخ‌ها و جدول‌ها آزادند، اما ۱. در ابتدای خط توسط Markdown به‌عنوان فهرست شناخته نمی‌شود.
  • نیم‌فاصله (U+200C): در متن فارسی حفظ می‌شود. در لنگرهای درون‌صفحه‌ای هم گیت‌هاب نیم‌فاصله را نگه می‌دارد، پس لنگرها را با همان نویسه‌ای بنویسید که در عنوان آمده است.
  • پانویس نسخه: هر صفحه با **آخرین به‌روزرسانی**، **نسخه Claude Code**، **منابع** و **مدل‌های سازگار** پایان می‌یابد و باید با فایل انگلیسی هم‌گام باشد.

واژه‌نامهٔ فنی

English فارسی توضیح
Claude / Claude Code Claude / Claude Code نام محصول؛ هرگز «کلود» نوشته نمی‌شود
slash command دستور اسلش نام ویژگی Claude Code
hook هوک
skill مهارت نام ویژگی Claude Code
subagent زیرایجنت
agent ایجنت
agent team تیم ایجنت
memory حافظه
checkpoint / rewind چک‌پوینت / rewind rewind نام دستور است
plugin پلاگین
marketplace مارکت‌پلیس
mod ماد افزونهٔ ظاهر/رفتار در پلاگین
MCP (Model Context Protocol) MCP نام پروتکل ترجمه نمی‌شود
CLAUDE.md CLAUDE.md نام فایل ترجمه نمی‌شود
prompt پرامپت
context / context window زمینه / پنجرهٔ زمینه
session نشست نه «سیشن»
usage استفاده / مصرف نه «استخدام»؛ در آمار مصرف «مصرف»
workflow گردش کار
repository مخزن
issue issue در متن GitHub به همان شکل
release انتشار / نسخه بر اساس جمله
pull request / PR pull request / PR
commit commit نام دستور git
branch شاخه
merge ادغام / merge
worktree درخت کاری / worktree
frontmatter frontmatter
token توکن
fork fork در مفهوم زیرایجنت فورک‌شده
clone clone نام دستور git
sandbox سندباکس
permission mode حالت مجوز
auto mode حالت خودکار
manual / default mode حالت دستی (Manual) مقدار پیکربندی default است
plan mode حالت برنامه‌ریزی
settings تنظیمات
configuration پیکربندی
environment variable متغیر محیطی
template قالب
boilerplate کد قالبی
debugging اشکال‌زدایی
linting لینت کردن
refactoring بازآرایی / ری‌فاکتور
build ساخت / بیلد
deploy استقرار
feature ویژگی
pipeline خط لوله
best practice بهترین شیوه
trade-off بده‌بستان
endpoint endpoint در مستندات API
integration یکپارچه‌سازی نه «یکپارچگی» در معنای Integration
authentication احراز هویت نه «اعتبارسنجی»
telemetry تلمتری
team lead / teammate سرپرست تیم / هم‌تیمی

نام‌های ویژگی که ترجمه نمی‌شوند

این‌ها را همیشه به شکل انگلیسی نگه دارید: /schedule، /loop، /design، Remote Control، Agent SDK، Desktop، VS Code، Bedrock، Vertex، Foundry، GitHub Actions، Managed Agents، Claude Design، Ultrareview، Fast Mode، Auto Mode (در متن فارسی: حالت خودکار)، Agent Teams (در متن فارسی: تیم‌های ایجنت).


هم‌گام‌سازی با نسخهٔ انگلیسی

هنگام به‌روزرسانی، تفاوت نسخهٔ انگلیسی را مبنا بگیرید:

git diff <last-synced-sha> origin/main -- ':!*/*.md' ':!ja' ':!uk' ':!vi' ':!zh'

برای هر فایل تغییرکرده، همان بخش را در fa/ بازترجمه کنید و پانویس نسخه را به‌روز کنید. لنگرهای درون‌صفحه‌ای را پس از هر تغییر عنوان با python scripts/check_cross_references.py بررسی کنید.