Skip to content

feat(i18n): localize project tutor page (#3784) - #3846

Open
ritikadevi-12 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
ritikadevi-12:feat/issue-3784-project-tutor-i18n
Open

ritikadevi-12 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
ritikadevi-12:feat/issue-3784-project-tutor-i18n

Conversation

@ritikadevi-12

Copy link
Copy Markdown
Contributor

Summary

Localizes the entire Project Tutor page experience under the projectTutor namespace using next-intl.

  • Created the projectTutor message namespace with 31 leaf keys.
  • Added full translation dictionaries across messages/en.json, messages/es.json, messages/hi.json, and messages/pt-BR.json with 100% key and parameter parity.
  • Localized src/components/ProjectTutorClient.tsx covering all static UI strings, tab titles, card text, status badges, buttons, error messages, and accessible ARIA attributes.
  • Integrated active locale formatting for dates and numeric values via useLocale() and Intl.DateTimeFormat.
  • Added automated projectTutor lookup and key validation tests in test/i18n.test.ts.

Note on Portuguese (pt-BR): Full Brazilian Portuguese translations were authored for all 31 keys. While src/i18n/config.ts currently registers locales = ["en", "es", "hi"] at runtime, the Portuguese translation dictionary is complete and will take effect immediately upon adding pt-BR to the runtime config.

Verification

  • pnpm exec vitest run test/i18n.test.ts passed (33/33 tests).
  • pnpm run type-check passed with 0 errors.
  • pnpm run lint passed with 0 errors.
  • Visual inspection and screenshot capture completed in Spanish (es) locale:
    • Desktop (1440x900)
    • Mobile (390px)

Closes #3784

@github-actions

Copy link
Copy Markdown

Thanks for your first PR on DevTrack! 🎉

A maintainer will review it within 48 hours. While you wait:

  • Make sure CI is passing (type-check + lint)
  • Double-check the PR description is filled out and the issue is linked
  • Feel free to ask questions in Discussions if you need help

If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project grow and attract more contributors!

@github-actions github-actions Bot added type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) labels Nov 26, 2026

@Priyanshu-byte-coder Priyanshu-byte-coder left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The component changes look right, but the translations themselves are missing: messages/en.json, es.json, hi.json and pt-BR.json have no projectTutor keys in this PR, so the page would show raw key names and the new i18n test can't pass. I think the JSON files just didn't get committed. Please add the projectTutor namespace to all four files.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate the Project tutor page

2 participants