Back to blog
developmentlocalizationCzech

Czech-First Engineering: The Details a Czech App Has to Get Right

12 May 20266 min readKansei TeamCzechEnglish

Money: Never a Float

The first rule of a financial app: money is not a floating-point number. Every amount in kansei is stored as integer hellers (hundredths of a Czech crown). CZK 1,234.50 lives in the database as 123450. The classic 0.1 + 0.2 !== 0.3 problem can never happen — and VAT totals stay exact to the heller across thousands of line items.

The Comma Is the Decimal Separator

A Czech user types "4 084,02" — a space as the thousands separator, a comma before the decimals. And that space is often not a plain space: Excel pastes a non-breaking one (U+00A0), some systems emit a thin one (U+2009). Our shared parseDecimal() therefore strips all three kinds of whitespace first, then swaps the comma for a dot, and only then parses. It sounds trivial. Before we centralized it, we had three subtly different implementations — and three different bugs.

ARES: Company ID Instead of Typing

The Czech state thankfully provides its business registry for free. Type a company ID and we fill in the name, address, and VAT number. Two practical lessons from the integration: searching by name requires POST, not GET (the endpoint errors on GET), and responses are worth caching for 24 hours — company data does not change by the minute and ARES has slow days. Our cache runs on Cloudflare Workers, so an ARES outage usually does not even slow users down.

A user searches for "pondeli" and expects "pondělí" (Monday). They type "Slvia" (a typo) and mean "Slavia". Every search field in kansei therefore uses a shared fuzzyIncludes() that normalizes diacritics and tolerates adjacent-key QWERTY typos and transposed letters. Server-side, the PostgreSQL pg_trgm extension backs this up — when a full-text query returns fewer than three results, we fall back to trigram similarity.

The Vocative Case as a Delightful Detail

A small thing to finish: the dashboard greets the user by name. But in Czech you do not say "Ahoj Petr" — you say "Ahoj Petře". We have a tiny function with Czech vocative heuristics — Petr → Petře, Lenka → Lenko, Marek → Marku. No library, fifteen lines. But it is exactly the kind of detail that tells you an app was not translated into Czech — it was written in Czech.

Localization as Architecture, Not a Sticker

All copy lives in translation files for Czech and English, and an automated test guards that both languages carry an identical key set — over 14,000 entries today. Invoices additionally speak German and Slovak. The lesson: localization retrofitted later is debt; localization from day one is cheap.

Related posts

Read enough? Try it on your next job.