Skip to main content

find_for_language

Function find_for_language 

Source
pub fn find_for_language<'a>(
    layouts: &'a [EmailLayout],
    language: Option<&str>,
) -> Option<&'a EmailLayout>
Expand description

The shell for an email in language (a BCP 47 tag such as “fi” or “fi-FI”): the exact match, else the match on its primary subtag, else the language-less shell. Case-insensitive. None means the bundled default applies.