From c963243035ca5ed4e67dc5234a2761e2cd49c99d Mon Sep 17 00:00:00 2001 From: Alexander Tsirel Date: Tue, 5 Nov 2024 17:58:57 +1100 Subject: [PATCH] use language option from the configuration --- lib/geocoder/lookups/amazon_location_service.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/geocoder/lookups/amazon_location_service.rb b/lib/geocoder/lookups/amazon_location_service.rb index 7179430e2..101d0874b 100644 --- a/lib/geocoder/lookups/amazon_location_service.rb +++ b/lib/geocoder/lookups/amazon_location_service.rb @@ -10,6 +10,9 @@ def results(query) # Aws::ParamValidator raises ArgumentError on missing required keys params.merge!(index_name: configuration[:index_name]) + # Inherit language from configuration + params.merge!(language: configuration[:language]) + # Aws::ParamValidator raises ArgumentError on unexpected keys params.delete(:lookup)