A tiny (~1 KB) i18n library for React, Preact, Vue, and Svelte using Nano Stores and the JS Intl API.
Nano Stores I18n is a lightweight internationalization library for JavaScript applications. It provides tools to manage translations, locale detection, and formatting using the Nano Stores state manager and the native JS Intl API. It solves the problem of adding multilingual support without bloating bundle size.
Frontend developers building React, Preact, Vue, or Svelte applications that require efficient, type-safe internationalization with minimal overhead.
Developers choose Nano Stores I18n for its tiny size (~1 KB), framework flexibility, and seamless integration with the Intl API, offering a performant alternative to heavier i18n solutions.
A tiny (≈600 bytes) i18n library for React/Preact/Vue/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.
At ~1 KB minified and brotlied with zero dependencies, it's ideal for performance-critical applications, as highlighted in the README's feature list.
Works seamlessly with React, Preact, Vue, Svelte, and plain JavaScript, demonstrated by usage examples across different contexts in the README.
Provides full TypeScript support for translations, ensuring type safety with functions like params() and count(), as shown in the code snippets.
Supports parameterized strings, locale-aware pluralization, and custom processors for dynamic translations based on external state, such as screen size, detailed in the examples.
Advanced features like lazy loading and server-side rendering require intricate configuration, including custom get functions and caching, as explained in the README's detailed sections.
Translations must use a flat JSON format, which might not align with all translation management systems or preferences for nested structures, as admitted in the translations section.
Missing CLI tools for common tasks; developers must write custom scripts for translation extraction, as mentioned in the translation process section.