add some translate and update Persian#13132
Conversation
Add fa to LOCALE_LOADERS
Add fa item
enable Persian (fa) in language selector
enable Persian (fa) in language selector
add fa backend translations
Add fa to langFiles variable
Add Persian (fa) README.fa.md to project
💡 Codex ReviewWhen this option is chosen in Settings, This inserts ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 92d44afb18
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ```bash | ||
| bash -c "$(curl -sSL https://resource.1panel.pro/v2/quick_start.sh)" No newline at end of file |
There was a problem hiding this comment.
The new Persian README stops immediately after opening the quick-start code block, so the command fence is never closed and the rest of the README sections (post-install instructions, screenshot, support/security, license) are missing. Anyone following the newly added Persian badge lands on an incomplete document with malformed Markdown instead of the full localized README.
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68087da2e3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
What this PR does / why we need it?
This PR adds full Persian (Farsi) language support to 1Panel, including frontend UI, backend error messages, and the project README. It enables Persian‑speaking users to interact with the panel in their native language, improving accessibility and user experience.
Summary of your change
Frontend:
Added complete Persian translation file (frontend/src/lang/modules/fa.ts) with 5,573+ UI strings.
Registered the fa locale in LOCALE_LOADERS (frontend/src/lang/index.ts).
Added fa to the language selectors:
Panel settings page (frontend/src/views/setting/panel/index.vue)
Login dropdown (frontend/src/views/login/components/login-form.vue)
Added Element Plus Persian locale support (frontend/src/App.vue).
Extended the fu.ts helper with Persian translations for table and step components.
Backend (core & agent):
Added Persian translation files:
core/i18n/lang/fa.yaml (353+ backend error messages, task logs, system responses)
agent/i18n/lang/fa.yaml (613+ agent-related messages)
Registered fa in both core/i18n/i18n.go and agent/i18n/i18n.go.
Added Fa field to the Locale struct in agent/app/dto/app.go for app store localization.
Documentation:
Created docs/README.fa.md with the full Persian translation of the main README.
Added a Persian badge/link to all existing README files (ar, de, es, fr, id, ja, ko, ms, pt-br, ru, tr, zh-Hans, zh-Hant) and the root README.md.
Updated docs/TRANSLATION.md to include Persian (fa) in the language list.
All translations follow the existing structure and preserve placeholders (e.g., {{ .name }}, {{ .err }}, {{ .detail }}). No functional code changes; only localization data and configuration added.