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 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
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'
⚠️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
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'
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
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 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.
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.
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.
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.
• 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.
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.
ⓘ 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.
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
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).
ⓘ 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.”
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
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.
ⓘ 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.
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
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 Ukrainian (uk, uk-UA, Українська) language support across FloCafe (Fixes #1472)
What Changed
uk,Українська) infrontend/src/lib/i18n/languages.tsand add the full translation catalogue infrontend/src/lib/i18n/messages/uk.json.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).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.
cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/print-…npm run i18n:check,npm run test:locale-chunks,npm run test:phase7-setup-i18nEvidence: Downloaded Ukrainian browser receipt HTML from /print-test
Evidence: Persisted SQLite state after Ukrainian demo restaurant setup initialization
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 mergingorigin/main(which added Tamil as the 31st locale), 3-way merge kept31where both branches had incremented30to31. 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's32 message files), anddocs/guides/adding-a-language.md:132-138(update test matrix coverage counts from30 of 31,All 31,27 of 31,27 of 31 ... 25, and25 of 31to31 of 32,All 32,28 of 32,28 of 32 ... 26, and26 of 32).🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
cd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromium, ~/.no-mistakes/evidence/01M6VXN17G10GDY00CZM7JCP5P/print-…npm run i18n:check,npm run test:locale-chunks,npm run test:phase7-setup-i18nnpm run i18n:checknpm run test:print-labelsnpm run test:browser-receiptsnpm run test:decoupled-ui-localenpm run test:i18n-audit-remediationsnpm run test:issue-241-localized-errorsnpm run test:phase7-setup-i18nnpm run test:cash-closuresnpm run test:rtl-setup-auth-settingsnpm run test:rtl-dashboard-pos-commonnpm run test:rtl-kds-server-whatsappnpm run test:status-messagesnpm run build && npm run build:frontend && npm run test:locale-chunkscd frontend && npx playwright test e2e/phase7-setup-print-i18n.spec.ts --config=playwright.config.ts --project=chromiumLive Chromium E2E verification of Ukrainian language switching in/settings?tab=store, Ukrainian demo restaurant setup viaPOST /api/auth/setup/initialize,/poscatalog,/customers,/tables,/print-testHTML 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.