From 6362ee2c810e875a556b7097f5d67abc99a9b6a5 Mon Sep 17 00:00:00 2001 From: Danylo Date: Tue, 28 Jan 2025 14:28:30 +0100 Subject: [PATCH] Fix locale. --- .../real/time/data/core/GreenbidsInferenceDataService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/core/GreenbidsInferenceDataService.java b/extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/core/GreenbidsInferenceDataService.java index c16a8de917f..ce0b9f3f806 100644 --- a/extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/core/GreenbidsInferenceDataService.java +++ b/extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/core/GreenbidsInferenceDataService.java @@ -115,7 +115,7 @@ private List extractMessagesForImp( private static String getCountryNameFromAlpha2(String isoCode) { return StringUtils.isBlank(isoCode) ? StringUtils.EMPTY - : new Locale(StringUtils.EMPTY, isoCode).getDisplayCountry(); + : Locale.forLanguageTag("und-" + isoCode).getDisplayCountry(Locale.ENGLISH); } private String getCountry(String ip) {