You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement full Swahili (sw, sw-KE, Kiswahili) 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.
What Changed
Registered the Swahili (sw / sw-KE, Kiswahili) LTR locale in frontend/src/lib/i18n/languages.ts and added its complete translation catalogue in frontend/src/lib/i18n/messages/sw.json.
Added Swahili translations for generated thermal print/KOT labels (main/print/print-labels.generated.ts), startup/shutdown status messages (main/status-messages.ts), and localized demo restaurant seed data (main/setup/seed-data.ts).
Extended i18n parity, Unicode NFC, print label, receipt, WhatsApp report, and setup localization test suites and documentation to cover the 28th supported locale (sw).
Risk Assessment
✅ Low: The change cleanly adds the Swahili (sw / sw-KE) locale across the language registry, message catalogue, generated print labels, startup/shutdown status messages, setup seed data, documentation, and test suites following existing repository conventions without altering runtime architecture or business logic.
Testing
Ran all 12 targeted Swahili i18n, print, receipt, setup-seed, chunk-splitting, status-message, and WhatsApp test suites plus the Playwright print-test E2E spec and live browser scenarios across Settings, POS, KDS, Server App, Customer Display, Print Test, and Browser Receipts, capturing 6 screenshots and 1 live JSON evidence artifact; all checks and live scenarios passed.
Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario
Result
Live
Evidence
Select Kiswahili (sw / sw-KE) in Settings > Store Details and navigate the main POS screen in Swahili
Adversarial boundary check: seed Swahili (sw) under a foreign store country (AU) and enforce ICU/NFC/placeholder/chunk-splitting integrity across all 3,477 keys
✅ pass
live
~/.no-mistakes/evidence/01M6TPZTD6GHA0H7HWFNB0DA9G/sw-seed-and-whatsapp-live.json, npm run i18n:check, npm run test:phase7-setup-i18n
Evidence: Live Swahili Seed Data (KE + Foreign AU), Thermal/KOT Print Labels, Status Messages, and WhatsApp Plain-Text Z-Report
{
"locale": {
"code": "sw",
"bcp47": "sw-KE",
"nativeName": "Kiswahili",
"direction": "ltr"
},
"seedDemoKE": {
"categories": [
{
"id": "cat-demo-starters",
"name": "Vitafunio vya Mwanzo"
},
{
"id": "cat-demo-main",
"name": "Chakula Kikuu"
},
{
"id": "cat-demo-beverages",
"name": "Vinywaji"
},
{
"id": "cat-demo-desserts",
"name": "Vitindamlo"
}
],
"sampleProducts": [
{
"id": "prod-demo-chai-tangawizi",
"name": "Chai ya Tangawizi",
"price": 60
},
{
"id": "prod-demo-kaimati",
"name": "Kaimati",
"price": 80
},
{
"id": "prod-demo-maji",
"name": "Maji ya Kunywa",
"price": 70
},
{
"id": "prod-demo-pilau",
"name": "Pilau ya Nyama",
"price": 800
},
{
"id": "prod-demo-samaki",
"name": "Samaki wa Kupaka",
"price": 1200
},
{
"id": "prod-demo-sambusa",
"name": "Sambusa za Nyama",
"price": 280
},
{
"id": "prod-demo-viazi-karai",
"name": "Viazi Karai",
"price": 250
},
{
"id": "prod-demo-wali-nazi",
"name": "Wali wa Nazi na Kuku",
"price": 1100
}
],
"customers": [
{
"id": "cust-demo-1",
"name": "Juma Bakari",
"phone": "+254712345678",
"country_code": "+254"
},
{
"id": "cust-demo-2",
"name": "Amina Odhiambo",
"phone": "+254712345679",
"country_code": "+254"
},
{
"id": "cust-demo-3",
"name": "Baraka Mwangi",
"phone": "+254712345680",
"country_code": "+254"
}
],
"staff": [
{
"id": "user-demo-cashier",
"name": "Keshia wa Mfano",
"role": "cashier"
},
{
"id": "user-demo-chef",
"name": "Mpishi wa Mfano",
"role": "chef"
},
{
"id": "user-demo-manager",
"name": "Meneja wa Mfano",
"role": "manager"
}
]
},
"adversarialForeignCountrySeedAU": {
"country": "AU",
"customers": [
{
"id": "cust-demo-1",
"name": "Juma Bakari",
"phone": "+254712345678",
"country_code": "+254"
},
{
"id": "cust-demo-2",
"name": "Amina Odhiambo",
"phone": "+254712345679",
"country_code": "+254"
},
{
"id": "cust-demo-3",
"name": "Baraka Mwangi",
"phone": "+254712345680",
"country_code": "+254"
}
]
},
"thermalPrintLabels": {
"grandTotal": "JUMLA KUU",
"kotBanner": "TIKETI YA ODA YA JIKONI",
"deliverySlipBanner": "KARATASI YA UWASILISHAJI",
"zReportTitle": "RIPOTI YA Z",
"payIn": "Uwekaji pesa",
"payOut": "Utoaji pesa",
"reprintMarker": "Kuchapisha tena kunaongeza mstari wa CHAPISHO LA MARUDIO"
},
"statusMessages": {
"starting": [
"Inaanzisha Flo",
"Inaandaa kila kitu…"
],
"welcome": [
"Karibu kwenye Flo",
"Inafungua nafasi yako ya kazi…"
],
"saved": [
"Kila kitu kimehifadhiwa",
"Flo itafungwa hivi punde."
]
},
"whatsappPlainTextZReport": "📊 *Ripoti ya Z #12 - FloCafe Nairobi*\n📅 *Tarehe ya biashara:* 7 Nov 2026 (07/11/2026, 09:00 - 07/11/2026, 23:00)\n👤 *Imefungwa na:* Meneja wa Mfano\n\n💰 *MUHTASARI WA MAUZO*\n• Makusanyo Ghafi: Ksh 24,500.00\n• Marejesho ya Pesa: Ksh 0.00\n• Makusanyo Halisi: Ksh 24,500.00\n• Bili 18\n\n💳 *MALIPO*\n• Pesa taslimu: Ksh 15,000.00 (12)\n• Kadi: Ksh 9,500.00 (6)\n\n💵 *UOANISHAJI WA DROO*\n• Kianzio cha pesa: Ksh 5,000.00\n• Pesa inayotarajiwa: Ksh 20,500.00\n• Pesa iliyohesabiwa: Ksh 20,500.00\n• Tofauti: Ksh 0.00 (✅ Sawasawa)\n\n📝 *Maelezo:* Siku njema ya biashara",
"kotHtmlSnippet": "\n <div class=\"kot-container\" lang=\"sw-KE\" dir=\"ltr\" style=\"width:100%;max-width:80mm;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;word-break:break-word;text-align:start;padding:6px;font-family:'Courier New',monospace;font-size:13px;line-height:1.4;color:#000;font-weight:600;\">\n <h2 style=\"margin:0 0 6px 0;font-size:16px;text-align:center;color:#000;font-weight:700;\">TIKETI YA ODA YA JIKONI</h2>\n <p style=\"margin:2px 0;\">Kituo: Jiko Kuu</p>\n <p style=\"margin:2px 0;font-weight:bold;\">Oda #ORD-0088</p>\n <p style=\"margin:2px 0;\">Meza: Meza 1</p>\n <p style=\"m"
}
Adversarial boundary check: seed Swahili (sw) under a foreign store country (AU) and enforce ICU/NFC/placeholder/chunk-splitting integrity across all 3,477 keys
✅ pass
live
~/.no-mistakes/evidence/01M6TPZTD6GHA0H7HWFNB0DA9G/sw-seed-and-whatsapp-live.json, npm run i18n:check, npm run test:phase7-setup-i18n
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.
• Add selectable Swahili translations for the POS, companion displays, setup, and settings.
• Localize print labels, status messages, and sample restaurant data without changing core
workflows.
• Extend locale checks and documentation to cover all 26 supported languages.
Diagram
graph TD
R["Language registry"] --> C["Swahili catalogue"] --> U["UI surfaces"]
C --> P["Generated labels"] --> O["Printed documents"]
R --> S["Setup seed data"]
R --> W["Status window"]
Loading
High-Level Assessment
Follow the existing language-addition contract: register a lazy-loaded catalogue, generate backend print labels from it, and add localized seed and status tables. A separate Swahili-specific rendering path would duplicate established locale behavior without a clear benefit.
• Adds translations across application namespaces, including POS, setup, settings, KDS, Server App, Customer Display, receipts, and WhatsApp. Preserves ICU arguments and the source keys used to generate print labels.
translations.test.tsGuard Swahili catalogue completeness and terminology+167/-1
Guard Swahili catalogue completeness and terminology
• Adds an intentional-identical allowlist and rejects untranslated, placeholder, non-NFC, or malformed Swahili values. Pins CSV literals and key terminology, with negative tests for the new validator.
1. Swahili staff look for the wrong reprint mark 🐞 Bug≡ Correctness
Description
dashboard.reprintAddsMarker tells staff that a reprinted Z-report bears REIMPRESION, while the
Swahili print label supplies CHAPISHO LA MARUDIO. When staff reprint a closed Z-report, the
warning beside the print button therefore names a mark that does not appear on the printed report.
ⓘ Recommendations generated based on similar findings in past PRs
Evidence
The cash-close dialog displays this warning beside its reprint button. Reprinting sets the report's
marker from receipt.reprint, whose new Swahili value is CHAPISHO LA MARUDIO; the thermal
renderer appends that marker to the report title.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The Swahili Z-report reprint warning names `REIMPRESION`, but the printed report uses the localized reprint marker `CHAPISHO LA MARUDIO`.
## Fix Focus Areas
- frontend/src/lib/i18n/messages/sw.json[384-384]
- main/print/print-labels.generated.ts[3813-3813]
## Recommended Fix
Change the warning to name the actual Swahili marker. Describe it as a marker on the report title rather than a separate line, matching how the Z-report renderer places it.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
FloCafe adds selectable Swahili (sw-KE), but the docs.flopos.com FloCafe operator page still
lists only English, Spanish, and Brazilian Portuguese under what the product handles. Operators
consulting that page will not see that Swahili is available; the list was already incomplete for
earlier locales, so it should be updated or replaced with a link to FloCafe’s maintained language
list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Implement full Swahili (
sw,sw-KE,Kiswahili) 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.What Changed
sw/sw-KE,Kiswahili) LTR locale infrontend/src/lib/i18n/languages.tsand added its complete translation catalogue infrontend/src/lib/i18n/messages/sw.json.main/print/print-labels.generated.ts), startup/shutdown status messages (main/status-messages.ts), and localized demo restaurant seed data (main/setup/seed-data.ts).sw).Risk Assessment
✅ Low: The change cleanly adds the Swahili (sw / sw-KE) locale across the language registry, message catalogue, generated print labels, startup/shutdown status messages, setup seed data, documentation, and test suites following existing repository conventions without altering runtime architecture or business logic.
Testing
Ran all 12 targeted Swahili i18n, print, receipt, setup-seed, chunk-splitting, status-message, and WhatsApp test suites plus the Playwright print-test E2E spec and live browser scenarios across Settings, POS, KDS, Server App, Customer Display, Print Test, and Browser Receipts, capturing 6 screenshots and 1 live JSON evidence artifact; all checks and live scenarios passed.
Evidence: Live Swahili Seed Data (KE + Foreign AU), Thermal/KOT Print Labels, Status Messages, and WhatsApp Plain-Text Z-Report
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm run i18n:checknpm run test:print-labelsnpm run test:browser-receiptsnpm run test:decoupled-ui-localenpm run test:i18n-audit-remediationsnpm run test:phase7-setup-i18nnpm run test:rtl-setup-auth-settingsnpm run test:rtl-dashboard-pos-commonnpm run test:rtl-kds-server-whatsappnpm run test:status-messagesnode tests/run-electron-node-test.cjs tests/reports-whatsapp.test.tsnpm run build && npm run build:frontendnpm run test:locale-chunkscd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromiumLive Playwright Chromium verification of Settings (Lugha->Kiswahili), POS (/pos), standalone KDS (/kds-standalone), standalone Server App (/server-standalone), Customer Display (/customer-display), Print Test (/print-test), Browser Receipt (generateBillHtml), SQLiteseedSetupProfile(KEand foreignAU), and WhatsApp plain-text Z-report formatting✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Fixes #1477