Home / Companies / Strapi / Blog / Post Details
Content Deep Dive

i18n for Static Sites with Strapi

Blog post from Strapi

Post Details
Company
Date Published
Author
Marie Starck
Word Count
2,881
Language
English
Hacker News Points
-
Summary

A Strapi project can be created using the command `npx create-strapi-app my-project --quickstart`, and internationalization is automatically enabled in Strapi applications running version 3.6.0 or later. The process of setting up i18n features involves installing the internationalization plugin, creating a new locale, enabling localization for the collection type, and creating content in multiple locales. In a Next.js project, the next-i18next library is used to implement internationalization, which requires setting up a configuration file, importing translations, and using server-side translations to pass data to pages. The Strapi backend is then used to retrieve localized content, and the Next.js frontend displays the content in the correct locale.