Function translate

Source
pub fn translate(identifier: impl AsRef<str>) -> Option<String>
Expand description

Attempts to translate the identifier into the current active language. Returns the same identifier if not available.