surely this works
All checks were successful
Deploy Backend / deploy (push) Successful in 4m23s
Deploy Website / deploy (push) Successful in 7m25s

This commit is contained in:
Lee
2024-10-14 11:29:00 +01:00
parent 5871b82f75
commit 383f41f9ca
3 changed files with 43 additions and 26 deletions

View File

@ -7,5 +7,9 @@ let regionNames = new Intl.DisplayNames(["en"], { type: "region" });
* @returns the normalized region name
*/
export function normalizedRegionName(region: string) {
return regionNames.of(region);
try {
return regionNames.of(region) || region;
} catch {
return region;
}
}