---
title: "Lessons From Linguistics: i18n Best Practices for Front-End Developers"
description: "Interpolating nouns into shared UI strings breaks in translation because many languages have grammar English lacks."
url: "https://swe.quest/articles/lessons-from-linguistics-i18n-best-practices-for-front-end-developers-4c8a95f11a65dadf"
canonical: "https://shopify.engineering/internationalization-i18n-best-practices-front-end-developers"
source: "Shopify Engineering"
published: "2023-03-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 14
tags: ["frontend","product-engineering"]
---

# Lessons From Linguistics: i18n Best Practices for Front-End Developers

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2023-03-16, 14 min read, How-to. Original: [https://shopify.engineering/internationalization-i18n-best-practices-front-end-developers](https://shopify.engineering/internationalization-i18n-best-practices-front-end-developers)

## Summary

Interpolating nouns into shared UI strings breaks in translation because many languages have grammar English lacks. Hardcoded word order and punctuation, the \`count === 1\` pluralization check, CLDR's six plural categories (illustrated with Polish), grammatical gender (French articles and adjective agreement) and declensions all mean a generic \`{noun}\` placeholder produces wrong sentences. The fix is to translate whole sentences, interpolate only where unavoidable (such as links) and keep those fragments tied to one sentence context. Text should also never be constructed or manipulated in code: no assembling word order, punctuation, line breaks or casing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)

## Prerequisites

- front-end components ([easy posts on Frontend](https://swe.quest/tags/frontend.md?difficulty=easy))
- i18n libraries

## Keywords

i18n, Unicode CLDR, Shopify

## Related posts

- [Frontend Engineering at Palantir: Engineering Multilingual Collaboration](https://swe.quest/articles/frontend-engineering-at-palantir-engineering-multilingual-collaboration-9b3a47e3dad9b426.md): Palantir · 2026-04-22 · Medium · 8 min read · Frontend, React, LLMs, Product engineering, Caching
  Dossier, Palantir's collaborative rich-text editor, gained a read-only translation mode that routes all text through an in-house Language Model Service so content never leaves secure or air-gapped networks.
- [Content Creation Copilot - AI-assisted product onboarding](https://swe.quest/articles/content-creation-copilot-ai-assisted-product-onboarding-e0913f2c35b53e3c.md): Zalando Engineering · 2024-09-17 · Medium · 7 min read · LLMs, Product engineering, E-commerce, System design
  Zalando built a copilot that pre-fills product attributes during content onboarding by sending product image URLs and generated prompts to OpenAI GPT models.
- [Forays in Fancy Formatting](https://swe.quest/articles/forays-in-fancy-formatting-594a85df02822544.md): incident.io · 2023-12-11 · Medium · 4 min read · Product engineering, Frontend
  Supporting rich text in incident summaries and updates means translating between Slack's new rich text input and ProseMirror in the dashboard, plus one-way exports to Jira, Confluence, Notion, Google Docs and email, each with different formatting rules.
- [Help choose the syntax for CSS Nesting](https://swe.quest/articles/help-choose-the-syntax-for-css-nesting-55a28b63e9ccb18f.md): WebKit · 2022-12-15 · Medium · 8 min read · CSS, Language design, Browsers
  The CSS Working Group is choosing between three candidate syntaxes for native CSS nesting, since Sass-style nesting is impossible: browser parsers would read a nested selector like \`element:pseudo\` as a \`property: value\` declaration.
- [Behind the scenes: international keyboard shortcuts](https://swe.quest/articles/behind-the-scenes-international-keyboard-shortcuts-8088a7a096d216ad.md): Figma · 2023-02-28 · Medium · 11 min read · Browsers, Frontend, Accessibility, Product engineering
  Figma reworked its US-QWERTY-centric keyboard shortcuts to support about 15 international layouts, including German, French AZERTY, Japanese, Swedish and Korean.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
