神岛 API 文档 - ArenaPro版
    Preparing search index...
    • The Intl.getCanonicalLocales() method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags.

      MDN

      Parameters

      • Optionallocale: string | readonly string[]

        A list of String values for which to get the canonical locale names

      Returns string[]

      An array containing the canonical and validated locale names.