A reactive internationalization library for Svelte applications using stores for locale and message management.
svelte-i18n is an internationalization library built for Svelte applications that provides tools for managing translations and locale switching. It solves the problem of localizing Svelte apps by using reactive stores to keep locale and dictionary state in sync, making it easy to display translated content dynamically.
Svelte developers building multilingual applications who need a lightweight, reactive solution for internationalization.
Developers choose svelte-i18n for its tight integration with Svelte's reactivity model, simplicity in setup, and seamless compatibility with Svelte Kit, offering a native-feeling i18n experience without external dependencies.
Internationalization library for Svelte
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Svelte stores to manage locale and dictionary state, ensuring UI updates automatically when changes occur, as emphasized in the reactive stores feature.
Includes dedicated documentation for integration with Svelte Kit projects, simplifying setup for modern Svelte applications.
Organizes translations in structured JSON files for maintainability, as specified in the JSON-based dictionaries feature.
Supports parameterized messages and default values for flexible localization, reducing boilerplate in components.
The README notes the library is due for reworking, such as moving from a singleton to instances, which could introduce breaking changes and instability.
The maintainer mentions working on changes 'when I find the time and priority,' indicating limited responsiveness to issues and updates.
Focuses on core i18n needs; lacks built-in support for complex features like pluralization, gender agreement, or rich formatting compared to more comprehensive libraries.