Type: docs
Sync the tutorial, its translations and root docs to Claude Code
2.1.322 (range 2.1.317-2.1.322). P1 fixes (Fable 5.2, fast mode on
Fable 5.2, scheduled-task expiry/restore/jitter, subagent effort on
another model, Ask-each-time subagents, -p background time limit,
mods in auto/bypass/dontAsk) are mirrored to vi/ja/uk/ko/fa where the
text exists. P3 additions are English only. Six P2 docs-vs-changelog
conflicts are left for maintainer decision.
Validation: pre-commit run --all-files passes with
SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid
because the `language: node` mermaid hooks fail to install locally
(pre-commit 4.7.0: "must have package.json or additional_dependencies").
scripts/check_mermaid.py --strict was run directly instead: Pele
rendered all 416 Mermaid blocks.
Type: chore
## Summary
Follow-up to #208 (Persian translation). It wires `fa/` into the repo
tooling the same way #228 did for Korean, and syncs the translation from
v2.1.310 to v2.1.316.
## Changes
**Tooling** (`feat(i18n)`)
- `build_epub.py`: `--lang fa` builds `claude-howto-guide-fa.epub`.
- `build_website.py`: `--lang fa`; `fa` is in `EXCLUDE_DIRS`, so Persian
pages stay out of the English site.
- CI: the EPUB matrix in `test.yml` now includes `fa`. The
markdown-rendering docstring and test now list `fa`.
- Pre-commit: new `persian-markdown-lint`, `persian-cross-references`,
`persian-mermaid` and `persian-link-check` hooks. `persian-mermaid` is
added to the offline `SKIP=` lists in `.pre-commit-config.yaml`,
`CONTRIBUTING.md` and `CLAUDE.md`.
- `scripts/README.md`: usage text updated.
- Language switchers: `فارسی` added to `vi/`, `zh/`, `uk/`, `ja/` and
`ko/` READMEs and to the landing-page footer.
**Translation** (`docs(fa)`)
- Applies the English changes from #230 (v2.1.316) to the 15 affected
`fa/` files: 192 lines added, 104 removed.
- Moves the misplaced `دسترسپذیری (v2.1.310)` Monitor callout in
`fa/09-advanced-features/README.md` to the position it has in English.
## Verification
| Check | Result |
|---|---|
| `fa/` line counts, URLs and code-fence positions vs English `main` |
identical in all files |
| `pre-commit run --all-files`, including the new Persian hooks | pass |
| `pytest scripts/tests/` | 198 passed |
| ruff, mypy, bandit | clean |
| `build_epub.py --lang fa` + `check_epub_diagrams.py` | 61 diagrams, 0
placeholders |
| `build_website.py --lang fa` | builds; English site has no `fa/` pages
|
## Known limitations (not in this PR)
- The EPUB and website templates hard-code `lang="en"` and have no
`dir="rtl"`, so Persian pages render left-to-right. Fixing that means
passing the language into the HTML templates for every locale.
- `fa/.github/` has no `TESTING.md`, `SECURITY_REPORTING.md` or
`pull_request_template.md`; the other locales have all three.
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>