FindSoftware

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

Current major version
45
Last release
2024-10-216

Adoption

GitHub stars
1,3801
npm downloads a week
177,3667
Contributors
259
Dependent repositories
5868
Dependent packages
818

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/kaisermann/svelte-i18n
  2. 2026-11-16: links, Categories, Built on
    raw.githubusercontent.com/kaisermann/svelte-i18n/main/README.md
  3. 2026-11-16: Maintainer, Maintained by
    raw.githubusercontent.com/kaisermann/svelte-i18n/main/LICENSE
  4. 2026-11-16: Install with
    github.com/kaisermann/svelte-i18n/blob/main/docs/Getting%20Started.md
  5. 2026-11-16: Current major version
    registry.npmjs.org/svelte-i18n/latest
  6. 2026-11-16: Last release, First release
    registry.npmjs.org/svelte-i18n
  7. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/svelte-i18n
  8. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/svelte-i18n
  9. 2026-11-16: Contributors
    api.github.com/repos/kaisermann/svelte-i18n/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON