Svelte 5 Ready

svelte-i18n

Modern Internationalization for Svelte 5

A powerful, type-safe i18n library for Svelte 5 with automatic language loading and comprehensive formatting support

🌍 Translation Editor GitHub

Core Features

🔍

Auto-Discovery

Add translations without recompiling - works for both apps and packages

🎯

Type Safety

Full TypeScript support with auto-completion and compile-time validation

🌐

SSR Support

Server-side rendering ready with built-in hydration support

✏️

Translation Editor

Built-in visual editor for managing and creating translations

🚀

Easy to Use

Simple configuration with intuitive API and smart defaults

Svelte 5 Runes

Built with $state, $derived, and modern Svelte 5 reactivity

Try it yourself!

String interpolation with name: Svelte

Welcome Svelte Developer!

Pluralization example

1 item

Nested translation keys

User Profile → Language

Date and number formatting

Current locale: en

Quick Start

import { setupI18n, getI18n } from '@shelchin/svelte-i18n';

// Setup in +layout.svelte
const i18n = setupI18n({
  defaultLocale: 'en',
  fallbackLocale: 'en'
});

// Use in components
const i18n = getI18n();
const message = $derived(i18n.t('welcome', { name }));
7
Languages Loaded
100+
Locales Supported
0
Dependencies
5.0
Svelte Version

Made with ❤️ for the Svelte community