On first visit, match navigator.languages against the available
locales instead of always falling back to en_US. Tries an exact
match (en-US -> en_US) then a language-only match (fr -> fr_FR),
falling back to en_US when none apply. A saved preference still
takes precedence.
Fixes#3139
Generated-By: PostHog Code
Task-Id: a1ecc509-0fd8-44fd-b203-f69e4bd18c65