fix(middleware): handle invalid locale values in Accept-Language header
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Added error handling to prevent middleware crashes when browsers send invalid locale codes. Filters out malformed locale values before passing to Intl.getCanonicalLocales, with fallback to default locale if all values are invalid. Fixes: RangeError: Incorrect locale information providedmaster
parent
26a1975799
commit
ca2a1a8f88
Loading…
Reference in New Issue