• Gets the matching locales for the given locale, from most specific to least specific. For example, the input "zh-Hans-CN" would produce ["zh-Hans-CN", "zh-Hans", "zh-CN", "zh", "inv"].

    Parameters

    • locale: string

      The locale value to convert.

    Returns string[]