Prompt
How do I model localized content in a headless CMS with reusable fields?
Latest observation
A good way to model localized content in a headless CMS is to separate:
- Shared structure — fields that exist for every locale
- Localized values — fields that vary by language/region
- Reusable field groups — repeated chunks you can attach to multiple content types
1) Start with a content model split
For each content type, decide which fields are:
- Global: same everywhere
- slug
- internal ID
- publish status
- SEO defaults
- Localized: translated or region-specific
- title
- description
- CTA text
- body copy
- Reusable: shared component-like groups
- hero block
- SEO metadata
- author bio
- product specs
- social links
2) Use reusable “field groups” or “components”
If your CMS supports reusable components/field sets, define them once and reuse them across content types.
Example reusable groups:
- SEO
- metaTitle
- metaDescription
- ogImage
- Hero
- headline
- subheadline
- image
- buttonLabel
- buttonLink
- Address
- street
- city
- region
- postalCode
- country
Then attach those groups to pages, articles, landing pages, product pages, etc.
3) Decide how localization is stored
There are two common approaches:
A. Per-field localization
Each localized field has values per locale.
Example:
{
"title": {
"en": "About us",
"fr": "À propos de nous"
},
"description": {
"en": "Learn more about our company",
"fr": "En savoir plus sur notre entreprise"
}
}
Best when your CMS natively supports localized fields.
B. Per-locale entry/content variant
Each locale gets its own entry, linked by a shared identity.
Example:
- Content entry
about-pageinen - Content entry
about-pageinfr - Both share the same canonical ID/grouping key
Best when you need locale-specific workflows, approvals, or differing structures.
4) Keep reusable groups locale-aware only when needed
Not every reusable group should be localized.
Localize these:
- marketing copy
- product descriptions
- UI labels
- CTA text
- FAQs
Usually don’t localize these:
- IDs
- slugs if your routing doesn’t require it
- taxonomy references
- image assets metadata if managed separately
- internal configuration values
If a reusable block contains both, mark only the relevant fields as localized.
Example:
{
"seo": {
"metaTitle": {
"en": "Product X",
"de": "Produkt X"
},
"robots": "index,follow"
}
}
5) Use fallback rules
Plan for missing translations.
Common strategy:
- Use requested locale first
- Fall back to default locale
- If missing, show empty state or hide block
Example:
- Requested:
fr-CA - Fallback chain:
fr-CA → fr → en
This is especially useful for reusable fields, so one missing translation doesn’t break the whole page.
6) Model content blocks for flexible page composition
For pages with localized sections, use a modular block model:
- Hero
- Text section
- CTA section
- FAQ
- Testimonials
Each block has:
- a type
- shared config
- localized text fields
Example:
{
"blocks": [
{
"type": "hero",
"headline": {
"en": "Welcome",
"es": "Bienvenido"
},
"ctaLabel": {
"en": "Get started",
"es": "Empezar"
}
}
]
}
7) Avoid duplicating everything for every locale
A common mistake is copying the whole entry per language when only some fields change. That leads to:
- content drift
- harder updates
- more editor work
Instead:
- localize only the necessary fields
- reuse non-localized config
- use references for shared assets and structured data
8) Good patterns by CMS capability
If your CMS supports localized fields
Use:
- one entry
- localized fields on reusable components
- fallback locales
If it supports reusable components but not localization inside them
Use:
- reusable component definitions
- locale-specific wrappers or translated entries
- shared references for common data
If it supports variants/languages as separate entries
Use:
- one base content entity
- translated variants linked together
- shared reusable components where possible
9) Example content model
Page
- slug
- locale
- title
- summary
- hero (component)
- sections (repeatable blocks)
- seo (component)
Hero component
- headline
- subheadline
- image
- ctaLabel
- ctaUrl
SEO component
- metaTitle
- metaDescription
- ogImage
Localized:
- title, summary, headline, subheadline, ctaLabel, metaTitle, metaDescription
Shared:
- slug, image reference, ctaUrl, ogImage reference
10) Practical rules of thumb
- Localize what users read
- Reuse what editors maintain repeatedly
- Keep references and logic stable across locales
- Define fallback behavior early
- Don’t let localization shape your model more than the content structure does
If you want, I can also show:
- a sample schema for a specific CMS like Contentful, Sanity, Strapi, or DatoCMS
- a recommended localization pattern for pages and reusable components
- a database-style schema if you’re building your own CMS