Skip to main content

term_locale_fallback_warnings

Function term_locale_fallback_warnings 

Source
pub fn term_locale_fallback_warnings(processor: &Processor) -> Vec<Warning>
Expand description

Scan the bibliography for tagged items whose effective language has no loaded locale under options.multilingual.term-locale: item.

A no-op unless term-locale: item is active in the citation or bibliography scope. Untagged items resolve to the style locale by design (positive-evidence rule, PER_ITEM_TERM_LOCALE.md ยง3) and never warn; only items that do carry a language with no matching loaded locale are reported, so the silent style-locale fallback stays discoverable. Reuses [crate::processor::rendering::lookup_embedded_locale] โ€” the same exact-tag โ†’ primary-language lookup the renderer itself uses โ€” so this scanner and the render-time fallback never diverge.