From 4ef9c4c65b4883b88b69a0977b3eca238a687460 Mon Sep 17 00:00:00 2001 From: Hampus Date: Wed, 16 Sep 2026 18:27:50 +0200 Subject: [PATCH] fix(api): restore commas in geoip location labels (#2812) --- fluxer_api/pkgs/geoip/src/GeoipLookup.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fluxer_api/pkgs/geoip/src/GeoipLookup.ts b/fluxer_api/pkgs/geoip/src/GeoipLookup.ts index 9ec4ddafb..223bcfe1a 100644 --- a/fluxer_api/pkgs/geoip/src/GeoipLookup.ts +++ b/fluxer_api/pkgs/geoip/src/GeoipLookup.ts @@ -285,6 +285,5 @@ export function formatGeoipLocation(result: GeoipResult, locale?: string | null) const localizedCountry = locale && result.countryCode ? countryDisplayName(result.countryCode, locale) : null; const countryLabel = localizedCountry ?? result.countryName ?? result.countryCode; if (countryLabel) parts.push(countryLabel); - if (parts.length === 0) return null; - return new Intl.ListFormat(locale ?? 'en', {style: 'narrow', type: 'unit'}).format(parts); + return parts.length > 0 ? parts.join(', ') : null; }