Framework Adapters
Svelte
The Svelte adapter exposes a small store wrapper around a pico-intl instance.
ts
import { createI18nStore } from '@pico-intl-dev/svelte';
export const { t, locale, dir, isRTL, setLocale } = createI18nStore(i18n); Key points
- createI18nStore() wraps a core instance.
- Use the readable t, locale, dir, and isRTL stores in components.
- Validate SvelteKit route-level behavior in your app.
Next step
Copy the example into a small fixture, run the validation commands, and keep framework-specific routing, hydration, or SSR behavior covered by your app tests.