Localization in Contentstack: Building Multilingual Sites at Scale
Going global means more than translating words. Prices, legal text, images, and even page structure can differ per market. Contentstack's localization model handles this without duplicating your entire content tree.
Locales and Fallbacks
- Add locales like
en-us,en-in,ta-in,hi-in,fr-fr - Set a fallback —
en-infalls back toen-us,ta-infalls back toen-in - Unlocalized entries in a locale inherit content from the fallback until someone localises them
This lets you launch a new market quickly and localise progressively.
Localized vs. Non-Localized Fields
Mark fields that should not change per language as non-localizable — SKU, product ID, internal references. Editors can't accidentally change them in a translation, and data stays consistent.
Fetching Localized Content
const entry = await Stack.ContentType('product')
.Entry('blt123abc')
.language('ta-in')
.includeFallback()
.toJSON()
.fetch();
includeFallback() returns fallback content where a translation doesn't exist yet.
Translation Workflows
- Use workflows per locale: Translation → Review → Approved
- Connect a translation management system through Marketplace apps
- Use AI translation for first drafts, with native reviewers for public content
- Use Releases to publish a campaign in all languages together
URL and SEO Strategy
- Locale prefixes:
/en-in/products/...,/ta-in/products/... - Add
hreflangtags generated from available locales - Localise SEO fields — meta title and description per locale
Pitfalls
- Hardcoded UI strings in the frontend — keep labels in a "dictionary" content type
- Images with embedded text that never gets translated
- Forgetting right-to-left layouts for Arabic or Hebrew markets
Localization is a content model decision, not a translation task. Get the fields and fallbacks right, and adding a market becomes routine.