• Gets the parent locale of the given locale string. The implementation assumes that the locale is normalized.

    Parameters

    • locale: string

      The locale string.

    Returns string

    • The parent locale string.