Contentful Personalization & Analytics
    Preparing search index...
    • Determine the preferred locale of the current browser.

      Returns string

      The first language from navigator.languages, or navigator.language if languages is not available.

      const locale = getLocale()