Repository navigation
feat: add Tamil (ta) locale support - #1500
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoAdd Tamil locale support across FloCafe
AI Description
Diagram
High-Level Assessment
Files changed (28)
|
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 |
c065ff5 to
391c59f
Compare
Add Tamil (ta-IN) locale bundle across all 35 namespaces (3,477 keys), register ta in LANGUAGES, add Tamil express and demo setup seed data, include Tamil font stacks across browser and raster print renderers, regenerate derived main-process print labels, and extend the locale test matrices and documentation. Fixes #1475
…rminology reference
391c59f to
73957f3
Compare
Intent
Implement full Tamil (
ta,ta-IN,தமிழ்) 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 #1475
What Changed
ta,ta-IN,தமிழ்) to the language registry (frontend/src/lib/i18n/languages.ts) along with the full UI message catalog (frontend/src/lib/i18n/messages/ta.json) covering POS, KDS, Server App, Customer Display, Setup, Settings, and WhatsApp report templates.main/status-messages.ts), sample restaurant seed data (main/setup/seed-data.ts), generated thermal print/KOT labels (main/print/print-labels.generated.ts), and Tamil script font fallback stacks across web print and raster canvas renderers (frontend/src/lib/printer/*,shared/print/raster-canvas.ts).tests/*,frontend/e2e/phase7-setup-print-i18n.spec.ts) to cover Tamil translations, print rendering, and seed data.Risk Assessment
✅ Low: Well-bounded addition of the Tamil (ta / ta-IN) locale across message catalogs, setup seed data, startup/shutdown status messages, print label tables, font stacks, documentation, and test suites following established i18n patterns.
Testing
Ran
npm run i18n:check,npm run docs:check, 12 targeted Node/TypeScript i18n, print, setup, WhatsApp report, and RTL/LTR test suites, the Playwright E2E print-test locale suite (frontend/e2e/phase7-setup-print-i18n.spec.ts), and drove all 9 Tamil (ta) user and adversarial scenarios live against the running FloCafe main server (:3001), standalone KDS server (:3002), and standalone Server App (:3003) in headless Chromium, capturing 10 screenshots and 1 WhatsApp report transcript in the evidence directory; all checks and scenarios passed.Evidence: 09-whatsapp-reports-tamil.txt - Tamil WhatsApp plain-text X-Report, Z-Report, and Daily Sales summary
=== X-REPORT WHATSAPP MESSAGE (ta-IN) === 📊 X அறிக்கை - சென்னை காபி ஹவுஸ் 📅 வணிகத் தேதி: 7 நவ., 2026 (7/11/26, 9:30 AM - 8/11/26, 9:30 AM) 💰 விற்பனைச் சுருக்கம் • மொத்த வசூல்: ₹18,450.00 • பணம் திரும்பப்பெறுதல்கள்: ₹300.00 • நிகர வசூல்: ₹18,150.00 • 42 பில்கள் === Z-REPORT WHATSAPP MESSAGE (ta-IN) === 📊 Z அறிக்கை #12 - சென்னை காபி ஹவுஸ் 👤 முடித்தவர்: கார்த்திக் • வேறுபாடு: ₹0.00 (✅ சரியாக உள்ளது) === DAILY SALES WHATSAPP SUMMARY (ta) === சென்னை காபி ஹவுஸ் தினசரி விற்பனை அறிக்கைPipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 18 issues found → auto-fixed ✅
docs/architecture/internationalization.md- merge conflict rebasing onto origin/maindocs/guides/adding-a-language.md- merge conflict rebasing onto origin/maindocs/reference/translation-terminology.md- merge conflict rebasing onto origin/mainfrontend/src/lib/i18n/languages.ts- merge conflict rebasing onto origin/mainfrontend/src/lib/printer/order-slip-web-print.ts- merge conflict rebasing onto origin/mainfrontend/src/lib/printer/web-print.ts- merge conflict rebasing onto origin/mainmain/print/print-labels.generated.ts- merge conflict rebasing onto origin/mainmain/setup/seed-data.ts- merge conflict rebasing onto origin/maintests/browser-receipts.test.ts- merge conflict rebasing onto origin/maintests/decoupled-ui-locale.test.ts- merge conflict rebasing onto origin/maintests/i18n-audit-remediations.test.ts- merge conflict rebasing onto origin/maintests/phase3-print-regressions.test.ts- merge conflict rebasing onto origin/maintests/phase7-setup-i18n.test.ts- merge conflict rebasing onto origin/maintests/print-labels.test.ts- merge conflict rebasing onto origin/maintests/rtl-dashboard-pos-common.test.ts- merge conflict rebasing onto origin/maintests/rtl-kds-server-whatsapp.test.ts- merge conflict rebasing onto origin/maintests/rtl-setup-auth-settings.test.ts- merge conflict rebasing onto origin/maintests/translations.test.ts- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
🔧 **Review** - 1 issue found → auto-fixed ✅
docs/reference/translation-terminology.md:177- The Tamil terminology reference documents dine-in asஉள்ளே உண்பது, but the shipped translations infrontend/src/lib/i18n/messages/ta.json:682(orders.dineIn),frontend/src/lib/i18n/messages/ta.json:972(pos.orderTypeDineIn), andmain/print/print-labels.generated.ts:3816(pos.orderTypeDineIn) useஉணவகத்தில் சாப்பிட. Updatedocs/reference/translation-terminology.md:177to match the actual translation valueஉணவகத்தில் சாப்பிட.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.
🔧 **Test** - 1 issue found → auto-fixed → no changes applied ✅
none (prior payload recorded no executed tests or live validation)🔧 Fix applied.
✅ Re-checked - no issues remain.
npm run build && npm run build:frontend(built backend and static Next.js frontend to stand up live servers)Live Playwright Chromium end-to-end verification against standalone Main (:13101), KDS (:13102), and Server App (:13103) servers across/setup,/pos,/settings,/customer-display,/kds-standalone,/server-standalone, and/print-testin Tamil (ta/ta-IN)Live Chromium rendering and screenshot capture of Tamil 80mm browser receipt (generateBillHtml), KOT slip (generateKotHtml), order slip (generateOrderSlipHtml), and WhatsApp plain-text reports (formatDailySalesWhatsAppMessage,formatCashCloseWhatsAppMessage)npm run test:script-coveragenpm run test:translationsnpm run test:print-labelsnpm run test:decoupled-ui-localenpm run test:i18n-audit-remediationsnpm run test:status-messagesnpm run test:rtl-setup-auth-settingsnpm run test:rtl-dashboard-pos-commonnpm run test:rtl-kds-server-whatsappnpm run test:phase7-setup-i18nnpm run test:print-kernelnpm run test:browser-receipts✅ No issues found.
npm run buildnpx tsx tests/tmp-tamil-live-verify.cjs(live standalone Main :13101, KDS :13102, Server App :13103 + Playwright Chromium visual & API verification across 6 scenarios)npm run i18n:checknpm run test:translationsnpm run test:print-labels✅ No issues found.
npm run i18n:checknpx tsx tests/print-labels.test.tsnpx tsx tests/browser-receipts.test.tsnpx tsx tests/decoupled-ui-locale.test.tsnpx tsx tests/i18n-audit-remediations.test.tsnpx tsx tests/phase3-print-regressions.test.tsnpx tsx tests/phase7-setup-i18n.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/print-kernel.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/reports-whatsapp.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.tsnpm run build && npm run build:frontendfollowed by live Playwright Chromium verification against standalone Main (:13101), KDS (:13102), and Server App (:13103) servers across Setup, POS, Settings, Customer Display, KDS, Server App, Print-Test, Browser Receipts/KOT, WhatsApp reports, and US/USD country-currency decoupling🔧 No changes applied.
✅ Re-checked - no issues remain.
npm run i18n:checknpm run test:translationsnpm run test:print-labelsnpm run test:print-kernelnpm run test:status-messagesnpm run test:phase7-setup-i18nnode tests/run-electron-node-test.cjs tests/reports-whatsapp.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/browser-receipts.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/phase3-print-regressions.test.tsnpm run test:rtl-setup-auth-settingsnpm run test:rtl-dashboard-pos-commonnpm run test:rtl-kds-server-whatsappcd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromiumnode tests/run-electron-node-test.cjs /tmp/run-live-tamil-validation.cjs(live Chromium E2E across:3001,:3002,:3003)✅ No issues found.
npm run i18n:checknpm run docs:checknpx tsx tests/translations.test.tsnpx tsx tests/phase7-setup-i18n.test.tsnpx tsx tests/decoupled-ui-locale.test.tsnpx tsx tests/print-labels.test.tsnpx ts-node --transpile-only -P tests/tsconfig.json tests/print-kernel.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/reports-whatsapp.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/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.tscd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.tsLive Playwright Chromium + Express/SQLite/KDS/ServerApp verification across :3001, :3002, and :3003 capturing 01-setup-wizard-tamil.png through 10-pos-tamil-decoupled-usd.png✅ **Document** - passed
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.
✅ No issues found.