mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
Add Persian (Farsi) language support (#7876)
## Description This PR adds Persian (Farsi) language support to ComfyUI. ## Changes - Added `fa` to output locales in `.i18nrc.cjs` with Persian-specific translation guidelines - Added Persian loaders for all translation files (main, nodeDefs, commands, settings) in `src/i18n.ts` - Added Persian (فارسی) option to language settings dropdown in `src/platform/settings/constants/coreSettings.ts` - Created empty Persian locale files in `src/locales/fa/` directory (will be populated by the CI translation system) ## Translation Guidelines The Persian translation will follow these guidelines: - Use formal Persian (فارسی رسمی) for professional tone throughout the UI - Keep commonly used technical terms in English when they are standard in Persian software (e.g., node, workflow) - Use Arabic-Indic numerals (۰-۹) for numbers where appropriate - Maintain consistency with terminology used in Persian software and design applications ## Testing The configuration has been tested to ensure: - TypeScript compilation succeeds - All four translation files are properly referenced - Language option appears correctly in settings ## Notes Following the contribution guidelines in `src/locales/CONTRIBUTING.md`, the empty translation files will be automatically populated by the CI system using OpenAI. Persian-speaking contributors can review and refine these translations after the automated generation. --- Special names to keep untranslated: flux, photomaker, clip, vae, cfg, stable audio, stable cascade, stable zero, controlnet, lora, HiDream, Civitai, Hugging Face ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7876-Add-Persian-Farsi-language-support-2e16d73d365081f69df0e50048ce87ba) by [Unito](https://www.unito.io) Co-authored-by: danialshirali16 <danialshirali16@users.noreply.github.com>
This commit is contained in:
@@ -410,7 +410,8 @@ export const CORE_SETTINGS: SettingParams[] = [
|
||||
{ value: 'es', text: 'Español' },
|
||||
{ value: 'ar', text: 'عربي' },
|
||||
{ value: 'tr', text: 'Türkçe' },
|
||||
{ value: 'pt-BR', text: 'Português (BR)' }
|
||||
{ value: 'pt-BR', text: 'Português (BR)' },
|
||||
{ value: 'fa', text: 'فارسی' }
|
||||
],
|
||||
defaultValue: () => navigator.language.split('-')[0] || 'en'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user