Skip to content

Commit c963243

Browse files
authored
use language option from the configuration
1 parent 19f3cd1 commit c963243

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/geocoder/lookups/amazon_location_service.rb

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def results(query)
1010
# Aws::ParamValidator raises ArgumentError on missing required keys
1111
params.merge!(index_name: configuration[:index_name])
1212

13+
# Inherit language from configuration
14+
params.merge!(language: configuration[:language])
15+
1316
# Aws::ParamValidator raises ArgumentError on unexpected keys
1417
params.delete(:lookup)
1518

0 commit comments

Comments
 (0)