pub trait Localizer: 'static + Send + Sync + Debug {
    fn localize(
        &self,
        key: &str,
        parameters: Option<LocalizationParameters<'a>>,
        language: &LanguageIdentifier
    ) -> String; }
Expand description

A type that provides localization (multi-lingual representations of text).

Required Methods

Localizes key with parameters and returns a string in the user’s preferred locale.

Implementations on Foreign Types

Returns key.to_string(), ignoring the remaining parameters.

Implementors