Skip to content

feat: add Marathi (mr) locale support - #1498

Merged
khaira777 merged 5 commits into
mainfrom
fm/flocafe-i18n-marathi
Nov 7, 2026
Merged

khaira777 merged 5 commits into
mainfrom
fm/flocafe-i18n-marathi

Conversation

@khaira777

@khaira777 khaira777 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Implement full Marathi (mr, mr-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 #1473

What Changed

Risk Assessment

✅ Low: All Marathi (mr, mr-IN) locale additions, status messages, print labels, seed data, documentation updates, and test coverage are complete and consistent with no remaining defects.

Testing

Built the backend and static frontend export, ran all targeted i18n, print-kernel, print-label, receipt, setup-seed, RTL/LTR, localized-error, locale-chunk, and WhatsApp report suites, and drove the live application via Playwright across Setup, POS, Dashboard, Settings, Print-Test, standalone KDS, standalone Server App, and Customer Display in Marathi (mr / mr-IN) with visual screenshot and HTML receipt evidence captured in the evidence directory; all checks and live scenarios passed.

  • Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
An operator opens the Setup wizard, selects मराठी (mr / mr-IN), and seeds Express or Demo restaurant profiles with Marathi categories, products (मिसळ पाव, कांदा भजी), staff, and India E.164 customers… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-setup-wizard.png; npm run test:phase7-setup-i18n; npm run test:rtl-setup-auth-settings; npm run test:status-messages
An operator switches the active store language to Marathi (mr) and navigates the main POS app, Dashboard, Settings, and Print-Test page, observing lang="mr-IN" dir="ltr", lazy-loaded Marathi bundle, a… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-pos-screen.png; ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-dashboard-screen.png; /Use…
Kitchen staff, servers, and guests view the standalone KDS, Server App, and Customer Display when Marathi (mr) is active, observing localized Devanagari headers, stage tabs, ticket actions, and order… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-kds-screen.png; ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-server-app-screen.png; /Us…
Generating browser thermal receipts, tableside order slips, browser KOTs, and WhatsApp plain-text daily sales and bill reports in Marathi produces Devanagari labels and Marathi dates while preserving… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/receipt-argentina-marathi-ui.png; ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/receipt-argentina-marath…
Adversarial guard: native ESC/POS thermal and WebUSB KOT encoders reject raw Devanagari emission with a line warning, grapheme wrapping never splits Marathi virama conjuncts or matras, and the transla… ✅ pass live npm run test:translations; npm run test:print-labels; npm run test:print-kernel; node scripts/generate-print-labels.cjs --check

Setup wizard rendered in Marathi (mr-IN) with मराठी selected
Main POS screen rendered in Marathi (mr-IN) with Marathi categories, मिसळ पाव product, and शाकाहारी tag
Dashboard rendered in Marathi (mr-IN) showing live order and sales metrics
Settings screen rendered in Marathi (mr-IN)
Print-test page rendered in Marathi (mr-IN) showing साधी पावती (थर्मल), वेब प्रिंट (ब्राउझर), and WhatsApp शेअर buttons
Standalone KDS (:3002) rendered in Marathi (mr-IN) with live मिसळ पाव ticket
Standalone Server App (:3003) rendered in Marathi (mr-IN)
Customer Display rendered in Marathi (mr-IN) showing preparing and ready columns
Browser thermal receipt in Marathi UI (mr-IN) for an Argentina tenant

Evidence: Rendered HTML receipt in Marathi UI (mr-IN) for an Argentina tenant
<!DOCTYPE html>
<html lang="mr-IN" dir="ltr">
<head>
  <meta charset="utf-8">
  <title>बिल # B-2026-0042</title>
  <style>
    
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Sans Bengali', 'Vrinda', 'Bangla Sangam MN', 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', 'Devanagari Sangam MN', 'Noto Sans Thai', 'Leelawadee UI', Thonburi, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans CJK JP', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-weight: 600; line-height: 1.4; color: #000; }
    body:lang(zh-TW) { font-family: -apple-system, 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif; }
    .bill-container { max-width: 100%; margin: 0 auto; color: #000; }
    .reprint-banner { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: #000; border: 2px solid #000; padding: 6px; margin-bottom: 12px; }
    .online-order-banner { text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #000; border: 2px solid #000; padding: 6px; margin-bottom: 12px; }
    .online-order-banner .online-order-detail { font-size: 13px; font-weight: 600; letter-spacing: normal; margin-top: 2px; color: #000; }
    .header { text-align: center; margin-bottom: 12px; padding-bottom: 8px; color: #000; border-bottom: 1px solid #000; }
    .receipt-logo { max-width: 80%; max-height: 120px; object-fit: contain; margin: 0 auto 8px auto; display: block; }
    .header h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: #000; }
    .bill-details { margin-bottom: 12px; color: #000; }
    .bill-details table { width: 100%; }
    .items-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; color: #000; }
    .items-table th, .items-table td { padding: 6px; border-bottom: 1px solid #000; text-align: start; color: #000; }
    .items-table th { background: transparent; font-weight: 700; color: #000; }
    .tax-table, .payments-table { width: 50%; margin-inline-start: 50%; border-collapse: collapse; margin-bottom: 12px; color: #000; }
    .tax-table th, .tax-table td, .payments-table th, .payments-table td { padding: 4px 6px; color: #000; }
    .tax-table th, .payments-table th { background: transparent; text-align: start; font-weight: 700; color: #000; }
    .totals-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; color: #000; }
    .totals-table td { padding: 4px 6px; color: #000; }
    .total-row { border-top: 2px solid #000; font-size: 16px; font-weight: 700; color: #000; }
    .footer { text-align: center; margin-top: 16px; padding-top: 10px; border-top: 1px solid #000; color: #000; }
    .powered-by { font-size: 11px; font-weight: 600; margin-top: 8px; color: #000; }
    .text-end { text-align: end !important; }
    .num { unicode-bidi: isolate; white-space: nowrap; }
    .ltr { direction: ltr; unicode-bidi: isolate; }
    .text-muted { color: #000; font-weight: 600; }
    .text-italic { font-style: italic; color: #000; font-weight: 600; }
  
        @page { size: 58mm auto; margin: 0; }
        body { color: #000; font-size: 13px; font-weight: 600; width: 58mm; max-width: 58mm; margin: 0 auto; }
        .bill-container { padding: 2mm; width: 100%; max-width: 58mm; font-size: 13px; font-weight: 600; color: #000; }
        .reprint-banner, .online-order-banner { color: #000; border: 2px solid #000; font-size: 16px; font-weight: 700; }
        .header { color: #000; border-bottom: 1px solid #000; }
        .header h1 { font-size: 17px; font-weight: 700; color: #000; }
        .text-muted, .text-italic { color: #000; font-weight: 600; }
        .items-table th, .tax-table th, .payments-table th { background: transparent; color: #000; border-bottom: 1px solid #000; font-weight: 700; }
        .items-table td { color: #000; border-bottom: 1px dashed #000; font-size: 13px; font-weight: 600; }
        .total-row { color: #000; border-top: 2px solid #000; font-size: 15px; font-weight: 700; }
        .footer { color: #000; border-top: 1px solid #000; }
        .powered-by { color: #000; font-size: 11px; font-weight: 600; }
        .tax-table, .payments-table { width: 100%; margin-inline-start: 0; }
        .items-table th, .items-table td, .tax-table td, .totals-table td, .payments-table td { padding: 2px 4px; }
      
    @media print {
      .no-print { display: none !important; }
      body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    }
  </style>
</head>
<body>
  <div class="bill-container">
    
    
    <!-- Header -->
    <div class="header">
      
      <h1>La Parrilla Argentina</h1>
      <p>Av. Corrientes 1234, Buenos Aires</p>
      <p>फोन: +54 11 4321 9876</p>
      <p>CUIT: 30-71234567-9</p>
    </div>

    <!-- Bill Details -->
    <div class="bill-details">
      <table>
        <tr>
          <td><strong>बिल #</strong> B-2026-0042</td>
          <td class="text-end"><strong>तारीख</strong> 20 ऑग, 2026, 09:30 AM</td>
        </tr>
        <tr><td><strong>टेबल</strong> Mesa 4</td><td></td></tr>
        
        <tr><td><strong>ग्राहक</strong> Santiago Gómez</td><td></td></tr>
        <tr><td><strong>ग्राहक क्र.</strong> +54 11 5555 1234</td><td></td></tr>
        
      </table>
    </div>

    <!-- Items Table -->
    <table class="items-table">
      <thead>
        <tr>
          <th>आयटम</th>
          <th class="text-end">नग</th>
          <th class="text-end">दर</th>
          <th class="text-end">रक्कम</th>
        </tr>
      </thead>
      <tbody>
        
          <tr>
            <td>
              Bife de Chorizo
              <br><small class="text-muted">+ Papas Fritas ($ 2.400,00)</small>
              
            </td>
            <td class="text-end num">2</td>
            <td class="text-end num">$ 0,00</td>
            <td class="text-end num">$ 0,00</td>
          </tr>
        
          <tr>
            <td>
              Malbec Reserva
              
              
            </td>
            <td class="text-end num">1</td>
            <td class="text-end num">$ 0,00</td>
            <td class="text-end num">$ 0,00</td>
          </tr>
        
      </tbody>
    </table>

    <!-- Tax Breakdown -->
    
    <table class="tax-table">
      <thead>
        <tr><th colspan="2">कर तपशील</th></tr>
      </thead>
      <tbody>
        
          <tr><td>Tax</td><td class="text-end num">$ 2.672,73</td></tr>
        
      </tbody>
    </table>
    

    <!-- Totals -->
    <table class="totals-table">
      
      
      <tr><td>उप-एकूण</td><td class="text-end num">$ 12.727,27</td></tr>
      
      
      
      
      
      
      <tr class="total-row"><td><strong>एकूण रक्कम</strong></td><td class="text-end num"><strong>$ 15.400,00</strong></td></tr>
      <tr><td>कमावलेले पॉइंट्स</td><td class="text-end num">154 pts</td></tr>
      
      
    </table>

    <!-- Payments -->
    

    <!-- Footer -->
    <div class="footer">
      <p>तुमच्या भेटीबद्दल धन्यवाद!</p>
      <p>लागू असेल तिथे कर समाविष्ट</p>
      <p class="powered-by">Powered by FloPOS (flopos.com)</p>
    </div>
  </div>

  <div class="no-print" style="text-align:center;margin-top:20px;">
    <button onclick="window.print()" style="padding:10px 20px;font-size:16px;cursor:pointer;">बिल प्रिंट करा</button>
  </div>
</body>
</html>
  

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 4 issues found → auto-fixed ✅
  • 🚨 frontend/src/lib/i18n/languages.ts:200 - Marathi ('mr', 'mr-IN') is registered in LANGUAGES (frontend/src/lib/i18n/languages.ts:200), but main/status-messages.ts:299 was not updated with a 'mr' entry in TABLES. At runtime, resolveStatusLanguage('mr') and resolveStatusLanguage('mr-IN') in main/status-messages.ts:308-319 fall back to 'en', so getStatusMessage(key, 'mr') (main/status-messages.ts:321-323) renders English instead of Marathi across all 8 native Electron startup/shutdown status window messages (starting, checking, backingUp, services, welcome, closing, shutdownBackup, saved). In addition, tests/status-messages.test.ts:37-38 asserts that every locale in frontend/src/lib/i18n/languages.ts is present in STATUS_LANGUAGES and will fail on 'mr' (see also docs/guides/adding-a-language.md:102-109).
  • 🚨 frontend/src/lib/i18n/messages/mr.json:1 - Adding frontend/src/lib/i18n/messages/mr.json increases the number of locale files in frontend/src/lib/i18n/messages/ from 26 to 27, but tests/reports-whatsapp.test.ts:285 still asserts assert.equal(localeFiles.length, 26, 'the full-report localization test covers all supported locales') and will fail with 27 !== 26.
  • ⚠️ frontend/src/lib/i18n/messages/mr.json:2738 - 26 strings in frontend/src/lib/i18n/messages/mr.json encode the Marathi independent vowel 'ॲ' (U+0972 DEVANAGARI LETTER CANDRA A) as the decomposed ZWJ sequence 'अ\u200dॅ' (U+0905 + U+200D ZERO WIDTH JOINER + U+0945) instead of canonical 'ॲ' used in the earlier sections of mr.json. For example, setup.masterPinRecoveryNote (frontend/src/lib/i18n/messages/mr.json:2738) quotes auth.forgotPasswordLink using 'अ\u200dॅक्सेस', which does not match auth.forgotPasswordLink at frontend/src/lib/i18n/messages/mr.json:38 ('ॲक्सेस'). Sibling occurrences in frontend/src/lib/i18n/messages/mr.json:2738, 2751, 2812, 2818, 2830, 2853, 2854, 2880, 2905, 2922, 2923, 2924, 2925, 2927, 2928, 2929, 2950, 2996, 3070, 3126, 3165, 3176, 3287, 3290, 3293, and 3302. In addition, mrFallbackErrors in tests/translations.test.ts:2552-2573 does not reject invisible formatting characters (/[\u200B\u200C\u200D\u00AD\uFEFF]/u) or test NFC/invisible-character negative fixtures in runNegativeTests (tests/translations.test.ts:3892-3903; see also docs/guides/adding-a-language.md:68).
  • ℹ️ README.md:197 - Several documentation and comment locations touched in this branch retain pre-Marathi locale counts or lists: README.md:197 still says '26 localized languages' while listing 27 languages at README.md:208-248; docs/guides/adding-a-language.md:132-138 still lists '25 of 26', 'All 26', '22 of 26', and '20 of 26' even though those 6 test suites were updated to 27 in this branch; docs/reference/translation-terminology.md:58 lists ha.json, jv.json, ne.json, ru.json, and th.json for NFC enforcement while omitting mr.json (which is enforced at tests/translations.test.ts:2566 and listed in docs/guides/adding-a-language.md:67); and the header comment in tests/translations.test.ts:68-70 stops at item 25 (Javanese safeguards) without listing item 26 (Marathi safeguards).

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

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
An operator opens the Setup wizard, selects मराठी (mr / mr-IN), and seeds Express or Demo restaurant profiles with Marathi categories, products (मिसळ पाव, कांदा भजी), staff, and India E.164 customers… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-setup-wizard.png; npm run test:phase7-setup-i18n; npm run test:rtl-setup-auth-settings; npm run test:status-messages
An operator switches the active store language to Marathi (mr) and navigates the main POS app, Dashboard, Settings, and Print-Test page, observing lang="mr-IN" dir="ltr", lazy-loaded Marathi bundle, a… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-pos-screen.png; ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-dashboard-screen.png; /Use…
Kitchen staff, servers, and guests view the standalone KDS, Server App, and Customer Display when Marathi (mr) is active, observing localized Devanagari headers, stage tabs, ticket actions, and order… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-kds-screen.png; ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/marathi-server-app-screen.png; /Us…
Generating browser thermal receipts, tableside order slips, browser KOTs, and WhatsApp plain-text daily sales and bill reports in Marathi produces Devanagari labels and Marathi dates while preserving… ✅ pass live ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/receipt-argentina-marathi-ui.png; ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE/receipt-argentina-marath…
Adversarial guard: native ESC/POS thermal and WebUSB KOT encoders reject raw Devanagari emission with a line warning, grapheme wrapping never splits Marathi virama conjuncts or matras, and the transla… ✅ pass live npm run test:translations; npm run test:print-labels; npm run test:print-kernel; node scripts/generate-print-labels.cjs --check
  • npm run test:translations
  • node scripts/generate-print-labels.cjs --check
  • npm run test:print-labels
  • npm run test:print-kernel
  • npm run test:status-messages
  • npm run test:browser-receipts
  • EVIDENCE_DIR=~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE npm run test:decoupled-ui-locale
  • npm run test:i18n-audit-remediations
  • npm run test:rtl-dashboard-pos-common
  • npm run test:rtl-kds-server-whatsapp
  • npm run test:rtl-setup-auth-settings
  • npm run test:phase7-setup-i18n
  • node tests/run-electron-node-test.cjs tests/reports-whatsapp.test.ts
  • npm run test:issue-241-localized-errors
  • npm run build && npm run build:frontend && npm run test:locale-chunks
  • cd frontend && 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 playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium
  • Live Playwright browser walk across /setup, /pos, /dashboard, /settings, /print-test, /kds-standalone, /server-standalone, and /customer-display in Marathi (mr / mr-IN) with screenshot capture into ~/.no-mistakes/evidence/01M6THGXTHQ35YMZWYSKZ5TFCE
✅ **Document** - passed

✅ No issues found.

⚠️ **Lint** - 1 info
  • ℹ️ Could not run markdownlint-cli2, oxlint, or oxfmt CLI binaries because node_modules is not installed in this isolated worktree and those tools are not on PATH; verified documentation structure, relative links, index completeness, policy checks, and oxfmt formatting rules (100-column width, 2-space indent) manually and via node scripts/docs/check-docs.cjs and git diff --check.
✅ **Push** - passed

✅ No issues found.

Add complete Marathi (mr, mr-IN, मराठी) translation coverage across all 3,477 leaf keys in mr.json, register mr in the language registry, add Marathi seed data for Express and Demo modes, regenerate backend print labels, extend locale test matrices, and update language documentation.

Fixes #1473
@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 Marathi locale across FloCafe

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Add selectable Marathi translations across POS, setup, KDS, Server App, Customer Display, and
 Settings.
• Localize print labels, lifecycle messages, and sample restaurant data for Marathi operators.
• Extend locale, printing, and setup checks; document the 27 supported languages.
Diagram

graph TD
  Registry["Language registry"] --> Catalog["Marathi catalog"] --> UI["App surfaces"]
  Catalog --> Generator["Label generator"] --> Labels["Thermal labels"]
  Registry --> Seeds["Sample seed data"]
  Registry --> Status["Lifecycle messages"]
Loading
High-Level Assessment

Extend the existing language registry and catalog, and retain generated backend print labels. Loading the entire UI catalog directly in backend printing would avoid a generated artifact but introduce unnecessary runtime coupling for a limited set of print keys.

Files changed (24) +4372 / -37

Enhancement (5) +3885 / -9
languages.tsRegister selectable Marathi locale +7/-0

Register selectable Marathi locale

• Registers mr with the mr-IN locale, native name, LTR direction, and lazy-loaded catalog.

frontend/src/lib/i18n/languages.ts

mr.jsonAdd complete Marathi message catalog +3601/-0

Add complete Marathi message catalog

• Adds Marathi messages across application surfaces, including setup, POS, KDS, Server App, Customer Display, printing, and WhatsApp.

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

print-labels.generated.tsInclude Marathi backend print labels +148/-0

Include Marathi backend print labels

• Adds mr to supported print languages and supplies generated receipt, KOT, delivery-slip, Z-report, and report labels.

main/print/print-labels.generated.ts

seed-data.tsLocalize Marathi restaurant samples +116/-9

Localize Marathi restaurant samples

• Adds Marathi Express and Demo categories, products, staff, and customers with Indian phone numbers.

main/setup/seed-data.ts

status-messages.tsLocalize startup and shutdown status +13/-0

Localize startup and shutdown status

• Adds Marathi messages for startup, database checks, backups, service readiness, and shutdown.

main/status-messages.ts

Tests (13) +458 / -7
phase7-setup-print-i18n.spec.tsAdd Marathi print-test expectations +5/-0

Add Marathi print-test expectations

• Adds expected Marathi labels for basic receipt, browser print, and WhatsApp options.

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

browser-receipts.test.tsCheck Marathi browser print output +47/-0

Check Marathi browser print output

• Tests receipt and order-slip language metadata, LTR direction, Marathi labels, and rupee output.

tests/browser-receipts.test.ts

decoupled-ui-locale.test.tsCheck Marathi dates independently of store region +25/-1

Check Marathi dates independently of store region

• Tests Marathi date formatting and receipt labels when the UI locale differs from the tenant region.

tests/decoupled-ui-locale.test.ts

i18n-audit-remediations.test.tsAdd Marathi to locale audit matrices +3/-0

Add Marathi to locale audit matrices

• Includes Marathi in message loading, HTML locale metadata, and catalog audit coverage.

tests/i18n-audit-remediations.test.ts

phase3-print-regressions.test.tsCover Marathi KOT print safety +70/-3

Cover Marathi KOT print safety

• Checks browser KOT locale and font selection, and verifies unsupported native and WebUSB Devanagari lines warn rather than print corrupted text.

tests/phase3-print-regressions.test.ts

phase7-setup-i18n.test.tsVerify Marathi setup seed records +44/-0

Verify Marathi setup seed records

• Asserts localized Express and Demo data, including products, staff, customers, and India E.164 numbers.

tests/phase7-setup-i18n.test.ts

print-kernel.test.tsTest Marathi grapheme-safe thermal layout +60/-0

Test Marathi grapheme-safe thermal layout

• Checks Devanagari conjunct segmentation, display-cell widths, truncation, and wrapping for Marathi terms.

tests/print-kernel.test.ts

print-labels.test.tsPin Marathi print terminology +16/-0

Pin Marathi print terminology

• Verifies localized bill, total, amount, and order-type labels, including the subtotal/grand-total distinction.

tests/print-labels.test.ts

reports-whatsapp.test.tsInclude the 27th locale in report coverage +1/-1

Include the 27th locale in report coverage

• Updates the catalog-count assertion used by the all-locale WhatsApp report test.

tests/reports-whatsapp.test.ts

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

Include Marathi in LTR UI checks

• Adds mr to dashboard, POS, and common directionality matrices.

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

rtl-kds-server-whatsapp.test.tsCover Marathi in standalone app locale checks +6/-1

Cover Marathi in standalone app locale checks

• Adds Marathi to KDS, Server App, WhatsApp, message-loading, and LTR direction checks.

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

rtl-setup-auth-settings.test.tsCheck Marathi browser detection and settings +13/-0

Check Marathi browser detection and settings

• Verifies both mr and mr-IN resolve to Marathi and includes it in setup, auth, and settings checks.

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

translations.test.tsEnforce Marathi translation quality +166/-1

Enforce Marathi translation quality

• Adds intentional-identical exceptions and checks for untranslated values, placeholders, NFC normalization, malformed or invisible characters, and key terminology. Adds negative fixtures for the new validator.

tests/translations.test.ts

Documentation (6) +29 / -21
CONTRIBUTING.mdList Marathi as a supported translation +1/-1

List Marathi as a supported translation

• Adds Marathi to the contributor-facing language list.

CONTRIBUTING.md

README.mdAdvertise 27 languages, including Marathi +2/-1

Advertise 27 languages, including Marathi

• Updates the supported-language count and adds Marathi to the UI language list.

README.md

frontend.mdUpdate frontend locale counts +3/-3

Update frontend locale counts

• Changes the registry and message-catalog documentation from 26 to 27 locales.

docs/architecture/frontend.md

internationalization.mdDocument Marathi in the i18n catalog +3/-3

Document Marathi in the i18n catalog

• Updates the locale count and adds mr to the committed catalog list.

docs/architecture/internationalization.md

adding-a-language.mdUpdate translation guidance and test coverage counts +10/-10

Update translation guidance and test coverage counts

• Includes Marathi in normalization and invisible-character guidance, and revises language-matrix counts.

docs/guides/adding-a-language.md

translation-terminology.mdRecord Marathi terminology requirements +10/-3

Record Marathi terminology requirements

• Documents Marathi receipt, dietary-tag, cash-movement, and Devanagari spelling conventions.

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

…main/setup/seed-data.ts`, `main/status-messages.ts`, and `tests/print-kernel.test.ts` that caused `Lint & Build Validation (Linux)` and `Required Checks Gate` to fail. Verified with `node scripts/ci/check-changed-format.cjs --base 76eaf82`, `npm run lint`, `npm run lint:budget`, `npm run build`, `npm run build:frontend`, `npm run i18n:check`, `npm run docs:check`, `npm run test:print-kernel`, `npm run test:status-messages`, `npm run test:script-coverage`, and `git diff --check`
@khaira777
khaira777 merged commit 1f87081 into main Nov 7, 2026
23 checks passed
@khaira777
khaira777 deleted the fm/flocafe-i18n-marathi branch November 7, 2026 09:41
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 Marathi (मराठी) locale (mr)

1 participant