[][src]Trait i18n_embed::LanguageLoader

pub trait LanguageLoader {
    fn module_path() -> &'static str;
fn load_language_file<R: Read>(&self, reader: R); }

A trait used by I18nEmbed to load a language file for the specified module path.

Required methods

fn module_path() -> &'static str

The module that this language loader is requesting.

fn load_language_file<R: Read>(&self, reader: R)

Load the language file corresponding to the module that this loader requested in module_path().

Loading content...

Implementors

Loading content...