pub fn new(module: &'static str, fallback_language: unic_langid::LanguageIdentifier) -> Self {
        Self {
            current_language: RwLock::new(fallback_language.clone()),
            module,
            fallback_language,
        }
    }
/// Create a new `GettextLanguageLoader`.
///
/// # Example
///
/// ```
/// use i18n_embed::gettext::GettextLanguageLoader;
///
/// GettextLanguageLoader::new(module_path!(), "en".parse().unwrap());
/// ```
Create a new `GettextLanguageLoader`.
Create a new ` GettextLanguageLoader ` .
pub fn new(module: &'static str, fallback_language: unic_langid::LanguageIdentifier) -> Self {
        Self {
            current_language: RwLock::new(fallback_language.clone()),
            module,
            fallback_language,
        }
    }
pub fn new ( module : & ' static str , fallback_language : unic_langid :: LanguageIdentifier ) -> Self { Self { current_language : RwLock :: new ( fallback_language . clone ( ) ) , module , fallback_language , } }
Create a new `GettextLanguageLoader`.
Create a new ` GettextLanguageLoader ` .
module
&'static str
fallback_language
unic_langid::LanguageIdentifier
module
&'static str
fallback_language
unic_langid::LanguageIdentifier
example
```
use i18n_embed::gettext::GettextLanguageLoader.


` ` ` use i18n_embed :: gettext :: GettextLanguageLoader .