elasticlunr::lang

Function from_name

Source
pub fn from_name(name: &str) -> Option<Box<dyn Language>>
Expand description

Returns the Language for the given English language name if the language is supported. Returns None if not supported. The first letter must be capitalized.