• Checks if two locale strings have the same parent locale.

    Parameters

    • locale1: string

      The first locale string.

    • locale2: string

      The second locale string.

    Returns boolean

    • Returns true if both locales have the same parent locale, otherwise false.