From b32f74e6af1f9e689be1de790e328be273d5359b Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 14 Jan 2025 15:30:24 +0530 Subject: [PATCH] perf: Dont send useless translations src => target same strings are not useful to anyone, unnecessary computations. --- frappe/geo/country_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/geo/country_info.py b/frappe/geo/country_info.py index dd2c0eb56a..2ba57bd419 100644 --- a/frappe/geo/country_info.py +++ b/frappe/geo/country_info.py @@ -50,7 +50,7 @@ def get_translated_countries(): # country names && currencies for country, info in get_all().items(): country_name = locale.territories.get((info.get("code") or "").upper()) - if country_name: + if country_name and country != country_name: translated_dict[country] = country_name return translated_dict