BCP47 Validation and Canonicalization - CLDR - Unicode Common Locale Data Repository
Unicode Locale Data Site ... Canonicalization Data We also provide data for validation and canonicalization. The basic canonicalization is as per BCP47, with the following additions:...