Open bonucci opened 6 years ago
same here. I noticed that the mexico store searches the us sotre, but has a flag of Language "es_MX". The Spain store searches the UK store, but has a flag of language "es_ES". Yet I havent been able to figure out how to put that in the request.
var opts = {
host: "completion.amazon.co.uk/search/complete"
. . .
, language: "es_ES"
. . .
In the request you can define a keyword as "l=LOCALE".
Strangely enough in my tests, my language (l=pt_BR) would only work along with the keyword "mkt=526970". Maybe you should find the mkt value for your language and try it out*.
Once you found out, you can change the following line and make requests using the plugin https://github.com/caroso1222/amazon-autocomplete/blob/1638b787296b6e248687b263e9e12a472470972d/src/amazon-autocomplete.js#L311
* Quick tip: Go to amazon domain on your country. Open the network tab on chrome dev tools and start typing on the amazon search bar. You will see the entire request parameters.
How i would configure the autocomplete to make searches in other language, in spanish or portuguese?