AOSSIE-Org / AOSSIE-Org/PictoPy

Feat: Implement i18n support for multi-language accessibility

未关闭
#1,105 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
283
派生
679
平均合并
7 天 2 小时
30 天内合并 PR
3

描述

### Describe the feature

**Is there an existing issue for this?**

* [x] I have searched the existing issues

**What happened?**
**Lack of Internationalization (i18n) Support**
The application currently uses hardcoded English strings throughout the frontend codebase. This prevents the interface from being translated into other languages, limiting accessibility for non-English users and blocking global community contributions.

**File:** `frontend/src` (General)

**Step Action**
| Step | Action |
| :--- | :--- |
| 1 | Open the PictoPy source code (e.g., `LeftSidebar.tsx` or `Settings.tsx`). |
| 2 | Locate UI elements like buttons or labels. |
| 3 | **Result:** Observe that text is hardcoded (e.g., `Save`) instead of using translation keys (e.g., `{t('save')}`). |
| 4 | Open the PictoPy application and go to Settings. |
| 5 | **Result:** There is no option to switch the interface language. |

**Suggested Solution**
Integrate a library like `i18next` and `react-i18next`. Extract hardcoded strings into locale files (e.g., `en.json`) to allow the community to submit translations for other languages.

**Record**

* [x] I agree to follow this project's Code of Conduct

### Add ScreenShots

*

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。