[][src]Function i18n_embed::select

pub fn select(
    language_loader: &dyn LanguageLoader,
    i18n_embed: &dyn I18nAssets,
    requested_languages: &[LanguageIdentifier]
) -> Result<Vec<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 available in I18nAssets. Returns the available languages that were negotiated to be selected in order of preference.