Frequently Asked Questions
Learn how to use Intlayer with Next.js without `[locale]` in the page path.
Yes: an array can be a content declaration in Intlayer. How to declare it, translate each item and read it back from your components.
When Intlayer builds dictionaries automatically, how to trigger a build manually with the CLI, and where the generated files are written.
Fix Server Components render errors that only happen in CI/CD builds, by making sure Intlayer dictionaries are built during the build step.
Fix the "Cannot find package" error when running Intlayer with Bun, caused by how Bun scopes require(), with the configuration that solves it.
Why translating with Claude Code burns tokens, what Intlayer does instead, and how to reuse your Claude subscription for translations.
Customize the list of locales Intlayer supports in intlayer.config.ts, including regional variants and the default locale.
Serve each locale from its own domain with Intlayer's domain-based routing, configured in intlayer.config.ts with redirects handled for you.
Why vite-env-only reports a denied `node:fs` import with Intlayer + React-Router + Vite and what to do.
Fix ESBuild errors during an Intlayer build, usually caused by a missing or misconfigured bundler plugin for your framework.
Read the current locale from cookies or request headers with Intlayer, on the server or in middleware, to render the right language.
What is it the IntlayerNode type? Why my string is transformed as an IntlayerNode<string>?
Fix the 'intlayer: command not found' error: install the CLI, run it through your package manager and check your PATH.
Fix a wrong locale read from the URL in Next.js, such as "about" instead of "en", by using the [locale] folder structure Intlayer expects.
Fix errors from mismatched @intlayer/* sub-package versions: align every Intlayer package to the same version and clear your lockfile cache.
Why next-intl helpers turn Next.js i18n routes dynamic, and how to keep localized pages statically rendered.
Yes: Intlayer can translate URL paths, like /about to /fr/a-propos, with custom URL rewrites configured per locale.
Fix the Intlayer CLI 'unknown command' error: check the command name, your CLI version and how you call the binary.