Skip to main content

translate_source

Function translate_source 

Source
pub fn translate_source(
    registry: &LocaleRegistry,
    source: &str,
    target: Locale,
) -> Option<String>
Expand description

Translate source from any locale to a target locale.

The source is first normalised to canonical English (by the parser), then re-emitted with the target locale’s keywords.