Locales and localization refactor with Locales as a localizer object.

Removed auto-localization from search/search_address APIs (now explicit), simplified AddressLines to subclass List[AddressLine], made display_name a computed property in Results instead of field and removed result-localization circular dependencies
This commit is contained in:
anqixxx
2025-07-24 16:54:13 -04:00
parent b7d77b9b43
commit 6b627df4fb
10 changed files with 113 additions and 67 deletions

View File

@@ -119,7 +119,7 @@ def test_search_details_full():
country_code='ll',
indexed_date=import_date
)
search.localize(napi.Locales())
napi.Locales().localize_results([search])
result = v1_format.format_result(search, 'json', {})