Uh oh!
There was an error while loading. Please reload this page.
docs: add Persian (fa) docs site localization - #34396
Conversation
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
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
Closes#34240
Type of change
What does this PR do?
Adds a Persian (Farsi)
falocale 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.fa(RTL,fa-IR) toastro.config.mjs— locale entry + the four sidebar group labelsfaintopackages/web/src/i18n/locales.ts— docs locale list, alias map, Accept-Language matchingpackages/web/src/content/docs/fa/packages/web/src/content/i18n/fa.json(same keys asen.json).opencode/glossary/fa.mdI 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?
fadocs folder has the same 34 filenames as every other localefa.jsonhas the same keys asen.jsonwith no leftover English values../../../../config.mjs,../../../assets)ك/ي); uses Persianک/یnode --check packages/web/astro.config.mjspassesScreenshots / recordings
_Docs-only change;
Checklist
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.