From d3560579a81900ff62ead120baba58fb672cb1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 28 Jul 2024 20:53:43 +0200 Subject: [PATCH] fix: TldPage translate country name --- assets/pages/info/TldPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/pages/info/TldPage.tsx b/assets/pages/info/TldPage.tsx index fad8048..a3a3357 100644 --- a/assets/pages/info/TldPage.tsx +++ b/assets/pages/info/TldPage.tsx @@ -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) {