Internationalization
Corvis does not have an internationalization module: there is no translation catalog loading, per-request language resolution or injectable translation service.
Alternative
- The error messages of
corvis::zcan be shown in Spanish with the included locale:z::configure(|c| c.locale_error = Some(z::locales::es())). It is a process-wide setting (see Validation). - To read the client's preferred language, take the
Accept-Languageheader with#[headers("accept-language")] lang: Option<String>in the handler, or create your own parameter withFromContext(see Custom decorators). - For your application's texts, load your catalogs in a provider of your own (for example with
Provider::use_value) or use a Rust i18n crate.