Skip to content

feat(i18n): add German language support across POS and printing - #560

Merged
khaira777 merged 18 commits into
mainfrom
feat/add-german-language
Sep 2, 2026
Merged

khaira777 merged 18 commits into
mainfrom
feat/add-german-language

Conversation

@khaira777

@khaira777 khaira777 commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Add complete, authentic German language support (de-DE) to FloCafe POS across all system surfaces including Core POS, Setup wizard, KDS, standalone Server App, and thermal receipt/KOT print engine. Ensure 100% leaf parity across all 2,273 keys in en.json with zero placeholder strings, matching ICU variables, matching rich-text tags, dynamic lazy chunk loading, passing print label generation drift checks, and comprehensive translation validation test suites with negative fixtures.

What Changed

  • Added a lazy-loaded de-DE locale with complete German UI translations and validation for key parity, ICU variables, rich-text tags, placeholders, and English fallbacks.
  • Localized German setup/demo seed data, country tax metadata, documentation, and language listings.
  • Extended receipt, KOT, tax-bill, browser, ESC/POS, and merchant print paths with German labels, order types, timezone-aware formatting, thermal umlaut transliteration, generated print-label coverage, and focused regression/negative tests.

Risk Assessment

🚨 High: Required German support still fails on reachable print-test and thermal WebUSB paths, and browser tax printing can silently use the wrong language.

Testing

Installed the locked dependencies needed by the focused suites, then verified 2,273-key translation parity with negative fixtures, print-label drift, print parity, German SSR/KOT/receipt behavior, setup and KDS integration, successful frontend/backend builds, and offline lazy German chunk loading. Captured and visually inspected German Setup, receipt, and KOT artifacts. No full repository suite or lint was run per the targeted-test phase boundary.

  • Evidence: German Setup wizard after language switch (local file: ~/.no-mistakes/evidence/01M1FESZWHBYTDGRZ7APT867CD/german-setup-after-language-switch.png)
  • Evidence: German thermal receipt (local file: ~/.no-mistakes/evidence/01M1FESZWHBYTDGRZ7APT867CD/german-thermal-receipt.png)
  • Evidence: German KOT (local file: ~/.no-mistakes/evidence/01M1FESZWHBYTDGRZ7APT867CD/german-kot.png)
