typst::text

Function localized_str

source
pub fn localized_str(
    lang: Lang,
    region: Option<Region>,
    key: &str,
) -> &'static str
Expand description

Retrieves the localized string for a given language and region. Silently falls back to English if no fitting string exists for the given language + region. Panics if no fitting string exists in both given language + region and English.