From a77fc28e0c2bc04a2b4ddf0bfcdf64deee6966b6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 6 Jun 2026 21:02:29 +0200 Subject: [PATCH] Localize country names --- libs/common/src/lib/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index db320c7cb..ce7fca518 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -264,7 +264,7 @@ export function getCountryName({ }: { code: string; locale?: string; -}) { +}): string { try { return new Intl.DisplayNames([locale], { type: 'region' }).of(code) ?? code; } catch {