Skip to content
Svelte i18n

Svelte i18n Made Easy

Stores-based i18n with SvelteKit integration and runes support.

Features

Svelte stores integration
SvelteKit support
SSR support
Prerendering support
Lazy loading locales
Svelte 5 runes support
Minimal bundle size
TypeScript support
DevTools integration

Quick Start

Add i18n to your Svelte app with stores.

<!-- +page.svelte -->
<script>
  import { t } from '@better-i18n/svelte';
</script>

<h1>{$t('welcome')}</h1>
<p>{$t('greeting', { name: 'World' })}</p>

<!-- With SvelteKit load function -->
<script context="module">
  export async function load({ params }) {
    const messages = await loadMessages(params.locale);
    return { messages };
  }
</script>

Start Building with Svelte i18n

Free tier available. No credit card required.