About this project
i18nrs is a lightweight and powerful internationalization library designed specifically for Rust-based WebAssembly (Wasm) frontend frameworks, including Yew, Dioxus, and Leptos. It simplifies the process of localizing web applications by providing a robust set of features:
- **Dynamic Language Switching**: Change languages on the fly with automatic persistence using LocalStorage, SessionStorage, or cookies (for SSR mode).
- **JSON-Based Translations**: Load, validate, and organize translations using JSON files, with support for nested keys (e.g., `menu.file.open`).
- **Auto RTL/LTR Switching**: Automatically adjusts the text direction based on the selected language, supporting Right-to-Left (RTL) languages like Arabic and Hebrew.
- **Fallback System**: Includes a robust fallback mechanism to handle missing translations gracefully.
With seamless integration guides for popular Rust frontend frameworks, i18nrs helps developers build accessible, multi-lingual web applications in Rust.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.