• Checks if the first locale is a parent of the second locale. The implementation assumes that the locales are normalized.

    Parameters

    • locale1: string

      The parent locale string.

    • locale2: string

      The child locale string.

    Returns boolean

    • Returns true if locale1 is a parent of locale2, otherwise false.