aymericzip/intlayer-skills / skills/intlayer-svelte
intlayer-svelte
VerifiedIntegrates Intlayer internationalization with Svelte and SvelteKit applications. Use when the user asks to "setup Svelte i18n", create a new translated component, use the "useIntlayer" store, or configure providers.
| File | Kind | Size |
|---|---|---|
| LICENCE.md | markdown | 10.7 KB |
| SKILL.md | skill md | 3.1 KB |
| references/compiler.md | markdown | 14.6 KB |
| references/concept_collections.md | markdown | 5.6 KB |
| references/concept_variants.md | markdown | 20.9 KB |
| references/environment_astro_svelte.md | markdown | 37.9 KB |
| references/environment_sveltekit.md | markdown | 36.2 KB |
| references/environment_vite-and-svelte.md | markdown | 38.6 KB |
| references/formatters.md | markdown | 17.3 KB |
| references/packages_intlayer_exports.md | markdown | 12.4 KB |
| references/packages_svelte-intlayer_exports.md | markdown | 4.4 KB |
| references/packages_svelte-intlayer_usePathname.md | markdown | 3.1 KB |
| references/packages_svelte-intlayer_useRewriteURL.md | markdown | 1.9 KB |
references/packages_svelte-intlayer_exports.md
View on GitHub---
createdAt: 2026-01-21
updatedAt: 2026-01-21
priority: 5
title: svelte-intlayer Package Documentation
description: Svelte-specific integration for Intlayer, providing setup functions and stores for Svelte applications.
keywords:
- svelte-intlayer
- svelte
- internationalization
- i18n
slugs:
- doc
- packages
- svelte-intlayer
- exports
history:
- version: 10.0.0
date: 2026-06-23
changes: "Add usePathname utility"
- version: 8.0.0
date: 2026-01-21
changes: "Unified documentation for all exports"
author: aymericzip
---
# 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
```bash
npm install svelte-intlayer
```
## Exports
### Setup
Import:
```tsx
import "svelte-intlayer";
```
| Function | Description |
| --------------- | ------------------------------------------------------ |
| `setupIntlayer` | Function to setup Intlayer in your Svelte application. |
### Store
Import:
```tsx
import "svelte-intlayer";
```
| Store | Description |
| --------------- | ------------------------------------------------------ |
| `intlayerStore` | Svelte store that contains the current Intlayer state. |
### Hooks (Context)
Import:
```tsx
import "svelte-intlayer";
```
| 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. | - |
| `usePathname` | Returns the current pathname as a `Readable<string>` store with the locale segment removed. Reactive to `popstate`. | [usePathname](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/svelte-intlayer/usePathname.md) |
| `useRewriteURL` | Client-side function to manage URL rewrites. Automatically updates the URL if a localized rewrite rule exists. | [useRewriteURL](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/svelte-intlayer/useRewriteURL.md) |
| `useIntl` | Returns the Intl object for the current locale. | - |
### Markdown
Import:
```tsx
import "svelte-intlayer";
```
| Function | Description |
| --------------------- | ---------------------------------------------------------------- |
| `setIntlayerMarkdown` | Function to set the markdown context in your Svelte application. |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |