Skip to content

feat(i18n): add Persian (Farsi) translation for app, UI, desktop, and README - #33338

Closed
danialshirali16 wants to merge 3 commits into
anomalyco:devfrom
danialshirali16:dev
Closed

feat(i18n): add Persian (Farsi) translation for app, UI, desktop, and README#33338
danialshirali16 wants to merge 3 commits into
anomalyco:devfrom
danialshirali16:dev

Conversation

@danialshirali16

@danialshirali16 danialshirali16 commented Jun 22, 2026

Copy link
Copy Markdown

Closes

Type of change

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

Description

Adds Persian (Farsi, fa) as a new locale. Persian is right-to-left, so I
followed the existing Arabic (ar) locale as the pattern.

  • Added fa translation dictionaries: packages/app/src/i18n/fa.ts (941 keys),
    packages/ui/src/i18n/fa.ts (152 keys), and
    packages/desktop/src/renderer/i18n/fa.ts (21 keys).
  • Registered the locale in packages/app/src/context/language.tsx (Locale type,
    LOCALES, INTL, LABEL_KEY, loader, and browser locale matcher) and in
    packages/desktop/src/renderer/i18n/index.ts.
  • Added fa to packages/app/src/i18n/parity.test.ts and a language.fa label.
  • Added README.fa.md and linked it in the language nav of the other READMEs.

The key sets match en.ts exactly so no string falls back to English.

Verification

  • Verified key parity for all three dictionaries against en.ts (no missing or
    extra keys) by importing and diffing the dictionaries.
  • Confirmed the i18n parity-test keys are translated and differ from English.
  • Placeholders, brand/provider names, and keyboard keys were left untranslated.

Checklist

  • I tested these changes locally
  • This PR contains no unrelated changes

claude and others added 3 commits June 22, 2026 10:12
Add README.fa.md and link it in the language navigation of all
existing README translations.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cg3niCURRTSoFMxcnU3bQk
Add the 'fa' locale across the app, ui, and desktop i18n dictionaries
and wire it into the locale registry, detection, and language selector.

- packages/app/src/i18n/fa.ts (941 keys)
- packages/ui/src/i18n/fa.ts (152 keys)
- packages/desktop/src/renderer/i18n/fa.ts (21 keys)
- Wire 'fa' into language context, desktop i18n index, and parity test
- Add language.fa label

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cg3niCURRTSoFMxcnU3bQk
…and README (#1)

feat(i18n): add full Persian (Farsi) translation — app, UI, desktop, and README
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 22, 2026
@github-actions github-actions Bot closed this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants