Skip to main content

localize

Function localize 

Source
pub fn localize(value: &Value, locale: Option<&str>) -> Value
Expand description

A setting’s value as a template sees it in locale (a locale code; None = the default language): the translated text fields laid over the original, empty translations ignored, and the _i18n bag removed.