[][src]Function i18n_embed::select

pub fn select(
    language_loader: &dyn LanguageLoader,
    i18n_embed: &dyn I18nEmbedDyn,
    requested_languages: &[LanguageIdentifier]
) -> Result<Option<LanguageIdentifier>, I18nEmbedError>

Select the most suitable language currently requested by the system by the the LanguageRequester, and load it using the provided LanguageLoader from the languages embedded in I18nEmbed via I18nEmbedDyn. Returns the language that was negotiated to be selected.