|
|
@ -261,7 +261,7 @@ export function getCurrencyFromSymbol(aSymbol = '') { |
|
|
export function getCountryName({ code }: { code: string }): string { |
|
|
export function getCountryName({ code }: { code: string }): string { |
|
|
try { |
|
|
try { |
|
|
return ( |
|
|
return ( |
|
|
new Intl.DisplayNames([document.documentElement.lang || locale], { |
|
|
new Intl.DisplayNames([document.documentElement.lang || DEFAULT_LOCALE], { |
|
|
type: 'region' |
|
|
type: 'region' |
|
|
}).of(code) ?? code |
|
|
}).of(code) ?? code |
|
|
); |
|
|
); |
|
|
|