Function isLocaleSupported

  • Checks if the environment supports the Intl.Locale namespace

    Returns boolean

    • true if the environment supports the Intl.Locale namespace

    Example

    import { isLocaleSupported } from 'preferred-locale'

    isLocaleSupported() // true or false