pub trait Loader {
    // Required method
    fn lookup(
        &self,
        lang: &LanguageIdentifier,
        text_id: &str,
        args: Option<&HashMap<&str, FluentValue<'_>>>
    ) -> String;
}
Expand description

Something capable of looking up Fluent keys given a language.

Use SimpleLoader if you just need the basics

Required Methods§

source

fn lookup( &self, lang: &LanguageIdentifier, text_id: &str, args: Option<&HashMap<&str, FluentValue<'_>>> ) -> String

Implementors§