Skip to content

[Feature Request] Localization and Routing Rules for Iran (Farsi Support) #24

@OneOhCloud

Description

@OneOhCloud

Description

To improve the user experience for users in Iran, we need to implement localization and optimize network routing rules for the Iranian network environment. This involves translating the UI and configuring sing-box rules to ensure local traffic is routed correctly.

Tasks

1. Localization (Farsi/Persian)

Create a new translation file for Iran (Farsi) based on the existing English configuration.

  • Reference Source: lang/en.json

  • Goal: Translate all UI strings. Please keep in mind that Farsi is a Right-to-Left (RTL) language.

2. Sing-box Rules Optimization

Modify the sing-box rule templates to prioritize direct connections for Iranian local IP addresses and domains. The following files need to be updated:

  • mixed-rules.jsonc

  • tun-rules.jsonc

Specific Requirements:

  • Reference Template: conf-template (v1.12/zh-cn)

  • Modification: Replace the existing direct connection rules (previously optimized for China) with Iran-specific logic.

  • Target Scope: Include .ir top-level domains, popular Iranian websites, and Iranian IP ranges (GeoIP IR).

Resources

Additional Context

Once these two core tasks (localization and basic direct routing rules) are resolved, I will handle the remaining integration and fine-tuning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions