Frequently Asked Questions
Find answers to frequent questions about Intlayer, including internationalization (i18n), content management, and technical integration. Learn how Intlayer can help your projects.
- Use Intlayer in Next.js Without [locale] in the PathLearn how to use Intlayer with Next.js without `[locale]` in the page path.
- Can I use an array as a content declaration?Yes: an array can be a content declaration in Intlayer. How to declare it, translate each item and read it back from your components.
- How to build dictionaries?When Intlayer builds dictionaries automatically, how to trigger a build manually with the CLI, and where the generated files are written.
- Fix Intlayer Build Errors in CI/CDFix Server Components render errors that only happen in CI/CD builds, by making sure Intlayer dictionaries are built during the build step.
- Limit Claude Code Token Use When TranslatingWhy translating with Claude Code burns tokens, what Intlayer does instead, and how to reuse your Claude subscription for translations.
- How to customize the locale list?Customize the list of locales Intlayer supports in intlayer.config.ts, including regional variants and the default locale.
- Is Intlayer Stable and Production-Ready?What stage of development is Intlayer at? Intlayer is stable since v9, fully functional for React, Next.js, Vue, Svelte, Solid, Angular and vanilla JS, with no breaking API change planned.
- How to configure domain-based routing?Serve each locale from its own domain with Intlayer's domain-based routing, configured in intlayer.config.ts with redirects handled for you.
- How to retrieve the locale from the cookies / headers?Read the current locale from cookies or request headers with Intlayer, on the server or in middleware, to render the right language.
- IntlayerNode type. What is it?What is it the IntlayerNode type? Why my string is transformed as an IntlayerNode<string>?
- Incorrect Locale Retrieved from URLFix a wrong locale read from the URL in Next.js, such as "about" instead of "en", by using the [locale] folder structure Intlayer expects.
- Can node types be composed? (e.g. multiple plurals in one sentence)How to compose node types and express multiple independent plural variables in one sentence using insert() or nested plural() in Intlayer.
- I get an error related to sub-packages @intlayer/*Fix errors from mismatched @intlayer/* sub-package versions: align every Intlayer package to the same version and clear your lockfile cache.
- Static vs Dynamic Rendering with i18n in Next.jsWhy next-intl helpers turn Next.js i18n routes dynamic, and how to keep localized pages statically rendered.
- Can I translate the url path?Yes: Intlayer can translate URL paths, like /about to /fr/a-propos, with custom URL rewrites configured per locale.
- Fix the Intlayer 'Unknown Command' ErrorFix the Intlayer CLI 'unknown command' error: check the command name, your CLI version and how you call the binary.
- Can I use Intlayer without a global provider?Read Intlayer content without mounting a provider, how the locale is resolved on the server and in the browser, and the performance difference with a provider.