How to Localize a React App for German-Speaking Users with i18next

If you’re building a React app, you may want to make sure it works naturally for users who speak a different language. And this can bring a few unexpected challenges.

Take German, for example. A simple button labelled “Save” becomes “Speichern”, while “Settings” turns into “Einstellungen”. These translations may look like small changes, but they can affect the entire layout. A button that once fit comfortably might suddenly need more space and a navigation menu that looked neat may start feeling a little crowded.

But there’s more to localization than finding the right German words. You also need to consider regional differences, date and currency formats, and the way people communicate in different German-speaking countries. For example, Germany, Austria, and Switzerland share the German language, but they don’t follow exactly the same spelling and regional conventions.

In this tutorial, we’ll explore how to localize a React application using i18next, create German translation files, handle dates and currencies, and make the interface work properly for DACH users. We’ll also look at some common localization mistakes and how you can avoid them.

Internationalization vs. Localization: Why Translating Text Isn’t Enough

Before writing any code, it helps to separate two terms that often get lumped together in frontend projects: internationalization and localization. The W3C guide on localization versus internationalization draws a clear line between them, describing one as the engineering foundation and the other as the cultural and linguistic adaptation built on top of it.

What Is Internationalization (i18n)?

Internationalization, shortened to i18n because there are 18 letters between the “i” and the “n”, is the work you do in your codebase so your app can support multiple languages and regions without requiring a rewrite later.

In a React project, this means keeping all user-facing text out of your JSX, ensuring UTF-8 support for characters like ä, ö, ü and ß, avoiding hardcoded date or currency strings, and building flexible CSS layouts that don’t break when text expands.

What Is Localization (l10n)?

Localization (l10n) is what happens once that foundation is ready: adapting the application for a specific language and region. Software localization into German includes translating menus, buttons, and error messages, but it also means applying German number and date conventions, picking the right currency, and choosing an appropriate tone for Germany, Austria, or Switzerland.

There is solid cognitive science behind why this distinction matters. In a 2008 study titled The Impact of Language and Culture on Perceived Website Usability, published in the Journal of Engineering and Technology Management, researchers Jacques Nantel and Evelyne Glaser tested bilingual participants on e-commerce sites originally designed in either English or French and later translated into the other language. Even when the translations were accurate, users consistently rated the site conceived in their own native language as significantly more usable.

While this study looked at English and French sites rather than German React apps, its takeaway applies directly to frontend work: every interface reflects the mental models and conventions of the culture that built it, so a good German UI translation, which we’re working with here, must respect local expectations, not just swap out vocabulary.

Why German Localization Requires More Attention Than You Might Expect

Once you start adapting a React interface for German speakers, a few practical quirks show up almost immediately. These aren’t abstract grammar rules. They directly affect your CSS, state logic, and copy.

German Words Can Take Up More Space

English interface labels are unusually compact, whereas German relies heavily on compound nouns and longer verb phrases. Take a look at how a few common dashboard labels grow when translated:

EnglishGerman
SaveSpeichern
SettingsEinstellungen
CancelAbbrechen
View DetailsDetails anzeigen
Create AccountKonto erstellen

According to IBM’s globalization data cited in the W3C guide on text size in translation, short UI strings of up to 10 characters can expand by 200% to 300% when translated into European languages, while longer running text typically grows by around 30%.

Because of this expansion, fixed-width buttons, cramped navigation bars, and single-line badges that look fine in English will often clip or overflow in German. Designing with Flexbox, CSS Grid, and min-width instead of rigid pixel widths saves you from chasing layout bugs later.

Germany, Austria, and Switzerland Don’t Always Use the Same Conventions

Treating German as one uniform language is a common mistake. Across the DACH region, browsers and operating systems distinguish between three primary locale tags:

  • Germany: de-DE
  • Austria: de-AT
  • Switzerland: de-CH

Even though all three use Standard German, everyday conventions diverge in ways users notice right away. Swiss Standard German replaces the ß character with ss (writing Strasse instead of Straße) and Switzerland uses the Swiss franc (CHF) rather than the euro (EUR). Number grouping also shifts: Swiss formatting often uses an apostrophe (1'299.99) instead of a period.

If your product serves DACH users across all three countries, relying on a single generic de file can leave Austrian or Swiss users staring at unfamiliar currency symbols or spellings.

Formal or Informal German?

German also forces an upfront decision that English doesn’t have: how to address the person using your app. You can use the formal Sie (“Melden Sie sich an.”) or the informal du (“Melde dich an.”). Financial tools, B2B dashboards, and enterprise software generally lean toward Sie, while consumer apps and developer tools increasingly use du.

Whichever register you pick, mixing the two across different screens feels jarring. Working with a native reviewer or a German translator early on helps lock down a consistent voice before your string files grow into the thousands.

With these foundations in place, you know what to plan for before wiring up i18next: flexible layouts that absorb longer German text, separate locale handling for Germany, Austria, and Switzerland, and one consistent tone of address throughout the interface. Settling these decisions early makes the technical work of building German translation files far smoother and helps your app feel natural to every German-speaking user.