Leptos i18n
This crate is made to simplify internationalization in a Leptos application, that loads locales at compile time and provides compile time checks for translation keys, interpolation keys and the selected locale.
The main focus is ease of use with leptos, a typical component using this crate will look like this:
use crate*;
use *;
Getting started
You can add the crate to your project with
Or by adding this line to your Cargo.toml under [dependencies]:
= "0.6"
Version compatibility with leptos
| Leptos | Leptos i18n |
|---|---|
< v0.4.x |
not supported |
v0.4.x |
v0.1.x |
v0.5.x |
v0.2.x |
v0.6.x |
v0.3.x / v0.4.x |
v0.7.x |
v0.5.x |
v0.8.x |
v0.6.x |
How to use
You can look into the Book for documentation, or look for examples on the github repo.