Evidence: Locale chunk verification
German locale chunk verified as a distinct lazy, offline chunk with no eager page reference or external URLs.
Evidence: Generated German thermal receipt HTML
<!DOCTYPE html>
<html lang="de-DE" dir="ltr">
<head>
  <meta charset="utf-8">
  <title>Rechnung Nr. RECH-DE-2026-0042</title>
  <style>
    
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Helvetica Neue', Arial, sans-serif; font-size: 12px; line-height: 1.4; color: #333; }
    .bill-container { max-width: 100%; margin: 0 auto; }
    .reprint-banner { text-align: center; font-size: 22px; font-weight: bold; letter-spacing: 2px; color: #c00; border: 3px solid #c00; padding: 6px; margin-bottom: 15px; }
    .online-order-banner { text-align: center; font-size: 18px; font-weight: bold; letter-spacing: 1px; border: 2px solid #333; padding: 6px; margin-bottom: 15px; }
    .online-order-banner .online-order-detail { font-size: 13px; font-weight: normal; letter-spacing: normal; margin-top: 2px; }
    .header { text-align: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #ccc; }
    .header h1 { font-size: 24px; margin-bottom: 5px; }
    .bill-details { margin-bottom: 15px; }
    .bill-details table { width: 100%; }
    .items-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
    .items-table th, .items-table td { padding: 8px; border-bottom: 1px solid #eee; text-align: start; }
    .items-table th { background: #f5f5f5; font-weight: bold; }
    .tax-table, .payments-table { width: 50%; margin-inline-start: 50%; border-collapse: collapse; margin-bottom: 15px; }
    .tax-table th, .tax-table td, .payments-table th, .payments-table td { padding: 6px 8px; }
    .tax-table th, .payments-table th { background: #f9f9f9; text-align: start; }
    .totals-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
    .totals-table td { padding: 6px 8px; }
    .total-row { border-top: 2px solid #333; font-size: 16px; }
    .footer { text-align: center; margin-top: 30px; padding-top: 15px; border-top: 1px solid #ccc; }
    .powered-by { font-size: 10px; margin-top: 8px; color: #555; }
    .text-end { text-align: end !important; }
    .num { unicode-bidi: isolate; white-space: nowrap; }
    .ltr { direction: ltr; unicode-bidi: isolate; }
    .text-muted { color: #666; }
    .text-italic { font-style: italic; color: #888; }
  
        .bill-container { padding: 10px; max-width: 80mm; font-size: 11px; }
        .header h1 { font-size: 16px; }
      
    @media print {
      .no-print { display: none !important; }
      body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    }
  </style>
</head>
<body>
  <div class="bill-container">
    <div class="reprint-banner">DUPLIKAT</div>
    
    <!-- Header -->
    <div class="header">
      <h1>Café Flo Berlin</h1>
      <p>Rosenthaler Straße 12, 10119 Berlin</p>
      <p>Tel.: +49 30 12345678</p>
      <p>Steuernummer: DE123456789</p>
    </div>

    <!-- Bill Details -->
    <div class="bill-details">
      <table>
        <tr>
          <td><strong>Rechnung Nr.</strong> RECH-DE-2026-0042</td>
          <td class="text-end"><strong>Datum</strong> 2. Sept. 2026, 17:42</td>
        </tr>
        <tr><td><strong>Tisch</strong> 7</td><td></td></tr>
        <tr><td><strong>Kunde</strong> Jürgen Müller</td><td></td></tr>
        <tr><td><strong>Kundennummer</strong> +49 170 1234567</td><td></td></tr>
      </table>
    </div>

    <!-- Items Table -->
    <table class="items-table">
      <thead>
        <tr>
          <th>Artikel</th>
          <th class="text-end">Menge</th>
          <th class="text-end">Einzelpreis</th>
          <th class="text-end">Betrag</th>
        </tr>
      </thead>
      <tbody>
        
          <tr>
            <td>
              Käsekuchen
              <br><small class="text-muted">+ Sahne</small>
              <br><small class="text-italic">Mit extra Zimt</small>
            </td>
            <td class="text-end num">2</td>
            <td class="text-end num">6,50 €</td>
            <td class="text-end num">15,47 €</td>
          </tr>
        
          <tr>
            <td>
              Cappuccino
              
              
            </td>
            <td class="text-end num">1</td>
            <td class="text-end num">5,00 €</td>
            <td class="text-end num">5,95 €</td>
          </tr>
        
      </tbody>
    </table>

    <!-- Tax Breakdown -->
    
    <table class="tax-table">
      <thead>
        <tr><th colspan="2">Steuerdetails</th></tr>
      </thead>
      <tbody>
        
          <tr><td>Mehrwertsteuer @19%</td><td class="text-end num">5,23 €</td></tr>
        
      </tbody>
    </table>
    

    <!-- Totals -->
    <table class="totals-table">
      
      <tr><td>Zwischensumme</td><td class="text-end num">27,50 €</td></tr>
      
      
      
      
      <tr class="total-row"><td><strong>GESAMTSUMME</strong></td><td class="text-end num"><strong>32,73 €</strong></td></tr>
      
    </table>

    <!-- Payments -->
    
    <table class="payments-table">
      <thead>
        <tr><th colspan="2">Zahlungen</th></tr>
      </thead>
      <tbody>
        
          <tr><td>Karte</td><td class="text-end num">32,73 €</td></tr>
        
      </tbody>
    </table>
    

    <!-- Footer -->
    <div class="footer">
      <p>Vielen Dank für Ihren Besuch!</p>
      <p>Steuer enthalten, sofern zutreffend</p>
      <p class="powered-by">Powered by FloPOS<br>https://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;">Rechnung drucken</button>
  </div>
</body>
</html>
  
Evidence: Generated German KOT HTML
<!DOCTYPE html><html lang="de-DE" dir="ltr"><head><meta charset="utf-8"><title>German KOT</title><style>body{margin:0;background:white}.kot-container{max-width:460px;margin:0 auto}</style></head><body>
    <div class="kot-container" dir="ltr" style="text-align:start;padding:6px;font-family:'Courier New',monospace;font-size:12px;">
      <h2 style="margin:0 0 6px 0;font-size:16px;text-align:center;">KÜCHENBESTELLSCHEIN (KOT)</h2>
      <p style="margin:2px 0;font-weight:bold;">Bestellung #ORD-DE-0042</p>
      <p style="margin:2px 0;">Tisch: 7</p>
      <p style="margin:2px 0;">Typ: Im Restaurant</p>
      <p style="margin:2px 0;">Kunde: Jürgen Müller</p>
      <p style="margin:2px 0;">Uhrzeit: 17:42</p>
      <hr style="border:1px dashed #000;margin:6px 0;">
      
        <div style="margin:6px 0;">
          <div style="font-weight:bold;">2x Käsekuchen</div>
          <div style="padding-inline-start:1em;">+ Sahne</div>
          <div style="padding-inline-start:1em;font-style:italic;">&gt;&gt; Mit extra Zimt</div>
        </div>
      
        <div style="margin:6px 0;">
          <div style="font-weight:bold;">1x Cappuccino</div>
          
          
        </div>
      
      <hr style="border:1px dashed #000;margin:6px 0;">
      <p style="margin:2px 0;text-align:center;">--- ENDE ---</p>
    </div>
  </body></html>
- Outcome: 🔧 4 issues found → auto-fixed ✅ across 2 runs (30m52s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 3 issues (2 errors, 1 warning)
  • 🚨 frontend/src/lib/i18n/messages/de.json:83 - The required intent says “Add complete, authentic German language support (de-DE) ... across all system surfaces”. The selectable locale contains widespread mixed or malformed German, e.g. Sicherung failed: {error} here and Neinte, Nein pending items, and English print text later in the same bundle. Users selecting Deutsch will see non-German UI and thermal output. Complete the translations and regenerate the print-label table; this contradicts an explicit acceptance criterion and needs author review.
  • ⚠️ README.de.md:46 - The German README contains unresolved merge-conflict markers and two competing paragraphs, so rendered documentation exposes &lt;&lt;&lt;&lt;&lt;&lt;&lt;, =======, and &gt;&gt;&gt;&gt;&gt;&gt;&gt;. Resolve the conflict and retain the merged language list.

🔧 Fix: Resolve German README merge conflict
3 issues (2 errors, 1 warning) still open:

  • 🚨 frontend/src/lib/i18n/messages/de.json:83 - The required intent says "Add complete, authentic German language support (de-DE) ... across all system surfaces". The selectable bundle still contains malformed or mixed-language UI text, including "Sicherung failed: {error}" here and "Neinte", "Nein pending items", and English print strings later in the bundle. Selecting Deutsch therefore exposes non-German UI and output. Complete and review the bundle before keeping selectable: true.
  • 🚨 frontend/src/lib/i18n/messages/de.json:741 - The required intent includes the "thermal receipt/KOT print engine", but this added German KOT banner contains Ü. The normal KOT path sends it through buildEscPos, which skips any non-ASCII line and emits only a warning; the useUnicode argument does not bypass that guard. German KOT banners and receipt labels containing umlauts are therefore omitted on standard thermal printing. Approve a supported encoding or fallback before claiming thermal coverage.
  • ⚠️ frontend/src/lib/i18n/languages.ts:44 - Making de selectable exposes the setup demo path, but seedDemoRestaurant only localizes es, fr, and pt; de falls through to English sample categories, products, and staff. A German user choosing the Demo profile consequently starts the POS with English seeded content. Localize this seeded content or confirm that demo data is intentionally language-neutral.

🔧 Fix: Fix German translations, demo seed, and thermal fallback
4 errors still open:

  • 🚨 frontend/src/lib/i18n/messages/de.json:1260 - The selectable bundle still contains non-authentic German such as "Generate Kopplungscode" (1260), "BestellungFlow" (1643), "Inhaber Email"/"Inhaber Name" (1777/1780), "Pack Standard" (2118), and "Deaktivieren WhatsApp" (2205/2207). This contradicts the required complete, authentic German support; correct these before keeping de selectable.
  • 🚨 tests/translations.test.ts:915 - The new German safeguard fails on the current bundle because staff.roleManager is "Manager" in both English and German but is missing from DE_INTENTIONAL_IDENTICAL; deFallbackErrors therefore reports it on every run. Add this legitimate German loanword to the intentional set or translate it.
  • 🚨 frontend/src/lib/i18n/languages.ts:44 - The new selectable language does not cover active legacy thermal paths: connected WebUSB KOT printing still calls buildKotBytes with hard-coded English labels, and the print-test tax mode calls buildTaxBillBytes with English labels such as Bill #, Date, Item, and TOTAL. This contradicts the required thermal receipt/KOT coverage; the repository documents these paths as legacy-frozen, so extending them requires an explicit scope decision.
  • 🚨 main/printers/thermal.ts:1498 - The fixer added a global fallback that changes the existing printer contract: Dirección is emitted as Direccion without the documented unsupported-character warning, while backend buildEscPos treats the multi-character currency token د.إ as safe and emits unshaped Arabic bytes when shaping is disabled. This exceeds the original German-umlaut fix and can silently alter or send unsupported text; revert to a minimal German-safe fallback or approve the broader policy.

🔧 Fix: Allow German Manager loanword in translation validation
3 errors still open:

  • 🚨 frontend/src/lib/i18n/messages/de.json:1260 - The required intent says “Add complete, authentic German language support (de-DE) ... across all system surfaces ...” but the selectable bundle still exposes malformed or mixed German: “Generate Kopplungscode” (line 1260), “BestellungFlow” (1643), “Inhaber Email”/“Inhaber Name” (1777/1780), “Pack Standard” (2118), and “Deaktivieren WhatsApp”/“WhatsApp Deaktiviert.” (2205-2208). Correct these entries before keeping German selectable.
  • 🚨 frontend/src/lib/i18n/languages.ts:44 - The required intent includes “thermal receipt/KOT print engine,” but active connected-WebUSB paths still call legacy buildKotBytes and buildTaxBillBytes without a language, producing hard-coded English KOT and diagnostic receipt labels. These encoders are explicitly legacy-frozen, so extending them requires an explicit scope decision; approve that extension or revise the claimed coverage.
  • 🚨 main/printers/thermal.ts:1495 - The prior-round thermal fix added a global normalizer that changes printer semantics beyond German: Dirección is silently emitted as Direccion without the documented unsupported-character warning, while د.إ can bypass Arabic shaping and be emitted unshaped. Revert to a minimal German-safe fallback, or explicitly authorize and document the broader transliteration and Arabic-currency policy.

🔧 Fix: Localized German legacy printing and narrowed thermal fallback
2 errors still open:

  • 🚨 frontend/src/lib/printer/warnings.ts:137 - safePrinterText now applies normalizeGermanThermalText to every WebUSB print value, without a language argument. Non-German receipts containing data such as Jürgen are silently printed as Juergen instead of following the existing unsupported-character warning/skip behavior. Revert to a language-scoped fallback or explicitly approve and document global transliteration.
  • 🚨 frontend/src/lib/i18n/languages.ts:44 - The required intent includes “thermal receipt/KOT print engine,” but making German selectable at languages.ts:44 still leaves active KOT output with English Order: (main/printers/document-kot.ts:132) and raw uppercase order types such as DINE IN (also in the browser KOT path). Localize these at the shared KOT data boundary or explicitly revise the required coverage.

🔧 Fix: Scope thermal fallback and localize German KOT labels
2 errors still open:

  • 🚨 frontend/src/lib/printer/warnings.ts:138 - The German thermal fallback expands text after width calculations. KÜCHENBESTELLSCHEIN (KOT) becomes 26 characters, then buildKotBytes emits it with double width at line 51, occupying 52 columns on 42/48-column printers. German WebUSB KOT banners will wrap or overflow; normalize before truncation/width selection or fit the normalized output.
  • 🚨 frontend/src/lib/printer/tax-bill-encoder.ts:169 - The requirement calls for "complete, authentic German language support ... across all system surfaces including ... thermal receipt/KOT print engine." For a German tenant with a tax registration number, Germany has no country taxIdLabel, so this path falls back to English Tax ID; the core document and browser receipt paths use the same fallback. Provide and consistently apply an approved German or legal DE tax-ID label before claiming complete German print support.

🔧 Fix: Fit normalized German KOT banners to printer width
6 issues (5 errors, 1 warning) still open:

  • 🚨 frontend/src/lib/i18n/messages/de.json:1167 - The selectable bundle still contains malformed or incomplete German, including Bestätigen Importieren, Bestätigen PIN, Zahlungs, and Tische Erforderlich. This contradicts the required complete, authentic German support; correct these active UI labels before keeping de selectable.
  • 🚨 frontend/src/lib/i18n/messages/de.json:1627 - The German storeDiagnosticsHint says only that anonymized diagnostics are sent to support, while English explains store-attributed typed error details, excluded customer data, opt-in/default state, separation from anonymous telemetry, and the cloud-sync requirement. German operators could enable diagnostics under a materially false privacy disclosure; translate the full semantics and approve the wording.
  • 🚨 frontend/src/lib/printer/tax-bill-encoder.ts:145 - For a German tenant, main/countries.ts has no taxIdLabel, so this fallback emits English Tax ID whenever a tax registration number is printed. The same fallback reaches the core and browser receipt paths. Provide an approved German/legal label at the shared country or print-label boundary before claiming complete German thermal support.
  • 🚨 main/printers/thermal.ts:1579 - German umlaut transliteration occurs after receipt/KOT rows have already been padded or truncated. For example, a full-width row containing Servicegebühr expands from ü to ue and can exceed the configured 42/48 columns; long German item and instruction lines have the same failure. Normalize before width calculation/truncation or measure the normalized text.
  • ⚠️ main/routes/auth.ts:998 - The setup endpoint passes the selected language into seedSetupProfile, but its default Express branch still calls seedExpressRestaurant without language-aware data. A German user completing the default setup therefore receives English Food, Beverages, Meal, Snack, Tea, and Coffee seed content. Localize this branch or confirm that Express sample data is intentionally language-neutral.
  • 🚨 frontend/src/lib/printer/kot-encoder.ts:73 - The active raw WebUSB KOT path now accepts a German language but still formats its timestamp with formatTime's default en-US locale and emits no print.time label. A German ticket can therefore show 6:42 PM, unlike the localized backend KOT (Uhrzeit: 18:42). Pass the resolved locale and include the supported time label, or explicitly approve preserving this legacy omission.

🔧 Fix: Fixed German translations, setup seeds, tax labels, and KOT
4 errors still open:

  • 🚨 frontend/src/lib/printer/kot-web-print.ts:150 - The required intent says “complete, authentic German language support ... including ... thermal receipt/KOT print engine.” The active browser KOT renderer emits a bare formatTime(...) value without the localized print.time label, so German tickets omit Uhrzeit:. Add the shared label or explicitly revise the required coverage.
  • 🚨 frontend/src/lib/printer/warnings.ts:138 - normalizeGermanThermalText expands umlauts and ß into two ASCII characters, but safePrinterText does not enforce column limits after normalization. A 42-column row ending in ü becomes 43 columns; KOT and receipt rows can wrap or overflow on WebUSB printers. Normalize before layout sizing or fit the normalized value at this shared boundary.
  • 🚨 frontend/src/lib/printer/kot-encoder.ts:48 - The changed frontend KOT paths omit the configured store timezone and format timestamps using the client machine timezone (kot-encoder.ts:48,77; browser path kot-web-print.ts:150). A German KOT for a store in another timezone can therefore show a different business time than the backend ticket, violating the store-timezone invariant. Thread the existing tenant locale/timezone through these renderers or explicitly approve the legacy exception.
  • 🚨 frontend/src/lib/i18n/messages/de.json:1779 - The selectable German bundle still uses the English semantic placeholder [email protected] in the Setup wizard, while nearby German setup copy uses Inhaber and a German example domain. This conflicts with the required “complete, authentic German language support” across the Setup wizard; localize the example or approve retaining the English email placeholder.

🔧 Fix: Complete German KOT labels, timezone, width, and setup copy
7 issues (3 errors, 4 warnings) still open:

  • 🚨 frontend/src/lib/printer/warnings.ts:171 - German normalization runs after receipt layout has padded right-aligned money. At 42 columns, a Servicegebühr row expands by one character (ü -> ue), then boundGermanText slices the line and drops the final amount digit; the backend has the same post-layout truncation. Revert this broader fix-round machinery to the minimal targeted change and normalize before financial width allocation.
  • 🚨 frontend/src/lib/printer/kot-web-print.ts:153 - Frontend thermal timestamps do not consistently use the tenant timezone. The direct browser KOT test call omits timezone, while the receipt and tax encoders also discard the tenant timezone before formatting. A timestamp such as 2026-01-01T23:30:00Z can therefore print in the host timezone instead of the store's business-local time. Thread the existing tenant timezone through the shared frontend rendering boundary and all direct paths.
  • ⚠️ main/printers/document-kot.ts:118 - The new formatter removes the catalog's {number} placeholder and always inserts : . Existing labels such as Commande n° {number} and Pedido N.º {number} consequently print as Commande n°: 123 and Pedido N.º: 123; the frontend KOT helper duplicates this logic. Interpolate the placeholder while preserving locale punctuation.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:683 - The required goal calls for complete support across all system surfaces, but German printTest.escposHint is only Status: {status} while English also explains Direct USB printing via WebUSB; the German print-test UI omits the transport guidance.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:1510 - The German printer setting text says Arabic/Persian text is sent normally when enabled, but omits the safety condition to enable it only for printers that render it correctly and omits that unsupported lines are skipped when disabled. This leaves German operators without the setting's actual failure behavior.
  • 🚨 frontend/src/lib/i18n/messages/de.json:2256 - German WhatsApp pairing instructions stop after saying Flo generates an 8-digit code and after Gerät verknüpfen; they omit the required step of entering the code and selecting phone-number linking. A German user following the displayed fallback instructions cannot complete pairing.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:1612 - The German station hint only describes the no-categories case. It omits the equally important no-printer case from the English contract, where the station claims no items and those items fall back to the default printer, so German operators can misunderstand station routing.

🔧 Fix: Preserve German thermal layout and localized print semantics
8 issues (4 errors, 4 warnings) still open:

  • 🚨 main/printers/thermal.ts:1584 - The intent requires complete thermal receipt/KOT support. German transliteration occurs after wrapping and padding, so a 42-column line containing ü can become 43 columns and overflow. Revert the fixer-authored late-normalization machinery to pre-layout normalization, or authorize a broader fix.
  • 🚨 main/printers/thermal.ts:1146 - When a compliance template omits explicit line-item columns, pluginItemRows uses German labels but pluginItemHeader defaults to English, producing mixed output such as Item Qty Amount above German rows. Pass the resolved language into this shared fallback.
  • 🚨 frontend/src/lib/i18n/messages/de.json:60 - The required complete German support is not met in the active recovery flow: this message omits that no OS keyring makes local recovery impossible and omits the direct-database recovery option from English. Translate the full recovery guidance or approve the changed contract.
  • 🚨 frontend/src/lib/i18n/messages/de.json:2153 - The German tax subtitle changes the behavior description from enabling verified country rules, automatic standard product tax assignment, and per-product exceptions to a generic instruction to configure VAT. This can mislead operators about tax activation and overrides.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:1839 - The German permission-matrix description says roles can be configured, while the UI is explicitly read-only and the following note says role configuration is unavailable. This contradicts the required authentic German support and can create a false security expectation.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:1604 - The German Linux update hint omits that Flo's in-app updater is not used and that AppImage builds update automatically, leaving operators without the update-path guidance shown in English.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:2195 - The German beta-unavailable message omits the actionable instruction to update the desktop app to opt in, so users are told the feature is unavailable without the documented next step.
  • ⚠️ frontend/src/lib/i18n/messages/de.json:2284 - The German WhatsApp enablement guidance omits the safeguards to message only customers who expect WhatsApp and keep their records current. Those operational and consent instructions are part of the displayed floHelps copy and required authentic support.

🔧 Fix: Fix German thermal layout and operational translations
3 issues (2 errors, 1 warning) still open:

  • 🚨 frontend/src/app/(dashboard)/print-test/page.tsx:151 - The print-test selector still renders five hardcoded English labels instead of the existing German printTest.option* translations, violating the required complete German support across all system surfaces.
  • 🚨 frontend/src/lib/printer/receipt-encoder.ts:423 - Thermal WebUSB receipts remain incomplete: compact headers are hardcoded English, while German classic 58mm headers exceed their fixed cell widths and overflow; large-value fallback rows also use English Rate/Amount.
  • ⚠️ frontend/src/hooks/usePrinter.ts:253 - The browser tax-print fallback omits TaxBillOptions.language, so an explicit German request can silently render using the stored English policy.
🔧 **Test** - 4 issues found → auto-fixed ✅
  • 🚨 frontend/src/lib/printer/unicode.ts:40 - German ESC/POS transliteration maps uppercase Ü to mixed-case Ue, producing KUeCHENBESTELLSCHEIN instead of uppercase-safe KUECHENBESTELLSCHEIN; npm run test:print-labels fails this assertion.
  • 🚨 main/printers/document-kot.ts:131 - The document-driven KOT renderer changes the existing English output from Order: ORD-PARITY-001 to Order #ORD-PARITY-001, failing legacy parity at 32, 42, and 48 columns.
  • 🚨 frontend/src/lib/printer/kot-encoder.ts:170 - The desktop frontend build fails TypeScript checking on impossible language === &#39;en&#39; comparisons in frontend/src/lib/printer/kot-encoder.ts:170, frontend/src/lib/printer/kot-web-print.ts:109, and shared/print/document.ts:463; static export and lazy chunk verification are blocked.
  • ⚠️ German UI screenshot evidence is unavailable because the browser runtime reported no available browser surfaces (agent.browsers.list() returned []).
  • npm ci --ignore-scripts --no-audit --no-fund
  • npm run test:translations
  • npm run test:print-labels
  • node scripts/generate-print-labels.cjs --check
  • npm run test:print-parity
  • npm run test:print-document
  • npm run test:print-kernel
  • npm run test:kot-locale-cold-start
  • npm run test:first-run
  • npm run test:i18n-ssr-timezone
  • npm run test:decoupled-ui-locale
  • npm run test:i18n-audit-remediations
  • EVIDENCE_DIR=... npm run test:browser-receipts
  • NEXT_BUILD_MODE=desktop npm --prefix frontend run build
  • npm run test:locale-chunks
  • direct generateBillHtml(..., { language: &#34;de&#34; }) and generateKotHtml(..., { language: &#34;de&#34; }) renderer calls
  • browser runtime setup and agent.browsers.list()
  • final git status --short --branch and transient-artifact cleanup

🔧 Fix: Fix German thermal casing, KOT parity, and TypeScript build
✅ Re-checked - no issues remain.

  • npm ci
  • npm ci --prefix frontend
  • npm run test:translations
  • npm run test:print-labels
  • npm run test:print-kernel
  • npm run test:print-parity
  • npm run test:browser-receipts
  • npm run test:decoupled-ui-locale
  • npm run test:i18n-audit-remediations
  • npm run test:i18n-ssr-timezone
  • npm run test:kot-locale-cold-start
  • npm run build:frontend
  • npm run test:locale-chunks
  • npm run build
  • npm run test:print-document
  • npm run test:first-run
  • npm run test:country-localization
  • npm run test:issue-133-kds-kot-toggles
  • Headless Playwright English-to-German switch on built /setup/ route
  • Headless Playwright screenshots of generated German receipt and KOT HTML
  • Visual inspection of German Setup, receipt, and KOT screenshots
  • git diff --check 899efa94cb51d1a8d95b7c0c6afdd189d4df7405..3ad03f20d1ced56d4ea460a33a820a4fd7f7c801
  • git status --short --branch
✅ **Document** - passed

✅ No issues found.

⚠️ **Lint** - 1 warning
  • ⚠️ Configured ESLint could not run because repository lint dependencies are unavailable (eslint: command not found).
✅ **Push** - passed

✅ No issues found.

@greptile-apps

greptile-apps Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR registers German as a selectable left-to-right language and adds its application messages, generated print labels, and translated README.

  • Adds the de-DE locale registry entry.
  • Adds German application and print-label resources.
  • Adds German project documentation.

Confidence Score: 4/5

The PR is not yet safe to merge because selecting German still produces English placeholder content across the application and printed output.

The previously reported localization failure remains: the selectable de locale loads [DE]-prefixed English messages, and the generated German print-label table carries the same placeholders into receipts and kitchen tickets.

Files Needing Attention: frontend/src/lib/i18n/messages/de.json, main/print/print-labels.generated.ts

Important Files Changed

Filename Overview
frontend/src/lib/i18n/messages/de.json Adds the German message bundle, but its values remain English placeholders with visible [DE] prefixes.
frontend/src/lib/i18n/languages.ts Registers Deutsch as a selectable left-to-right locale and loads the new message bundle.
main/print/print-labels.generated.ts Adds German print-label mappings that still contain English placeholder content.
scripts/generate-print-labels.cjs Extends print-label generation to include the German locale.
README.de.md Adds German-language project documentation.

Reviews (2): Last reviewed commit: "fix(i18n): translate German application ..." | Re-trigger Greptile

Comment thread frontend/src/lib/i18n/messages/de.json Resolved
@khaira777 khaira777 changed the title feat(i18n): add German language support feat(i18n): add German language support across POS and printing Sep 2, 2026
khaira777 and others added 2 commits September 2, 2026 00:22
…e locale, eliminating Persian date warnings. `npm run test:printer` passes; `git diff --check` passes
@khaira777
khaira777 enabled auto-merge (squash) September 2, 2026 04:27
@khaira777
khaira777 merged commit 24f5e0d into main Sep 2, 2026
14 checks passed
@khaira777
khaira777 deleted the feat/add-german-language branch September 2, 2026 04:31
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.

1 participant