AOSSIE-Org / AOSSIE-Org/PictoPy

Feat: Implement i18n support for multi-language accessibility

Đang mở
#1,105 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
283
Fork
679
Merge trung bình
7 ngày 2 giờ
Pull request đã merge (30 ngày)
3

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.