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.519/09/2026
The content of this page was translated using an AI.
See the last version of the original content in EnglishIf 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 internationalisation 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. |
