perf: defer babel import
Only required when configuring but will get loaded everywhere
diff --git a/erpnext/setup/doctype/holiday_list/holiday_list.py b/erpnext/setup/doctype/holiday_list/holiday_list.py
index acf4215..6b6c8ba 100644
--- a/erpnext/setup/doctype/holiday_list/holiday_list.py
+++ b/erpnext/setup/doctype/holiday_list/holiday_list.py
@@ -6,7 +6,6 @@
from datetime import date
import frappe
-from babel import Locale
from frappe import _, throw
from frappe.model.document import Document
from frappe.utils import formatdate, getdate, today
@@ -169,4 +168,6 @@
def local_country_name(country_code: str) -> str:
"""Return the localized country name for the given country code."""
+ from babel import Locale
+
return Locale.parse(frappe.local.lang, sep="-").territories.get(country_code, country_code)