Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Init doc"v9.5.59/19/2026
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
Intlayer Context Documentation
In remix-intlayer, Intlayer is the RequestContext key used to access internationalization state within Remix 3 request handlers.
Usage
When the intlayer() middleware runs, it stores an IntlayerState object in the request context under the Intlayer key. You can retrieve it inside any route handler:
Copy the code to the clipboard
You can also access it using the direct property shorthand context.intlayer:
Copy the code to the clipboard
IntlayerState Structure
The IntlayerState object contains:
Open the table in a modal to view all data content clearly
| Property | Type | Description |
|---|---|---|
locale | DeclaredLocales | The locale resolved for the current request. |
defaultLocale | DeclaredLocales | The fallback locale defined in intlayer.config.ts. |
availableLocales | DeclaredLocales[] | The list of all supported locales configured for the project. |
