[FEATURE]: feat: Implement i18n (Internationalization) support across the entire project

Đang mở
#268 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@amankv1234 đang làm issue này rồi.

Từ ngày 15/10/2026.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, react

Hướng nghiên cứu

Start by surveying the affected src/pages/ and src/components/ directories, including SettingsPage, OverviewPage, and the Navbar/Header, to inventory user-facing strings. Review the proposed i18next, react-i18next, and language-detection setup before planning the work. Done means strings use translation keys, the language switcher works, and the selected language persists after reload.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Feature and its Use Cases

Overview

Currently, OrgExplorer does not support multiple languages. All text strings are hardcoded directly into the React components (e.g., SettingsPage, OverviewPage, etc.). To make the platform globally accessible and user-friendly for non-English speakers, we need to introduce internationalization (i18n).

Goal

Implement a complete i18n setup across the entire application using a library like react-i18next. This will lay the foundation for supporting multiple languages and ensure all hardcoded text is moved to translation files.

Proposed Solution

  1. Setup i18n Library: Install and configure i18next and react-i18next.
  2. Create Locales Structure: Create a src/locales/ directory with JSON files for different languages (starting with English en.json as the base).
  3. Extract Hardcoded Strings: Go through all components, pages, and hooks to replace hardcoded strings with the useTranslation() hook (e.g., replace "Settings" with t('settings.title')).
  4. Language Switcher UI: Add a simple Language Switcher component in the navbar or settings page to allow users to toggle between languages.
  5. Persist Language Choice: Save the selected language in localStorage or IndexedDB so the preference is remembered across sessions.

Affected Areas

  • Entire src/pages/ directory
  • Entire src/components/ directory
  • Navbar / Header
  • Any utility or service that displays user-facing messages

Technical Details

  • Recommended packages: i18next, react-i18next, i18next-browser-languagedetector
  • Base language: English (en)
  • (Optional) We can also add dummy translations for a second language (e.g., Hindi hi or Spanish es) to verify the language switching functionality.

Acceptance Criteria

  • react-i18next is successfully set up and configured.
  • No hardcoded English text remains in the UI components.
  • A language switcher component is added and functional.
  • Language preference persists on page reload.
Additional Context

No response

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Ngôn ngữ chính
JavaScript
Star
53
Fork
182
Merge trung bình
18 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/OrgExplorer

Tất cả issue của AOSSIE-Org/OrgExplorer

Issue tương tự

Thêm issue về JavaScript

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.