Resolves a locale or list of locales into a standardized configuration format:
a single string for one valid locale, a string array for multiple, or undefined if none.
Parameters
Optionallocales: unknown
Single or multiple locale identifiers or Intl.Locale instances
Returns string|readonlystring[]|undefined
A single canonical string, an array of strings, or undefined
Resolves a locale or list of locales into a standardized configuration format: a single string for one valid locale, a string array for multiple, or undefined if none.