This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.

12 lines
289 B
TypeScript
Raw Normal View History

let regionNames = new Intl.DisplayNames(["en"], { type: "region" });
/**
* Returns the normalized region name
*
* @param region the region to normalize
* @returns the normalized region name
*/
export function normalizedRegionName(region: string) {
return regionNames.of(region);
}