Files
claude-howto/fa/07-plugins/documentation/templates/function-docs.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

1.5 KiB

تابع: functionName

توضیح

توضیح مختصری از اینکه این تابع چه کاری انجام می‌دهد.

امضا

function functionName(param1: Type1, param2: Type2): ReturnType

پارامترها

پارامتر نوع الزامی توضیح
param1 Type1 بله توضیح param1
param2 Type2 خیر توضیح param2

بازگشتی

نوع: ReturnType

توضیح چیزی که بازگردانده می‌شود.

استثناها

  • Error: هنگامی که ورودی نامعتبر ارائه شود
  • TypeError: هنگامی که نوع اشتباه ارسال شود

نمونه‌ها

استفاده پایه

const result = functionName('value1', 'value2');
console.log(result);

استفاده پیشرفته

const result = functionName(
  complexParam1,
  { option: true }
);

یادداشت‌ها

  • یادداشت‌ها یا هشدارهای اضافی
  • ملاحظات عملکرد
  • بهترین روش‌ها

همچنین ببینید


آخرین به‌روزرسانی: ۴ اوت ۲۰۲۶ نسخه Claude Code: 2.1.220 منابع: