some bug fixes and add the ranking page
This commit is contained in:
11
projects/common/src/utils/region-utils.ts
Normal file
11
projects/common/src/utils/region-utils.ts
Normal file
@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user