Translate the interface (i18n foundation)
Chưa có ai nhận issue này.
Đá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
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, next.js
- Lĩnh vực
- internationalization
Hướng nghiên cứu
Start by checking frontend/package.json to identify the Next.js version, then read the pages and components under frontend/pages/ and frontend/components/ for core-loop text. Choose a compatible i18n library and explain the choice in the pull request. Done means English plus one complete second language, locale-aware formatting and language selection, passing npm test, npm run lint and node scripts/check-boundary.js, with battle-page screenshots in both languages.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
All interface text is hard-coded English across frontend/pages/ and frontend/components/. Competitive programming communities are huge in India, Brazil, China, Korea, Vietnam and Eastern Europe, and a translated interface opens CodeArena to them.
Phase 1, the foundation (this issue)
- Add an i18n library that works with the Next.js version in
frontend/package.json. Explain the choice in the pull request. - Move strings for the core loop into message files: home, login and register, practice, problem page, matchmaking, battle and results. Other pages can follow in later pull requests.
- Language picker in settings and the footer, remembered per player. Default from the browser's language.
- Format numbers, dates and times with the player's locale.
- Problem statements stay in English for now. Translating problems is a separate design question.
Rules
- No string concatenation for sentences. Use the library's interpolation and plural rules, since word order and plurals differ by language.
- A lint check or test that fails when a core-loop page renders a hard-coded English string.
- Missing translations fall back to English, never to a key name.
Definition of done
- English extracted for the pages above, plus one complete second language from a fluent speaker.
- Screenshots of the battle page in both languages, including a long-text language to catch layout overflow.
npm test,npm run lintandnode scripts/check-boundary.jspass.
Translators: once phase 1 lands, comment here with the language you want to take.
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sennaicodes/codearena
-
Add issue and pull request templatesCó thể làm lại được @franciscorodr26 đã nhận 18 ngày trước và không có pull request nào đang mở. Đang mởdocumentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
sennaicodes/codearena#13 · 1 bình luận ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
sennaicodes/codearena#34 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
sennaicodes/codearena#33 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
sennaicodes/codearena#32 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
sennaicodes/codearena#31 ·
Tất cả issue của sennaicodes/codearena
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apex-dev-tools/apex-log-parser#199 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
ReadBufferStream.addBuffer adds the full ArrayBuffer of a typed array view, and ignores its byteOffsetCó thể đã có người làm @wayfarer3130 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Expo 57 example: pnpm install fails with ERR_PNPM_TRUST_DOWNGRADECó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởbug react-native team/client-libraries
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PostHog/posthog-js#5442 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày