mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 11:34:07 +00:00
update Locales constructor:
expect output names as argument and avoid redundant configuration initialization
This commit is contained in:
@@ -154,7 +154,7 @@ async def dump_results(conn: napi.SearchConnection,
|
||||
await add_result_details(conn, results,
|
||||
LookupDetails(address_details=True))
|
||||
|
||||
locale = napi.Locales([lang] if lang else None)
|
||||
locale = napi.Locales([lang] if lang else None, conn.config.OUTPUT_NAMES)
|
||||
locale.localize_results(results)
|
||||
|
||||
for result in results:
|
||||
|
||||
Reference in New Issue
Block a user