JS Built-ins
IntlCollatorintermediate

Collator sensitivity option

πŸ“– Usage Example
const supported = Intl.Collator.supportedLocalesOf(['en', 'de', 'xx-ZZ']);
// ['en', 'de']

supportedLocalesOf() returns which locales are supported without fallback.

Use the sensitivity option in Intl.Collator.

πŸ’‘ Hints (1)
  • β€’ Use sensitivity: "case"