Setup Svelte internationalization with Intlayer
intlayer-svelteskillsetup L2★761
aymericzip/intlayer ↗What it does
Integrate i18n declarations with SvelteKit and Vite
Best for
Keeping i18n declarations adjacent to SvelteKit components, avoiding centralized flat translation files.
Inputs
- · [object Object]
- · [object Object]
Outputs
- · [object Object]
Requires
- · svelte-intlayer
- · @intlayer/mcp
Preconditions
- · Intlayer configured in SvelteKit or Vite+Svelte project
- · Content file key matches useIntlayer(key) call
- · Svelte store subscription syntax ($) used in templates
Failure modes
- · Forgetting $ prefix on store in template (renders [object Object])
- · Content key mismatch between content file and component
- · Using component-level state instead of store for multi-component translations
Trust signals
- · Official Intlayer package
- · Apache 2.0 license
- · Documented store pattern for Svelte
- · SvelteKit setup references provided