svelte-i18n
Internationalization library for Svelte that keeps the current locale, message dictionaries and formatters in Svelte stores.
svelte-i18n localizes a Svelte app with stores. A locale store holds the current locale, a dictionary store holds the messages for each locale, and a formatter store turns a message id into text inside a component. A dictionary is a JSON object, added up front or loaded on demand, and the Getting Started guide covers both.
It is installed from npm into a Svelte project. Server rendering is covered by a separate SvelteKit guide, which sets the locale on the server from the request’s language header.
Worth knowing
The README opens with a notice that the library is being reworked, moving from a singleton to instances, and that the work will happen when the maintainer finds time and priority for it.
Identity
- Status
- Active
- Maintainer
- Christian Kaisermann3
- Maintained by
- Individual3
- First release
- 20186
Rendering and deploy
- Install with
- npm4
Releases
Adoption
Sources
- 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/kaisermann/svelte-i18n - 2026-11-16: links, Categories, Built on
raw.githubusercontent.com/kaisermann/svelte-i18n/main/README.md - 2026-11-16: Maintainer, Maintained by
raw.githubusercontent.com/kaisermann/svelte-i18n/main/LICENSE - 2026-11-16: Install with
github.com/kaisermann/svelte-i18n/blob/main/docs/Getting%20Started.md - 2026-11-16: Current major version
registry.npmjs.org/svelte-i18n/latest - 2026-11-16: Last release, First release
registry.npmjs.org/svelte-i18n - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/svelte-i18n - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/svelte-i18n - 2026-11-16: Contributors
api.github.com/repos/kaisermann/svelte-i18n/contributors?per_page=1