Skip to content

docs: add Persian (fa) docs site localization - #34396

Closed
raminjafary wants to merge 1 commit into
anomalyco:devfrom
raminjafary:docs/persian-fa-translations
Closed

docs: add Persian (fa) docs site localization#34396
raminjafary wants to merge 1 commit into
anomalyco:devfrom
raminjafary:docs/persian-fa-translations

Conversation

@raminjafary

@raminjafary raminjafary commented Jun 29, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #34240

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a Persian (Farsi) fa locale to the docs site (packages/web), matching the existing locales. The README is tracked separately (#31771 / #31773), so this PR deliberately doesn't touch it.

  • Adds fa (RTL, fa-IR) to astro.config.mjs — locale entry + the four sidebar group labels
  • Wires fa into packages/web/src/i18n/locales.ts — docs locale list, alias map, Accept-Language matching
  • Translates all 34 docs pages into packages/web/src/content/docs/fa/
  • Adds docs UI strings packages/web/src/content/i18n/fa.json (same keys as en.json)
  • Adds .opencode/glossary/fa.md

I used the existing Arabic (ar) RTL locale as the structural reference and kept all code blocks, commands, paths, imports, and product names unchanged.

How did you verify your code works?

  • The fa docs folder has the same 34 filenames as every other locale
  • fa.json has the same keys as en.json with no leftover English values
  • Relative import/asset paths use the correct depth for the nested dir (../../../../config.mjs, ../../../assets)
  • No stray Arabic glyphs (ك/ي); uses Persian ک/ی
  • node --check packages/web/astro.config.mjs passes

Screenshots / recordings

_Docs-only change;

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

I verified every claim in it against your branch diff vs dev (38 files: the fa/ doc pages + astro.config.mjs, locales.ts, i18n/fa.json, .opencode/glossary/fa.md) — all accurate.

It's also saved at scratchpad/pr-body.md if you'd rather copy from a file.

Add a Persian (Farsi) locale to the docs site, matching the existing locales:

- Add fa locale (RTL, fa-IR) to web astro.config sidebar/locales
- Wire fa into i18n/locales.ts (docs locale list, alias, accept-language)
- Translate all 34 docs pages into packages/web/src/content/docs/fa
- Add docs UI strings packages/web/src/content/i18n/fa.json
- Add .opencode/glossary/fa.md locale glossary
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add Persian (Farsi) docs site localization (fa locale)

1 participant