fix: TldPage translate country name

This commit is contained in:
Maël Gangloff
2024-07-28 20:53:43 +02:00
parent 5b3d2f63e1
commit d3560579a8

View File

@@ -23,7 +23,8 @@ const getCountryCode = (tld: string): string => {
return tld
}
const regionNames = new Intl.DisplayNames(['en'], {type: 'region'})
const locale = navigator.language.split('-')[0]
const regionNames = new Intl.DisplayNames([locale], {type: 'region'})
function TldTable(filters: FiltersType) {