Browse Source

Localize country names

pull/6997/head
Thomas Kaul 3 days ago
parent
commit
a77fc28e0c
  1. 2
      libs/common/src/lib/helper.ts

2
libs/common/src/lib/helper.ts

@ -264,7 +264,7 @@ export function getCountryName({
}: { }: {
code: string; code: string;
locale?: string; locale?: string;
}) { }): string {
try { try {
return new Intl.DisplayNames([locale], { type: 'region' }).of(code) ?? code; return new Intl.DisplayNames([locale], { type: 'region' }).of(code) ?? code;
} catch { } catch {

Loading…
Cancel
Save