• Normalizes a locale name by trimming, replacing underscores with hyphens, and formatting each part of the locale string appropriately.

    Parameters

    • locale: string

      The locale string to normalize.

    Returns string

    • The normalized locale string.