validate_language

Function validate_language 

Source
pub fn validate_language(lang: &str) -> Result<()>
Expand description

Validates that the given language code is supported.

ยงErrors

Returns an error if the language code is not in the supported list.