Uh oh!
There was an error while loading. Please reload this page.
docs: add Farsi (fa) translations - #37184
Conversation
- Add README.fa.md and link فارسی in all README language bars - Register fa locale (rtl) in packages/web/astro.config.mjs - Translate all docs pages under packages/web/src/content/docs/fa/ - Add .opencode/glossary/fa.md translation guidance
The following comment was made by an LLM, it may be inaccurate: Found a potentially related PR: PR #34396: docs: add Persian (fa) docs site localization This PR appears to be addressing the same feature—adding Farsi/Persian ( |
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
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:
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. |
Issue for this PR
No linked issue. Adds Persian (Farsi,
fa) localization. Related work: #34396 already adds thefadocs locale, allpackages/web/src/content/docs/fa/pages, the.opencode/glossary/fa.mdglossary, and web UI string localization (packages/web/src/i18n/fa.json). This PR complements it by covering the README layer that #34396 does not:README.fa.mdplus theفارسیlink in the language bar of all 22 README files.Type of change
What does this PR do?
Adds Farsi (Persian,
fa) translations across the three localization layers OpenCode already uses:README.fa.mdplus theفارسیlink added to the language bar in all 22 README files.falocale (lang: fa-IR,dir: rtl) inpackages/web/astro.config.mjs, and translated all 36 docs pages intopackages/web/src/content/docs/fa/. Relative import/asset paths were adjusted one level deeper..opencode/glossary/fa.mdwith preferred Farsi terms and RTL guidance.Farsi is RTL, so the locale sets
dir: "rtl"and Starlight renders the docs right-to-left. Technical artifacts (commands, flags, code, URLs, model IDs, config keys) are preserved verbatim per.opencode/command/translate.md.How did you verify your code works?
README.fa.mdrenders with the full language bar.fa/counterpart and thatconfig.mjsimports use../../../../config.mjs.localesshape inastro.config.mjs.Screenshots / recordings
Not applicable (docs/markdown changes).
Checklist