Skip to content

feat(i18n): add Hausa (ha) locale translation#1219

Merged
Emmyt24 merged 1 commit into
Emmyt24:mainfrom
Timrossid:feat/i18n-hausa-locale
May 30, 2026
Merged

feat(i18n): add Hausa (ha) locale translation#1219
Emmyt24 merged 1 commit into
Emmyt24:mainfrom
Timrossid:feat/i18n-hausa-locale

Conversation

@Timrossid
Copy link
Copy Markdown
Contributor

Summary

Adds Hausa (\ha) locale support to Nova Launch, making it the first Nigerian language available in the app.

Changes

  • *\ rontend/src/i18n/locales/ha.json* — Full Hausa translation file with exact same key structure as \en.json\
  • *\ rontend/src/i18n/config.ts* — Registered \ha\ locale with Nigerian flag and West Africa region
  • *\ rontend/src/components/LanguageSelector/LanguageSelector.tsx* — Made rounded-corner logic dynamic (previously hardcoded to \en/\sw)
  • *\ rontend/src/test/i18n/locales.test.ts* — New i18n key-completeness test ensuring all locales have exactly the same keys as \en.json\

Testing

  • \pnpm test -- src/test/i18n/locales.test.ts\ — 10/10 tests pass (key completeness for all 6 locales)

Notes

  • Community review requested for Hausa translations — see PR description.

Closes #1216

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@Timrossid Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Timrossid Timrossid force-pushed the feat/i18n-hausa-locale branch 2 times, most recently from 98afba7 to 451daea Compare May 30, 2026 13:30
- Create ha.json with full Hausa translations
- Register Hausa in i18n config.ts
- Add Hausa to LanguageSelector component
- Add key-completeness i18n test for all locales
- Integrate LanguageSelector into App layout
- Fix missing i18next-browser-languagedetector dependency
- Make LanguageSelector rounded corners dynamic

Closes Emmyt24#1216
@Timrossid Timrossid force-pushed the feat/i18n-hausa-locale branch from 451daea to c218739 Compare May 30, 2026 14:12
@Emmyt24 Emmyt24 merged commit 9554f38 into Emmyt24:main May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(i18n): add Hausa (ha) locale translation file

2 participants