Skip to content

feat: add Ukrainian (uk) locale support - #1501

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

khaira777 merged 7 commits into
mainfrom
fm/flocafe-i18n-ukrainian

Conversation

@khaira777

@khaira777 khaira777 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Implement Ukrainian (uk, uk-UA, Українська) language support across FloCafe (Fixes #1472)

What Changed

  • Register Ukrainian (uk, Українська) in frontend/src/lib/i18n/languages.ts and add the full translation catalogue in frontend/src/lib/i18n/messages/uk.json.
  • Add Ukrainian translations for generated print labels (main/print/print-labels.generated.ts), setup demo seed data (main/setup/seed-data.ts), and desktop startup/shutdown status messages (main/status-messages.ts).
  • Expand translation parity, Cyrillic/NFC validation, receipt printing, localized error, setup i18n, and E2E test suites alongside language documentation for 32 supported locales.

Risk Assessment

✅ Low: Adds Ukrainian (uk, uk-UA) locale support following established language registration, message catalog, print label generation, seed data, documentation, and test coverage patterns, with the merge-related locale count discrepancies cleanly resolved.

Testing

Ran all targeted i18n, receipt, print-label, locale-chunk, status-message, and setup-seed test suites plus the Playwright print-test E2E spec, and drove the live application (Main API/Frontend, KDS, and Server App) in Chromium to verify Ukrainian language switching, demo restaurant seeding, browser receipt generation, and standalone app locale synchronization, capturing screenshots, rendered HTML, and SQLite state artifacts.

  • Live validation: ✅ go - 5 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Selecting Українська in Settings > Store Details persists language='uk' to the backend and updates document lang='uk-UA' and dir='ltr' without requiring the Save Changes bar ✅ pass live ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/settings-store-ukrainian.png
Initializing a demo restaurant in Ukrainian seeds localized Ukrainian categories, dishes (Український борщ, Котлета по-київськи, Деруни зі сметаною), tables (С1-С4), and +380 E.164 customer phone numb… ✅ pass live ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/pos-ukrainian-demo-catalog.png, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/customers-ukrainian-demo.p…
Opening the Printing Test Page in Ukrainian renders localized test mode buttons (Базовий чек (термопринтер), Веб-друк (браузер), Поділитися у WhatsApp) and downloads a Ukrainian HTML receipt with lang… ✅ pass live cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/print-…
Standalone KDS and Server App servers inherit the tenant's Ukrainian language setting and render their interfaces in Ukrainian with lang='uk-UA' and dir='ltr' ✅ pass live ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/kds-standalone-ukrainian.png, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/server-app-standalone-ukrain…
Adversarial translation and seed guards: Ukrainian translation catalog maintains 3,477-key parity, valid ICU pluralization (one/few/many), NFC normalization, preserved CSV machine field names, non-wel… ✅ pass live npm run i18n:check, npm run test:locale-chunks, npm run test:phase7-setup-i18n

Settings > Store Details rendered in Ukrainian (uk-UA, ltr)
POS screen with Ukrainian demo catalog and UAH pricing
Customers screen with Ukrainian demo customers (+380 E.164 phone numbers)
Tables screen with Ukrainian demo tables (С1-С4)
Printing Test Page in Ukrainian showing localized test mode buttons
Rendered Ukrainian browser receipt HTML preview (Рахунок № BILL-001)

Evidence: Downloaded Ukrainian browser receipt HTML from /print-test
<!DOCTYPE html>
<html lang="uk-UA" dir="ltr">
<head>
  <meta charset="utf-8">
  <title>Рахунок № BILL-001</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 Gurmukhi', 'Raavi', 'Kohinoor Gurmukhi', 'Gurmukhi Sangam MN', 'Noto Sans Telugu', 'Kohinoor Telugu', 'Telugu Sangam MN', 'Noto Sans Tamil', 'Latha', 'Tamil 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>Test Restaurant</h1>
      <p>123 Main Street, Mumbai - 400001</p>
      <p>Тел.: +91 9876543210</p>
      <p>Tax ID: TAXID-0001</p>
    </div>

    <!-- Bill Details -->
    <div class="bill-details">
      <table>
        <tr>
          <td><strong>Рахунок №</strong> BILL-001</td>
          <td class="text-end"><strong>Дата</strong> 7 лист. 2026 р., 23:32</td>
        </tr>
        <tr><td><strong>Стіл</strong> Table 5</td><td></td></tr>
        
        <tr><td><strong>Клієнт</strong> John Doe</td><td></td></tr>
        <tr><td><strong>Номер клієнта</strong> 9876543210</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>
              Chicken Biryani
              <br><small class="text-muted">+ Extra Spice (40,00 ₴)</small>
              <br><small class="text-italic">Less onion</small>
            </td>
            <td class="text-end num">2</td>
            <td class="text-end num">180,00 ₴</td>
            <td class="text-end num">378,00 ₴</td>
          </tr>
        
          <tr>
            <td>
              Tandoori Roti
              
              
            </td>
            <td class="text-end num">4</td>
            <td class="text-end num">30,00 ₴</td>
            <td class="text-end num">126,00 ₴</td>
          </tr>
        
          <tr>
            <td>
              Masala Papad
              
              
            </td>
            <td class="text-end num">1</td>
            <td class="text-end num">50,00 ₴</td>
            <td class="text-end num">52,50 ₴</td>
          </tr>
        
      </tbody>
    </table>

    <!-- Tax Breakdown -->
    
    <table class="tax-table">
      <thead>
        <tr><th colspan="2">Деталі податку</th></tr>
      </thead>
      <tbody>
        
          <tr><td>Tax A @6%</td><td class="text-end num">27,00 ₴</td></tr>
        
          <tr><td>Tax B @6%</td><td class="text-end num">27,00 ₴</td></tr>
        
      </tbody>
    </table>
    

    <!-- Totals -->
    <table class="totals-table">
      
      
      <tr><td>Проміжний підсумок</td><td class="text-end num">450,00 ₴</td></tr>
      
      
      
      
      
      
      <tr class="total-row"><td><strong>Загальна сума</strong></td><td class="text-end num"><strong>504,00 ₴</strong></td></tr>
      
      
      
    </table>

    <!-- Payments -->
    
    <table class="payments-table">
      <thead>
        <tr><th colspan="2">Платежі</th></tr>
      </thead>
      <tbody>
        
          <tr><td>Готівка</td><td class="text-end num">504,00 ₴</td></tr>
        
      </tbody>
    </table>
    

    <!-- 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>
  
![Standalone KDS login screen synced to Ukrainian (uk-UA, ltr)](https://github.com/user-attachments/assets/fc6282e6-3c25-4a04-95d1-4fc4d6606d42) ![Standalone Server App login screen synced to Ukrainian (uk-UA, ltr)](https://github.com/user-attachments/assets/23ccd393-7be5-4acc-b20a-423738c4f972)
Evidence: Persisted SQLite state after Ukrainian demo restaurant setup initialization
{
  "setupStatus": 200,
  "settings": [
    {
      "key": "business_name",
      "value": "Кафе Львівська Площа"
    },
    {
      "key": "country",
      "value": "UA"
    },
    {
      "key": "currency",
      "value": "UAH"
    },
    {
      "key": "language",
      "value": "uk"
    },
    {
      "key": "timezone",
      "value": "Europe/Kyiv"
    }
  ],
  "categories": [
    {
      "id": "cat-demo-starters",
      "name": "Закуски"
    },
    {
      "id": "cat-demo-main",
      "name": "Основні страви"
    },
    {
      "id": "cat-demo-beverages",
      "name": "Напої"
    },
    {
      "id": "cat-demo-desserts",
      "name": "Десерти"
    }
  ],
  "sampleProducts": [
    {
      "id": "prod-demo-banosh",
      "name": "Банош із бринзою",
      "price": 150
    },
    {
      "id": "prod-demo-varenyky",
      "name": "Вареники з картоплею",
      "price": 280
    },
    {
      "id": "prod-demo-deruny",
      "name": "Деруни зі сметаною",
      "price": 250
    },
    {
      "id": "prod-demo-kyiv-cutlet",
      "name": "Котлета по-київськи",
      "price": 220
    },
    {
      "id": "prod-demo-lemonade",
      "name": "Лимонад",
      "price": 70
    },
    {
      "id": "prod-demo-syrnyky",
      "name": "Сирники",
      "price": 80
    }
  ],
  "customers": [
    {
      "id": "cust-demo-1",
      "name": "Олена Коваленко",
      "phone": "+380501234567",
      "country_code": "+380"
    },
    {
      "id": "cust-demo-2",
      "name": "Тарас Шевченко",
      "phone": "+380501234568",
      "country_code": "+380"
    },
    {
      "id": "cust-demo-3",
      "name": "Марія Бондаренко",
      "phone": "+380501234569",
      "country_code": "+380"
    }
  ],
  "tables": [
    {
      "id": "tbl-demo-1",
      "number": "С1"
    },
    {
      "id": "tbl-demo-2",
      "number": "С2"
    },
    {
      "id": "tbl-demo-3",
      "number": "С3"
    },
    {
      "id": "tbl-demo-4",
      "number": "С4"
    }
  ]
}

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ README.md:197 - After merging origin/main (which added Tamil as the 31st locale), 3-way merge kept 31 where both branches had incremented 30 to 31. Update the remaining locale counts to reflect all 32 registered locales: README.md:197 (31 localized languages -> 32 localized languages), docs/architecture/frontend.md:545 (## Internationalization: 31 locales -> 32 locales), docs/architecture/frontend.md:548 (It holds 31 entries -> 32 entries, matching line 670's 32 message files), and docs/guides/adding-a-language.md:132-138 (update test matrix coverage counts from 30 of 31, All 31, 27 of 31, 27 of 31 ... 25, and 25 of 31 to 31 of 32, All 32, 28 of 32, 28 of 32 ... 26, and 26 of 32).

🔧 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
Selecting Українська in Settings > Store Details persists language='uk' to the backend and updates document lang='uk-UA' and dir='ltr' without requiring the Save Changes bar ✅ pass live ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/settings-store-ukrainian.png
Initializing a demo restaurant in Ukrainian seeds localized Ukrainian categories, dishes (Український борщ, Котлета по-київськи, Деруни зі сметаною), tables (С1-С4), and +380 E.164 customer phone numb… ✅ pass live ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/pos-ukrainian-demo-catalog.png, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/customers-ukrainian-demo.p…
Opening the Printing Test Page in Ukrainian renders localized test mode buttons (Базовий чек (термопринтер), Веб-друк (браузер), Поділитися у WhatsApp) and downloads a Ukrainian HTML receipt with lang… ✅ pass live cd frontend &amp;&amp; npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/print-…
Standalone KDS and Server App servers inherit the tenant's Ukrainian language setting and render their interfaces in Ukrainian with lang='uk-UA' and dir='ltr' ✅ pass live ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/kds-standalone-ukrainian.png, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/server-app-standalone-ukrain…
Adversarial translation and seed guards: Ukrainian translation catalog maintains 3,477-key parity, valid ICU pluralization (one/few/many), NFC normalization, preserved CSV machine field names, non-wel… ✅ pass live npm run i18n:check, npm run test:locale-chunks, npm run test:phase7-setup-i18n
  • npm run i18n:check
  • npm run test:print-labels
  • npm run test:browser-receipts
  • npm run test:decoupled-ui-locale
  • npm run test:i18n-audit-remediations
  • npm run test:issue-241-localized-errors
  • npm run test:phase7-setup-i18n
  • npm run test:cash-closures
  • npm run test:rtl-setup-auth-settings
  • npm run test:rtl-dashboard-pos-common
  • npm run test:rtl-kds-server-whatsapp
  • npm run test:status-messages
  • npm run build && npm run build:frontend && npm run test:locale-chunks
  • cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium
  • Live Chromium E2E verification of Ukrainian language switching in /settings?tab=store, Ukrainian demo restaurant setup via POST /api/auth/setup/initialize, /pos catalog, /customers, /tables, /print-test HTML receipt download and rendering, and standalone KDS & Server App interfaces
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ 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 Ukrainian localization across FloCafe

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Add Ukrainian UI translations for POS, setup, settings, KDS, Server App, and Customer Display.
• Localize print labels, lifecycle messages, reports, and sample data without tying language to
 store country.
• Extend locale, printing, setup, and translation checks; document support for 28 languages.
Diagram

graph TD
  Registry["Language registry"] --> Catalog["Ukrainian catalogue"] --> Apps["FloCafe apps"]
  Catalog --> Labels["Generated print labels"] --> Printing["Receipts and KOT"]
  Catalog --> Reports["WhatsApp reports"]
  Registry --> Seeds["Setup seed data"]
  Registry --> Status["Lifecycle messages"]
Loading
High-Level Assessment

Use the existing language registry, catalogue, generated print-label table, and main-process localization paths. A separate Ukrainian rendering pipeline would duplicate established behavior without improving this locale addition.

Files changed (23) +4863 / -228

Enhancement (5) +3997 / -106
languages.tsRegister selectable Ukrainian locale +7/-0

Register selectable Ukrainian locale

• Registers uk as an LTR, selectable language with native name Українська, locale uk-UA, and a lazy-loaded catalogue.

frontend/src/lib/i18n/languages.ts

uk.jsonProvide the complete Ukrainian UI catalogue +3601/-0

Provide the complete Ukrainian UI catalogue

• Adds Ukrainian messages across application surfaces, including setup, POS, KDS, Server App, Customer Display, settings, printing, and WhatsApp. Includes ICU plural forms and terminology for receipts and cash reporting.

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

print-labels.generated.tsGenerate Ukrainian native print labels +148/-0

Generate Ukrainian native print labels

• Adds uk to supported print languages and supplies labels for receipts, KOTs, delivery slips, Z-reports, print tests, and report text.

main/print/print-labels.generated.ts

seed-data.tsSeed Ukrainian express and demo restaurants +231/-106

Seed Ukrainian express and demo restaurants

• Resolves uk as a seed language and adds Ukrainian categories, products, table labels, customers, and staff names. Ukrainian sample phone numbers remain independent of the selected store country; some existing expressions are reformatted.

main/setup/seed-data.ts

status-messages.tsLocalize desktop lifecycle messages +10/-0

Localize desktop lifecycle messages

• Adds Ukrainian text for startup, service initialization, backup, shutdown, and saved-data states.

main/status-messages.ts

Tests (12) +839 / -103
phase7-setup-print-i18n.spec.tsExpect Ukrainian print-test options in E2E coverage +65/-12

Expect Ukrainian print-test options in E2E coverage

• Adds expected Ukrainian thermal, browser-print, and WhatsApp option labels. Also reformats existing fixtures.

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

browser-receipts.test.tsVerify Ukrainian browser receipts and order slips +155/-21

Verify Ukrainian browser receipts and order slips

• Loads Ukrainian receipt messages and asserts uk-UA LTR metadata and Cyrillic receipt labels. Adds an order-slip localization check and reformats existing fixtures.

tests/browser-receipts.test.ts

decoupled-ui-locale.test.tsCheck Ukrainian dates against a separate store region +160/-32

Check Ukrainian dates against a separate store region

• Asserts that a Ukrainian UI locale supplies date language while retaining an Argentine store timezone. Other changes reformat existing test data.

tests/decoupled-ui-locale.test.ts

i18n-audit-remediations.test.tsInclude Ukrainian in receipt and locale audits +27/-4

Include Ukrainian in receipt and locale audits

• Adds uk to receipt-message loading, locale-tag and direction expectations, and catalogue-audit loops.

tests/i18n-audit-remediations.test.ts

phase3-print-regressions.test.tsInclude Ukrainian in print regression coverage +44/-7

Include Ukrainian in print regression coverage

• Adds uk to the print-regression language list; remaining changes reformat existing test fixtures.

tests/phase3-print-regressions.test.ts

phase7-setup-i18n.test.tsValidate Ukrainian seeds and message interpolation +99/-5

Validate Ukrainian seeds and message interpolation

• Checks express and demo samples, Ukraine-format customer numbers, and localized table labels. Tests Ukrainian plural forms and count-safe message placeholders.

tests/phase7-setup-i18n.test.ts

print-labels.test.tsPin Ukrainian receipt terminology +27/-2

Pin Ukrainian receipt terminology

• Asserts Ukrainian grand total, bill number, cash-received, takeaway, delivery, and subtotal labels in the generated print table.

tests/print-labels.test.ts

reports-whatsapp.test.tsExpect 28 report locales +1/-1

Expect 28 report locales

• Updates the all-catalogue WhatsApp report coverage assertion from 27 to 28 locale files.

tests/reports-whatsapp.test.ts

rtl-dashboard-pos-common.test.tsCover Ukrainian LTR dashboard behavior +7/-1

Cover Ukrainian LTR dashboard behavior

• Adds uk to toaster-rendering and language-direction checks. Reformats one existing provider fixture.

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

rtl-kds-server-whatsapp.test.tsCover Ukrainian KDS and Server App localization +30/-11

Cover Ukrainian KDS and Server App localization

• Loads Ukrainian messages and includes uk in direction, document-language, and translated-key checks for the companion apps.

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

rtl-setup-auth-settings.test.tsRecognize Ukrainian browser language +25/-3

Recognize Ukrainian browser language

• Asserts that both uk and uk-UA browser settings resolve to uk and includes Ukrainian in setup, authentication, and settings translation checks.

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

translations.test.tsGuard Ukrainian catalogue integrity +199/-4

Guard Ukrainian catalogue integrity

• Adds reviewed English-identical exceptions and checks for untranslated values, placeholders, NFC violations, replacement characters, and invisible characters. Also pins Ukrainian terminology, CSV field names, and order-number placement with negative tests.

tests/translations.test.ts

Documentation (6) +27 / -19
CONTRIBUTING.mdList Ukrainian among supported translations +1/-1

List Ukrainian among supported translations

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

CONTRIBUTING.md

README.mdAdvertise 28 languages and Ukrainian support +2/-1

Advertise 28 languages and Ukrainian support

• Updates the supported-language count and adds Ukrainian to the README language list.

README.md

frontend.mdUpdate frontend locale inventory +3/-3

Update frontend locale inventory

• Changes registry, catalogue, and architecture references from 27 to 28 locales.

docs/architecture/frontend.md

internationalization.mdDocument the Ukrainian catalogue +3/-3

Document the Ukrainian catalogue

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

docs/architecture/internationalization.md

adding-a-language.mdRefresh translation-validation guidance +10/-10

Refresh translation-validation guidance

• Adds Ukrainian to the documented Unicode safeguards and updates intentional-identical and test-coverage counts.

docs/guides/adding-a-language.md

translation-terminology.mdRecord Ukrainian terminology conventions +8/-1

Record Ukrainian terminology conventions

• Documents Ukrainian restaurant, total, and cash-movement terms and adds uk.json to the NFC requirement.

docs/reference/translation-terminology.md

@qodo-code-review

qodo-code-review Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Dairy products can get a dairy-free tag 🐞 Bug ≡ Correctness
Description
Both Ukrainian tagDairyFree entries say “Без лактози” (lactose-free) instead of dairy-free. When
staff tag a lactose-free product that still contains dairy, the product receives the canonical
dairy_free tag and the POS displays it to users as such.
Code

frontend/src/lib/i18n/messages/uk.json[1115]

+    "tagDairyFree": "Без лактози",
Relevance

●●● Strong

Clear mistranslation of a canonical tag label; team consistently accepts Ukrainian and other locale
term corrections.

PR-#850
PR-#926

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The English catalogue calls this tag “Dairy-Free,” while the product editor assigns its translated
label to the dairy_free preset. The POS badge translates the same canonical tag, so the wording
affects both tag selection and its display.

frontend/src/lib/i18n/messages/uk.json[1115-1115]
frontend/src/lib/i18n/messages/uk.json[1591-1591]
frontend/src/lib/i18n/messages/en.json[1115-1115]
frontend/src/app/(dashboard)/products/page.tsx[65-73]
frontend/src/components/pos/DietaryBadge.tsx[63-69]
frontend/src/components/pos/DietaryBadge.tsx[97-107]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Ukrainian label for `dairy_free` means lactose-free, which can cause staff to apply a dairy-free tag to a product that contains dairy.
## Fix Focus Areas
- frontend/src/lib/i18n/messages/uk.json[1115-1115]
- frontend/src/lib/i18n/messages/uk.json[1591-1591]
## Recommended Fix
Change both `tagDairyFree` values to a Ukrainian phrase meaning free of dairy products, such as “Без молочних продуктів”.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗



Remediation recommended

2. Cashiers see Cancel on charge waivers 🐞 Bug ≡ Correctness
Description
The Ukrainian waiveCharge value is “Скасувати” (Cancel), although its button toggles whether an
optional charge is waived. Whenever an optional charge is active, clicking that button changes the
charge rather than cancelling the interaction, while the opposite state is labelled “Застосувати”
(Apply).
Code

frontend/src/lib/i18n/messages/uk.json[1148]

+    "waiveCharge": "Скасувати",
Relevance

●●● Strong

Button label states the opposite action (Cancel vs Waive); team accepts label-meaning fixes like
swapNameAndPhone.

PR-#1043
PR-#850

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The cart button invokes toggleWaiveCharge and displays waiveCharge only while the charge is not
waived. English labels this action “Waive,” not “Cancel.”

frontend/src/lib/i18n/messages/uk.json[1148-1149]
frontend/src/lib/i18n/messages/en.json[1148-1149]
frontend/src/components/pos/CartPanel.tsx[936-945]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The active optional-charge button reads Cancel in Ukrainian, but it waives the charge rather than cancelling an interaction.
## Fix Focus Areas
- frontend/src/lib/i18n/messages/uk.json[1148-1148]
## Recommended Fix
Translate `waiveCharge` as an explicit action to waive or not collect the charge, distinguishable from the existing Apply label.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


3. Cashiers may misidentify the refund destination 🐞 Bug ≡ Correctness
Description
refundMethodStoreCredit says “Бонусний баланс закладу” (the establishment’s bonus balance) rather
than identifying monetary credit in the customer’s wallet. When a cashier selects that option in the
refund modal, the request submits method: 'wallet', which the backend processes as a store-credit
refund.
Code

frontend/src/lib/i18n/messages/uk.json[771]

+    "refundMethodStoreCredit": "Бонусний баланс закладу",
Relevance

●● Moderate

Translation-accuracy fixes are usually accepted, but this is a semantic product-meaning concern; no
close precedent found.

PR-#1043
PR-#926

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The translated string is the label of the modal’s wallet option; the selected method is sent to
/refunds, where wallet is explicitly treated as store credit requiring an associated customer.

frontend/src/lib/i18n/messages/uk.json[771-771]
frontend/src/lib/i18n/messages/en.json[771-771]
frontend/src/components/orders/RefundModal.tsx[465-471]
frontend/src/components/orders/RefundModal.tsx[323-339]
main/services/refund.ts[275-286]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Ukrainian refund option describes an establishment bonus balance instead of the customer’s store-credit wallet, obscuring where refunded money goes.
## Fix Focus Areas
- frontend/src/lib/i18n/messages/uk.json[771-771]
## Recommended Fix
Replace `refundMethodStoreCredit` with an unambiguous Ukrainian translation for customer store credit, consistent with the wallet terminology elsewhere in the catalogue.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #39
✅ Compliance rules (platform): 5 rules
✅ Cross-repo context — repo relationships
  Explored: repo: FreeOpenSourcePOS/flopos.com (sha: a2f87d48) — View relationship
  Explored: repo: FreeOpenSourcePOS/docs.flopos.com (sha: abe7cff3) — View relationship
Review mode: Auto: ⚖️ Balanced: Mostly a 3600-line translation catalog; logic changes are moderate and bounded.

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

Comment thread frontend/src/lib/i18n/messages/uk.json Resolved
Comment thread frontend/src/lib/i18n/messages/uk.json Resolved
Comment thread frontend/src/lib/i18n/messages/uk.json Resolved
@khaira777
khaira777 force-pushed the fm/flocafe-i18n-ukrainian branch from 5ce62ff to 06796db Compare November 7, 2026 11:33
@khaira777
khaira777 enabled auto-merge (squash) November 7, 2026 21:47
@khaira777
khaira777 merged commit 49ec2be into main Nov 7, 2026
23 checks passed
@khaira777
khaira777 deleted the fm/flocafe-i18n-ukrainian branch November 7, 2026 21:55
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 Ukrainian (Українська) locale (uk)

1 participant