Creation:2026-01-21Last update:2026-01-21
Reference this doc to your favorite AI assistantChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Unified documentation for all exports"v8.0.01/21/2026
Edit this doc
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
Copy doc Markdown to clipboard
svelte-intlayer Package
The svelte-intlayer package provides the necessary tools to integrate Intlayer into Svelte applications. It includes setup functions and stores for handling multilingual content.
Installation
Exports
Setup
Import:
Show all table content
Open the table in a modal to view all data content clearly
| Function | Description |
|---|---|
setupIntlayer | Function to setup Intlayer in your Svelte application. |
Store
Import:
Show all table content
Open the table in a modal to view all data content clearly
| Store | Description |
|---|---|
intlayerStore | Svelte store that contains the current Intlayer state. |
Hooks (Context)
Import:
Show all table content
Open the table in a modal to view all data content clearly
| Function | Description | Related Doc |
|---|---|---|
useIntlayer | Based on useDictionary, but injects an optimized version of the dictionary from the generated declaration. | - |
useDictionary | Processes objects that look like dictionaries (key, content). It processes t() translations, enumerations, etc. | - |
useDictionaryAsync | Same as useDictionary, but handles asynchronous dictionaries. | - |
useDictionaryDynamic | Same as useDictionary, but handles dynamic dictionaries. | - |
useLocale | Returns the current locale and a function to set it. | - |
useRewriteURL | Client-side function to manage URL rewrites. Automatically updates the URL if a localized rewrite rule exists. | useRewriteURL |
useIntl | Returns the Intl object for the current locale. | - |
Markdown
Import:
Show all table content
Open the table in a modal to view all data content clearly
| Function | Description |
|---|---|
setIntlayerMarkdown | Function to set the markdown context in your Svelte application. |