Resolve the per-language <title> budget. Falls back to the EN window { 55, 70 } for unknown / malformed inputs so callers default to the contract's widest Latin window when handed an unexpected BCP-47 code. Mirrors the public contract of descriptionWindowForLanguage.
Real-world callers pass BCP-47 strings from <html lang> attrs, RSS feeds and CMSes (zh-CN, JA, Ar, de, nb-NO, โฆ) so this function normalises the input via normalisePrimaryLangSubtag before lookup.
Resolve the per-language
<title>budget. Falls back to the EN window{ 55, 70 }for unknown / malformed inputs so callers default to the contract's widest Latin window when handed an unexpected BCP-47 code. Mirrors the public contract of descriptionWindowForLanguage.Real-world callers pass BCP-47 strings from
<html lang>attrs, RSS feeds and CMSes (zh-CN,JA,Ar,de,nb-NO, โฆ) so this function normalises the input via normalisePrimaryLangSubtag before lookup.