Add Persian (fa) locale with RTL support#3774
Conversation
Introduce fluent Persian UI translations and wire fa into the i18n stack, following the same RTL layout behavior as Arabic via a shared isRtlLanguage helper.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Nice addition! Persian locale with RTL support is important for Farsi-speaking users. Updating the i18next parser config and both READMEs is thorough. |
Thanks bro |
|
Please also change the font to a more suitable Persian font, such as Vazir. The current font, being Arabic, is not appropriate for Persian text. |


Summary
fa) as a fully supported UI language with 982 translated stringsfaacross locale parsing, settings schema, i18n resources, and tooling configsChanges
src/renderer/i18n/locales/fa/translation.json(new)src/renderer/i18n/rtl.tswithisRtlLanguage()forar+faindex.ts,locales.ts,parser.ts,i18next-parser.config.mjs,script/translate.mjssrc/shared/types.ts,src/shared/types/settings.ts__root.tsx,Sidebar.tsx,StyledMenu.tsx,ThreadHistoryDrawer.tsx,useAppTheme.tsaccept-language.ts,openLinkWithAuth.tsREADME.md,doc/README-CN.mdTest plan
pnpm installpnpm run devpnpm run checkpnpm run lintScreenshots
Contributor Agreement