Strapi Internationalization (i18n) Setup

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Strapi Internationalization (i18n) Setup
Simple
from 1 business day to 3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Internationalization (i18n) in Strapi

Strapi has a built-in i18n plugin for multilingual content. Each record exists in multiple locales independently. The API returns the content of the required locale by the ?locale= parameter.

Enabling i18n

# i18n plugin is included with Strapi
# Enable in config/plugins.js:
module.exports = {
  i18n: { enabled: true },
}

In Admin: Settings → Internationalization → Add a locale. Add ru, en, uk.

Content Type Localization

In Content-Type Builder enable "Enable localization" for each field:

// src/api/article/content-types/article/schema.json
{
  "options": { "draftAndPublish": true },
  "pluginOptions": { "i18n": { "localized": true } },
  "attributes": {
    "title": {
      "type": "string",
      "pluginOptions": { "i18n": { "localized": true } }
    },
    "content": {
      "type": "richtext",
      "pluginOptions": { "i18n": { "localized": true } }
    },
    "slug": {
      "type": "uid",
      "targetField": "title",
      "pluginOptions": { "i18n": { "localized": true } }
    },
    "publishedAt": {
      "type": "datetime"
      // NOT localized — same date for all languages
    }
  }
}

API Requests with Locale

# Get articles in Russian (default)
GET /api/articles?locale=ru

# Get articles in English
GET /api/articles?locale=en

# Get article with all translations
GET /api/articles/1?locale=all

# Create translation
POST /api/articles
{ "data": { "title": "English Title", "locale": "en", "localizations": [1] } }

Integration with Next.js i18n

// lib/strapi.ts
export async function getArticles(locale: string = 'ru') {
  const res = await fetch(
    `${process.env.STRAPI_URL}/api/articles?locale=${locale}&populate=cover,category`,
    { headers: { Authorization: `Bearer ${process.env.STRAPI_API_TOKEN}` } }
  )
  return res.json()
}
// next.config.js
module.exports = {
  i18n: {
    locales: ['ru', 'en', 'uk'],
    defaultLocale: 'ru',
  },
}

// app/[locale]/articles/page.tsx
export default async function ArticlesPage({ params }: { params: { locale: string } }) {
  const { data } = await getArticles(params.locale)
  return <ArticleList articles={data} />
}

Language Switcher in Strapi Admin

Strapi admin automatically shows a locale switcher in the edit form when i18n is enabled. Translations are linked to one document — you can switch between languages and see translation progress.

Timeline

Setting up i18n for 3 languages with localization of 3–5 content types — 1 day.