Repository navigation
feat: add Hausa (ha) locale support - #1494
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoAdd Hausa locale across FloCafe
AI Description
Diagram
High-Level Assessment
Files changed (23)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt |
Intent
Implement full Hausa (
ha,ha-NG,Hausa) language support across the entire FloCafe application, including the main POS app, KDS, Server App, Customer Display, Setup, Settings, thermal print/KOT labels, WhatsApp plain-text reports, and sample seed data.Fixes #1478
What Changed
ha/ha-NG) locale to the frontend language registry (frontend/src/lib/i18n/languages.ts) along with the complete message catalog (frontend/src/lib/i18n/messages/ha.json).main/status-messages.ts), generated thermal receipt/KOT/Z-report/WhatsApp print labels (main/print/print-labels.generated.ts), and localized sample catalog seed data (main/setup/seed-data.ts).Risk Assessment
✅ Low: Additive Hausa (ha / ha-NG) locale registration, message catalogue, generated print labels, express/demo seed data, documentation updates, and test coverage following the existing language-addition contract without altering core runtime control flow or database schema.
Testing
Ran
npm run i18n:check, all 11 localization, receipt, print-label, WhatsApp report, RTL/LTR, and status-message test suites (includingtests/status-messages.test.tsandtests/reports-whatsapp.test.tscovering the uncommitted changes), plus the Playwright E2E print-test locale suite and isolated live FloCafe servers (:4401, :4402, :4403) to capture visual and text evidence across Setup, POS, Settings, KDS, Customer Display, Server App, browser/thermal receipts and KOTs, WhatsApp reports, and Electron status messages in Hausa (ha); all checks and live scenarios passed.Evidence: Thermal receipt, thermal KOT, WhatsApp daily sales/Z-report, and Electron status messages in Hausa (ha)
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
🔧 **Test** - 2 issues found → no changes applied ✅
git -C ~/.no-mistakes/worktrees/de2296f2e6f8/01M6SGSVDZPTFAYDXWFEFA5WBV statusandgit -C ~/.no-mistakes/worktrees/de2296f2e6f8/01M6SGSVDZPTFAYDXWFEFA5WBV diff). Respond with fix to validate it, or abort.🔧 No changes applied.
✅ Re-checked - no issues remain.
npm run i18n:checknpx ts-node --transpile-only -P tests/tsconfig.json tests/status-messages.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/reports-whatsapp.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/print-labels.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/phase7-setup-i18n.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/decoupled-ui-locale.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/i18n-audit-remediations.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/browser-receipts.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/phase3-print-regressions.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-dashboard-pos-common.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-kds-server-whatsapp.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-setup-auth-settings.test.tsCI=1 E2E_BASE_URL=http://127.0.0.1:4301 E2E_KDS_BASE_URL=http://127.0.0.1:4302 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4303 npx --prefix frontend playwright test e2e/phase7-setup-print-i18n.spec.ts --config frontend/playwright.config.ts✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.