fn language_file<'a>(
        &self,
        language_id: &unic_langid::LanguageIdentifier,
        i18n_assets: &'a dyn I18nAssets,
    ) -> (String, Option<Cow<'a, [u8]>>) {
        let language_id_string = language_id.to_string();
        let file_path = format!("{}/{}", language_id_string, self.language_file_name());

        log::debug!("Attempting to load language file: \"{}\"", &file_path);

        let file = i18n_assets.get_file(file_path.as_ref());
        (file_path, file)
    }
/// The computed path to the language file, and `Cow` of the file
/// itself if it exists.
The computed path to the language file, and `Cow` of the file
itself if it exists.
The computed path to the language file and ` Cow ` of the file itself if it exists .
fn language_file<'a>(
        &self,
        language_id: &unic_langid::LanguageIdentifier,
        i18n_assets: &'a dyn I18nAssets,
    ) -> (String, Option<Cow<'a, [u8]>>) {
        let language_id_string = language_id.to_string();
        let file_path = format!("{}/{}", language_id_string, self.language_file_name());
        log::debug!("Attempting to load language file: \"{}\"", &file_path);
        let file = i18n_assets.get_file(file_path.as_ref());
        (file_path, file)
    }
fn language_file < ' a > ( & self , language_id : & unic_langid :: LanguageIdentifier , i18n_assets : & ' a dyn I18nAssets , ) -> ( String , Option < Cow < ' a , [ u8 ] > > ) { let language_id_string = language_id . to_string ( ) ; let file_path = format ! ( " " language_id_string self language_file_name ( ) ) ; log :: debug ! ( " \" \" " file_path ) ; let file = i18n_assets . get_file ( file_path . as_ref ( ) ) ; ( file_path , file ) }
The computed path to the language file, and `Cow` of the file
itself if it exists.
The computed path to the language file and ` Cow ` of the file itself if it exists .
&self
language_id
&unic_langid::LanguageIdentifier
i18n_assets
&'a dyn I18nAssets
&self
language_id
&unic_langid::LanguageIdentifier
i18n_assets
&'a dyn I18nAssets