Skip to content

feat: add Tamil (ta) locale support - #1500

Merged
khaira777 merged 4 commits into
mainfrom
fm/flocafe-i18n-tamil
Nov 7, 2026
Merged

khaira777 merged 4 commits into
mainfrom
fm/flocafe-i18n-tamil

Conversation

@khaira777

@khaira777 khaira777 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Added Tamil (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.
  • Extended backend localized status messages (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).
  • Updated internationalization documentation, README locale tables, and unit/E2E test suites (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.

  • Live validation: ✅ go - 9 of 9 scenarios driven live against the product
Scenario Result Live Evidence
Select Tamil (தமிழ், ta) in the first-run Setup Wizard and initialize with demo data to verify Tamil wizard UI and localized Tamil sample categories, products, modifiers, and kitchen stations ✅ pass live 01-setup-wizard-tamil.png; npx tsx tests/phase7-setup-i18n.test.ts
Log into the main POS app in Tamil and add seeded Tamil menu items (மசாலா தோசை, பில்டர் காபி) to the cart to verify Tamil navigation, categories, product cards, and cart totals ✅ pass live 02-pos-tamil-catalog-and-cart.png
Navigate to Store Settings (/settings) in Tamil and verify localized settings sections, labels, and store configuration controls ✅ pass live 03-settings-tamil.png
Open Customer Display (/customer-display) with Tamil store language and verify localized customer-facing order status headings (தயாராகிறது, பெற்றுக்கொள்ளத் தயார்) ✅ pass live 04-customer-display-tamil.png
Sign into the standalone KDS server (:3002) with an active Tamil order and verify Tamil KDS stage tabs (காத்திருக்கிறது, தயாராகிறது, தயார், பரிமாறப்பட்டது, ரத்துசெய்யப்பட்டது) and ticket rendering ✅ pass live 05-kds-standalone-tamil.png
Sign into the standalone Server App (:3003) and verify it inherits Tamil store locale via /api/server-app/info and renders Tamil tableside ordering UI (சர்வர் செயலி, தற்போதைய சீட்டு, சமையலறைக்கு அனுப்… ✅ pass live 06-server-app-tamil.png
Render the Print Test page (/print-test), 80mm browser receipt HTML, and 80mm KOT slip HTML in Tamil (ta-IN) and verify Tamil print labels, LTR direction, and Noto Sans Tamil font stack ✅ pass live 07-print-test-tamil.png; 08a-tamil-browser-receipt.png; 08b-tamil-kot-slip.png; cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts
Generate WhatsApp plain-text X-Report, Z-Report, and Daily Sales summary messages in Tamil (ta / ta-IN) and verify localized Tamil headings, payment breakdowns, and drawer reconciliation labels ✅ pass live 09-whatsapp-reports-tamil.txt; npx ts-node --transpile-only -P tests/tsconfig.json tests/reports-whatsapp.test.ts
Adversarial boundary: configure store country/currency to US/USD while keeping UI language Tamil (ta) and verify POS preserves Tamil UI strings while formatting prices in USD ($) ✅ pass live 10-pos-tamil-decoupled-usd.png; npx tsx tests/decoupled-ui-locale.test.ts

01-setup-wizard-tamil.png - First-run Setup Wizard in Tamil (ta)
02-pos-tamil-catalog-and-cart.png - Main POS with Tamil seeded menu and cart in INR
03-settings-tamil.png - Store Settings in Tamil (ta)
04-customer-display-tamil.png - Customer Display (/customer-display) in Tamil
05-kds-standalone-tamil.png - Standalone KDS (:3002) with active Tamil order
06-server-app-tamil.png - Standalone Server App (:3003) in Tamil
07-print-test-tamil.png - Print Test page (/print-test) in Tamil
08a-tamil-browser-receipt.png - Browser/HTML 80mm receipt in Tamil (ta-IN)
08b-tamil-kot-slip.png - Browser/HTML 80mm KOT slip in Tamil (ta-IN)

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) === சென்னை காபி ஹவுஸ் தினசரி விற்பனை அறிக்கை

=== 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 பில்கள்

💳 *கட்டணங்கள்*
• ரொக்கம்: ₹6,450.00 (18)
• கார்டு: ₹11,700.00 (24)

💵 *கல்லா கணக்குச் சரிபார்ப்பு*
• தொடக்க இருப்பு: ₹2,000.00
• எதிர்பார்க்கப்படும் ரொக்கம்: ₹8,450.00

=== Z-REPORT WHATSAPP MESSAGE (ta-IN) ===
📊 *Z அறிக்கை #12 - சென்னை காபி ஹவுஸ்*
📅 *வணிகத் தேதி:* 7 நவ., 2026 (7/11/26, 9:30 AM - 8/11/26, 9:30 AM)
👤 *முடித்தவர்:* கார்த்திக்

💰 *விற்பனைச் சுருக்கம்*
• மொத்த வசூல்: ₹18,450.00
• பணம் திரும்பப்பெறுதல்கள்: ₹300.00
• நிகர வசூல்: ₹18,150.00
• 42 பில்கள்

💳 *கட்டணங்கள்*
• ரொக்கம்: ₹6,450.00 (18)
• கார்டு: ₹11,700.00 (24)

💵 *கல்லா கணக்குச் சரிபார்ப்பு*
• தொடக்க இருப்பு: ₹2,000.00
• எதிர்பார்க்கப்படும் ரொக்கம்: ₹8,450.00
• எண்ணப்பட்ட ரொக்கம்: ₹8,450.00
• வேறுபாடு: ₹0.00 (✅ சரியாக உள்ளது)

📝 *குறிப்புகள்:* அனைத்து கணக்குகளும் சரிபார்க்கப்பட்டன

=== DAILY SALES WHATSAPP SUMMARY (ta) ===
*சென்னை காபி ஹவுஸ்*
தினசரி விற்பனை அறிக்கை
வணிகத் தேதி: 7 Nov 2026 (Asia/Kolkata)
0 ஆர்டர்கள் · 0 பில்கள்

*விற்பனைச் சுருக்கம்*
மொத்த வசூல்: ₹0.00
பணம் திரும்பப்பெறுதல்கள்: ₹0.00
*நிகர வசூல்: ₹0.00*
வரி: ₹0.00
தள்ளுபடி: ₹0.00
சேவைக் கட்டணம்: ₹0.00
பேக்கேஜிங்: ₹0.00
டெலிவரி: ₹0.00

*கட்டண முறைகள்*
- (ஏதுமில்லை)

*முதன்மை தயாரிப்புகள்*
- (ஏதுமில்லை)
![10-pos-tamil-decoupled-usd.png - POS in Tamil UI decoupled from US/USD regional currency formatting](https://github.com/user-attachments/assets/b9efb135-63a2-47ea-be66-4c4b49755dfb) - Outcome: 🔧 1 issue found → auto-fixed → no changes applied ✅ across 7 runs (2h20m33s)

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/main
  • ⚠️ docs/guides/adding-a-language.md - merge conflict rebasing onto origin/main
  • ⚠️ docs/reference/translation-terminology.md - merge conflict rebasing onto origin/main
  • ⚠️ frontend/src/lib/i18n/languages.ts - merge conflict rebasing onto origin/main
  • ⚠️ frontend/src/lib/printer/order-slip-web-print.ts - merge conflict rebasing onto origin/main
  • ⚠️ frontend/src/lib/printer/web-print.ts - merge conflict rebasing onto origin/main
  • ⚠️ main/print/print-labels.generated.ts - merge conflict rebasing onto origin/main
  • ⚠️ main/setup/seed-data.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/browser-receipts.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/decoupled-ui-locale.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/i18n-audit-remediations.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/phase3-print-regressions.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/phase7-setup-i18n.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/print-labels.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/rtl-dashboard-pos-common.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/rtl-kds-server-whatsapp.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/rtl-setup-auth-settings.test.ts - merge conflict rebasing onto origin/main
  • ⚠️ tests/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 in frontend/src/lib/i18n/messages/ta.json:682 (orders.dineIn), frontend/src/lib/i18n/messages/ta.json:972 (pos.orderTypeDineIn), and main/print/print-labels.generated.ts:3816 (pos.orderTypeDineIn) use உணவகத்தில் சாப்பிட. Update docs/reference/translation-terminology.md:177 to 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 ✅
  • ⚠️ live validation verdict: inconclusive (0 of 1 scenarios were driven live against the product); untested: Live product validation of the change
  • Live validation: ⚠️ inconclusive - 0 of 1 scenarios driven live against the product
Scenario Result Live Evidence
Live product validation of the change ⏸️ untested no The prior payload did not establish a live result (it contained an empty scenarios list and empty evidence), and this correction-only turn prohibits executing tools or running live validation.
  • none (prior payload recorded no executed tests or live validation)

🔧 Fix applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
An operator with a ta-IN browser opens the first-run Setup Wizard, sees தமிழ் (TA) sorted first, completes Demo setup in Tamil, and gets Tamil categories, products, staff, and E.164 Indian customer ph… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/01-setup-wizard-tamil.png
A cashier uses the main POS screen in Tamil to add Tamil demo products (மசாலா தோசை, பில்டர் காபி) to the cart and opens Settings (அமைப்புகள்) with LTR layout and zero horizontal overflow ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/02-pos-tamil-catalog-and-cart.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/03-settings-tamil.png
Kitchen staff, waiters, and customers view active orders in Tamil across Customer Display (/customer-display), Standalone KDS (:13102/kds-standalone), and Standalone Server App (:13103/server-standalo… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/04-customer-display-tamil.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/05-kds-standalone-tamil.png…
An operator opens /print-test in Tamil and renders 80mm browser HTML receipts, KOT slips, order slips, thermal print labels, and Electron lifecycle status messages with Noto Sans Tamil font stacks ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/07-print-test-tamil.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/08a-tamil-browser-receipt.png, /U…
A store owner generates WhatsApp plain-text Daily Sales, X-Report, and Z-Report summaries in Tamil (ta / ta-IN) with NFC-normalized Tamil labels and zero raw placeholders ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/09-whatsapp-reports-tamil.txt
Adversarial boundary check: configuring UI language to Tamil (ta) while the store country is US and currency is USD keeps Tamil UI text and product names while formatting prices in USD ($) without cro… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/10-pos-tamil-decoupled-usd.png
  • 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-test in 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-coverage
  • npm run test:translations
  • npm run test:print-labels
  • npm run test:decoupled-ui-locale
  • npm run test:i18n-audit-remediations
  • npm run test:status-messages
  • npm run test:rtl-setup-auth-settings
  • npm run test:rtl-dashboard-pos-common
  • npm run test:rtl-kds-server-whatsapp
  • npm run test:phase7-setup-i18n
  • npm run test:print-kernel
  • npm run test:browser-receipts

✅ No issues found.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
Complete first-run Setup Wizard in a Tamil (ta-IN) browser and seed Tamil sample catalog data into SQLite ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/01-setup-wizard-tamil.png
Navigate Main POS App and Settings in Tamil (ta), add Tamil catalog items to cart, and verify Tamil UI labels and grapheme-safe product tiles ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/02-pos-tamil-catalog-and-cart.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/03-settings-tamil.png
Render Customer Display (/display), Standalone KDS (:13102), and Standalone Server App (:13103) in Tamil (ta) with live orders and tables ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/04-customer-display-tamil.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/05-kds-standalone-tamil.png…
Render Print-Test page (/print-test) and browser thermal Bill Receipt, KOT Slip, and Order Slip in Tamil (ta) with Noto Sans Tamil font stack and print labels ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/07-print-test-tamil.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/08a-tamil-browser-receipt.png, /U…
Generate Tamil (ta / ta-IN) plain-text WhatsApp Daily Sales report, Cash Close Z-Report, and Customer Bill messages with NFC normalization and zero raw placeholders ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/09-whatsapp-reports-tamil.txt
Adversarial boundary check: keep Tamil (ta) UI language decoupled when store country/currency is switched to US/USD and verify fallback for unsupported status language tags ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/10-pos-tamil-decoupled-usd.png
  • npm run build
  • npx 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:check
  • npm run test:translations
  • npm run test:print-labels

✅ No issues found.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
An operator with a ta-IN browser opens the first-run Setup Wizard, sees தமிழ் (TA) sorted first with <html lang="ta-IN" dir="ltr">, completes setup with the Demo profile, and receives Tamil sample cat… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/01-setup-wizard-tamil.png
A cashier logs into the Main POS App in Tamil (ta), adds seeded Tamil products (மசாலா தோசை, பில்டர் காபி) to the cart, and opens Settings (அமைப்புகள்) with zero horizontal overflow ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/02-pos-tamil-catalog-and-cart.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/03-settings-tamil.png
Staff and customers view active orders on the Customer Display, Standalone KDS (:13102), and paired Standalone Server App (:13103), all inheriting the tenant Tamil (ta) locale and rendering Tamil stat… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/04-customer-display-tamil.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/05-kds-standalone-tamil.png…
An operator opens the Print-Test diagnostic surface and renders 80mm Tamil browser receipts, KOT slips, and order slips with the Noto Sans Tamil font stack, localized labels (மொத்தத் தொகை, பெற்ற ரொக்க… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/07-print-test-tamil.png, ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/08a-tamil-browser-receipt.png, /U…
An owner generates Tamil WhatsApp plain-text Daily Sales Reports, Cash-Close Z-Report summaries, and Customer Bill shares with NFC-normalized Tamil strings and zero raw placeholders ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/09-whatsapp-reports-tamil.txt
Adversarial boundary check: switching store country to US and currency to USD while keeping UI language set to Tamil (ta) preserves Tamil UI labels while formatting prices in USD ($) without coupling… ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/10-pos-tamil-decoupled-usd.png
  • npm run i18n:check

  • npx tsx tests/print-labels.test.ts

  • npx tsx tests/browser-receipts.test.ts

  • npx tsx tests/decoupled-ui-locale.test.ts

  • npx tsx tests/i18n-audit-remediations.test.ts

  • npx tsx tests/phase3-print-regressions.test.ts

  • npx tsx tests/phase7-setup-i18n.test.ts

  • npx ts-node --transpile-only -P tests/tsconfig.json tests/print-kernel.test.ts

  • npx ts-node --transpile-only -P tests/tsconfig.json tests/reports-whatsapp.test.ts

  • npx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-dashboard-pos-common.test.ts

  • npx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-kds-server-whatsapp.test.ts

  • npx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-setup-auth-settings.test.ts

  • npm run build &amp;&amp; npm run build:frontend followed 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

  • ⚠️ The Test agent did not finish within its invocation budget. Reported: agent run tests timed out after 30m0s: agent last produced output 317ms ago (257 observed); agent reported: antigravity parse events: context deadline exceeded. This is a budget or provider-slowness cut, not a code failure. Re-running the same request costs another full budget, so no further attempt is made automatically. If this repository's targeted tests or evidence gathering routinely approach the default 30m0s, raise test_agent_timeout in global config. Respond with fix to spend another budget: a repair turn runs only for selected findings other than this budget cut, then validation re-runs. Or abort and retry after raising the budget.

🔧 No changes applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 8 of 8 scenarios driven live against the product
Scenario Result Live Evidence
Merchant selects Tamil (ta / தமிழ்) during first-run Setup and initializes the store with Tamil sample seed data ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/01-setup-wizard-tamil.png
Staff logs into the main POS app, views the Tamil catalog and cart, and navigates Tamil Settings and Print Test screens ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/02-pos-tamil-catalog-and-cart.png
Kitchen staff opens the standalone KDS (:3002/kds-standalone) in Tamil and views active kitchen order tickets and stage tabs ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/05-kds-standalone-tamil.png
Waiter opens the standalone Server App (:3003/server-standalone) in Tamil, builds a tableside order on T2 with Tamil notes, and sends it to the kitchen ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/06-server-app-tamil.png
Guests view the Customer Display (/customer-display) in Tamil showing orders in Preparing (தயாராகிறது) and Ready (பெற்றுக்கொள்ளத் தயார்) columns ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/04-customer-display-tamil.png
Merchant renders customer browser receipts, KOT slips, and thermal raster lines in Tamil (ta-IN) with Tamil font families and print labels ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/08a-tamil-browser-receipt.png
Merchant generates WhatsApp plain-text Daily Sales, Z-Report, and Customer Bill summaries in Tamil (ta / ta-IN) ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/09-whatsapp-reports-tamil.txt
Adversarial/Boundary: Tamil UI locale stays decoupled from US/USD store currency and unknown print locale codes safely fall back to English ✅ pass live ~/.no-mistakes/evidence/01M6TFBB5N9D8YH81YP42GPK9E/10-pos-tamil-decoupled-usd.png
  • npm run i18n:check
  • npm run test:translations
  • npm run test:print-labels
  • npm run test:print-kernel
  • npm run test:status-messages
  • npm run test:phase7-setup-i18n
  • node tests/run-electron-node-test.cjs tests/reports-whatsapp.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/browser-receipts.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/decoupled-ui-locale.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/i18n-audit-remediations.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/phase3-print-regressions.test.ts
  • npm run test:rtl-setup-auth-settings
  • npm run test:rtl-dashboard-pos-common
  • npm run test:rtl-kds-server-whatsapp
  • cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium
  • node tests/run-electron-node-test.cjs /tmp/run-live-tamil-validation.cjs (live Chromium E2E across :3001, :3002, :3003)

✅ No issues found.

  • Live validation: ✅ go - 9 of 9 scenarios driven live against the product
Scenario Result Live Evidence
Select Tamil (தமிழ், ta) in the first-run Setup Wizard and initialize with demo data to verify Tamil wizard UI and localized Tamil sample categories, products, modifiers, and kitchen stations ✅ pass live 01-setup-wizard-tamil.png; npx tsx tests/phase7-setup-i18n.test.ts
Log into the main POS app in Tamil and add seeded Tamil menu items (மசாலா தோசை, பில்டர் காபி) to the cart to verify Tamil navigation, categories, product cards, and cart totals ✅ pass live 02-pos-tamil-catalog-and-cart.png
Navigate to Store Settings (/settings) in Tamil and verify localized settings sections, labels, and store configuration controls ✅ pass live 03-settings-tamil.png
Open Customer Display (/customer-display) with Tamil store language and verify localized customer-facing order status headings (தயாராகிறது, பெற்றுக்கொள்ளத் தயார்) ✅ pass live 04-customer-display-tamil.png
Sign into the standalone KDS server (:3002) with an active Tamil order and verify Tamil KDS stage tabs (காத்திருக்கிறது, தயாராகிறது, தயார், பரிமாறப்பட்டது, ரத்துசெய்யப்பட்டது) and ticket rendering ✅ pass live 05-kds-standalone-tamil.png
Sign into the standalone Server App (:3003) and verify it inherits Tamil store locale via /api/server-app/info and renders Tamil tableside ordering UI (சர்வர் செயலி, தற்போதைய சீட்டு, சமையலறைக்கு அனுப்… ✅ pass live 06-server-app-tamil.png
Render the Print Test page (/print-test), 80mm browser receipt HTML, and 80mm KOT slip HTML in Tamil (ta-IN) and verify Tamil print labels, LTR direction, and Noto Sans Tamil font stack ✅ pass live 07-print-test-tamil.png; 08a-tamil-browser-receipt.png; 08b-tamil-kot-slip.png; cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts
Generate WhatsApp plain-text X-Report, Z-Report, and Daily Sales summary messages in Tamil (ta / ta-IN) and verify localized Tamil headings, payment breakdowns, and drawer reconciliation labels ✅ pass live 09-whatsapp-reports-tamil.txt; npx ts-node --transpile-only -P tests/tsconfig.json tests/reports-whatsapp.test.ts
Adversarial boundary: configure store country/currency to US/USD while keeping UI language Tamil (ta) and verify POS preserves Tamil UI strings while formatting prices in USD ($) ✅ pass live 10-pos-tamil-decoupled-usd.png; npx tsx tests/decoupled-ui-locale.test.ts
  • npm run i18n:check
  • npm run docs:check
  • npx tsx tests/translations.test.ts
  • npx tsx tests/phase7-setup-i18n.test.ts
  • npx tsx tests/decoupled-ui-locale.test.ts
  • npx tsx tests/print-labels.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/print-kernel.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/browser-receipts.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/phase3-print-regressions.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/reports-whatsapp.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/i18n-audit-remediations.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-dashboard-pos-common.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-kds-server-whatsapp.test.ts
  • npx ts-node --transpile-only -P tests/tsconfig.json tests/rtl-setup-auth-settings.test.ts
  • cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts
  • Live 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.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Add Tamil locale support across FloCafe

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Add Tamil translations for the POS, companion screens, setup, desktop status, and WhatsApp
 reports.
• Localize sample restaurant data and print labels, with Tamil font fallbacks for browser and raster
 printing.
• Extend locale, setup, printing, and terminology checks for the 26th supported language.
Diagram

graph TD
  Registry["Language registry"] --> Catalog["Tamil catalogue"] --> UI["Application screens"]
  Catalog --> Labels["Generated labels"] --> Raster["Raster printing"]
  Catalog --> Browser["Browser printing"]
  Registry --> Seed["Restaurant seed data"]
Loading
High-Level Assessment

The existing registry, canonical catalogue, generated print-label table, and locale-specific seed paths are the appropriate integration points. A separate Tamil translation or printing pipeline would duplicate established behavior without a clear benefit.

Files changed (28) +4666 / -228

Enhancement (9) +3975 / -98
languages.tsRegister selectable Tamil locale +7/-0

Register selectable Tamil locale

• Registers ta with the ta-IN locale, தமிழ் native name, LTR direction, and lazy-loaded message catalogue.

frontend/src/lib/i18n/languages.ts

ta.jsonProvide the Tamil message catalogue +3601/-0

Provide the Tamil message catalogue

• Adds translations across the application namespaces, including POS, setup, KDS, Server App, Customer Display, printing, and WhatsApp. Retains ICU parameters and format templates where required.

frontend/src/lib/i18n/messages/ta.json

kot-web-print.tsSelect a Tamil browser KOT font stack +1/-0

Select a Tamil browser KOT font stack

• Adds a Tamil-script font stack for browser-rendered kitchen order tickets.

frontend/src/lib/printer/kot-web-print.ts

order-slip-web-print.tsAdd Tamil fonts to browser order slips +1/-1

Add Tamil fonts to browser order slips

• Adds Tamil font fallbacks to the order-slip HTML style.

frontend/src/lib/printer/order-slip-web-print.ts

web-print.tsAdd Tamil fonts to browser receipts +1/-1

Add Tamil fonts to browser receipts

• Extends the browser print stylesheet with Tamil font fallbacks.

frontend/src/lib/printer/web-print.ts

print-labels.generated.tsGenerate Tamil main-process print labels +148/-0

Generate Tamil main-process print labels

• Adds ta to the generated language list and supplies Tamil labels for receipts, KOTs, delivery slips, Z-reports, and related reports.

main/print/print-labels.generated.ts

seed-data.tsLocalize Tamil restaurant seed profiles +202/-95

Localize Tamil restaurant seed profiles

• Supports ta in seed-language resolution and adds Tamil express and demo categories, products, staff, and customers with Indian phone numbers.

main/setup/seed-data.ts

status-messages.tsTranslate desktop lifecycle messages +13/-0

Translate desktop lifecycle messages

• Adds Tamil startup, backup, shutdown, and saved-state status messages.

main/status-messages.ts

raster-canvas.tsAdd Tamil raster font fallbacks +1/-1

Add Tamil raster font fallbacks

• Extends the shared print canvas font stack so rasterized output can use Tamil-capable fonts.

shared/print/raster-canvas.ts

Tests (13) +666 / -112
phase7-setup-print-i18n.spec.tsAdd Tamil print-option expectations +5/-0

Add Tamil print-option expectations

• Adds Tamil labels for basic receipt, web print, and WhatsApp options to the setup-to-print E2E matrix.

frontend/e2e/phase7-setup-print-i18n.spec.ts

browser-receipts.test.tsCheck Tamil receipt and order-slip HTML +50/-0

Check Tamil receipt and order-slip HTML

• Loads Tamil messages and asserts receipt language, direction, labels, and fonts. Also checks Tamil order-slip metadata and labels.

tests/browser-receipts.test.ts

decoupled-ui-locale.test.tsCheck Tamil receipts with independent store locale +25/-1

Check Tamil receipts with independent store locale

• Adds Tamil to the receipt-language matrix and checks Tamil labels and month names without changing the store-region test context.

tests/decoupled-ui-locale.test.ts

i18n-audit-remediations.test.tsInclude Tamil in locale audits +3/-0

Include Tamil in locale audits

• Adds Tamil to message loading, locale-tag and direction expectations, and catalogue audits.

tests/i18n-audit-remediations.test.ts

phase3-print-regressions.test.tsGuard Tamil KOT print behavior +72/-0

Guard Tamil KOT print behavior

• Checks browser KOT font and locale metadata. Verifies unsupported Tamil lines trigger warnings rather than emitting Tamil code points through native thermal and WebUSB paths.

tests/phase3-print-regressions.test.ts

phase7-setup-i18n.test.tsVerify Tamil setup seed records +40/-0

Verify Tamil setup seed records

• Asserts Tamil express and demo categories, products, staff, customers, and Indian E.164 phone numbers.

tests/phase7-setup-i18n.test.ts

print-kernel.test.tsTest Tamil grapheme-safe print widths +302/-108

Test Tamil grapheme-safe print widths

• Adds Tamil segmentation, display-cell, truncation, and wrapping cases for narrow thermal lines. The file also reformats existing assertions.

tests/print-kernel.test.ts

print-labels.test.tsPin Tamil financial print terminology +20/-0

Pin Tamil financial print terminology

• Checks Tamil totals, bill and amount labels, cash received, and the distinction between takeaway and delivery.

tests/print-labels.test.ts

reports-whatsapp.test.tsExpect 26 localized report catalogues +1/-1

Expect 26 localized report catalogues

• Updates the full-report locale-count assertion so the WhatsApp report test includes Tamil.

tests/reports-whatsapp.test.ts

rtl-dashboard-pos-common.test.tsInclude Tamil in LTR UI checks +2/-0

Include Tamil in LTR UI checks

• Adds Tamil to dashboard and POS direction and toaster test matrices.

tests/rtl-dashboard-pos-common.test.ts

rtl-kds-server-whatsapp.test.tsInclude Tamil in companion-screen checks +6/-1

Include Tamil in companion-screen checks

• Loads Tamil messages and adds ta to KDS, Server App, direction, and WhatsApp translation matrices.

tests/rtl-kds-server-whatsapp.test.ts

rtl-setup-auth-settings.test.tsVerify Tamil browser-language detection +19/-0

Verify Tamil browser-language detection

• Checks ta-IN, bare ta, and same-script ta-LK resolution, then includes Tamil in the setup and settings locale matrix.

tests/rtl-setup-auth-settings.test.ts

translations.test.tsValidate Tamil translation completeness +121/-1

Validate Tamil translation completeness

• Adds intentional English-identical exceptions and rejects placeholder, untranslated, non-NFC, or replacement-character values. Pins key Tamil terminology and order-number placement.

tests/translations.test.ts

Documentation (6) +25 / -18
CONTRIBUTING.mdList Tamil among supported translations +1/-1

List Tamil among supported translations

• Adds Tamil to the contributor-facing list of available languages.

CONTRIBUTING.md

README.mdAnnounce the 26th supported language +2/-1

Announce the 26th supported language

• Raises the locale count to 26 and lists Tamil in the README.

README.md

frontend.mdUpdate frontend locale counts +3/-3

Update frontend locale counts

• Updates the registry, catalogue, and architecture descriptions to reflect 26 locales.

docs/architecture/frontend.md

internationalization.mdDocument Tamil in the locale catalogue +3/-3

Document Tamil in the locale catalogue

• Updates the supported-locale count and includes ta in the committed catalogue list.

docs/architecture/internationalization.md

adding-a-language.mdRefresh language-addition guidance +9/-9

Refresh language-addition guidance

• Adds Tamil to the documented NFC checks and revises counts for intentional-identical sets and test matrices.

docs/guides/adding-a-language.md

translation-terminology.mdRecord Tamil financial and order terminology +7/-1

Record Tamil financial and order terminology

• Documents Tamil NFC coverage and consistent terms for totals, dietary tags, cash movements, and order types.

docs/reference/translation-terminology.md

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@khaira777
khaira777 force-pushed the fm/flocafe-i18n-tamil branch 3 times, most recently from c065ff5 to 391c59f Compare November 7, 2026 19:09
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
@khaira777
khaira777 force-pushed the fm/flocafe-i18n-tamil branch from 391c59f to 73957f3 Compare November 7, 2026 20:52
@khaira777
khaira777 merged commit da5de60 into main Nov 7, 2026
23 checks passed
@khaira777
khaira777 deleted the fm/flocafe-i18n-tamil branch November 7, 2026 21:02
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 Tamil (தமிழ்) locale (ta)

1 participant