Skip to content

Commit

Permalink
use language option from the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
noma4i authored Nov 5, 2024
1 parent 19f3cd1 commit c963243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/geocoder/lookups/amazon_location_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c963243

Please sign in to comment.