This plugin for the open source Affiliate package automatically affiliates Amazon URLs based upon locality.
$ npm i -S affiliate affiliate-plugin-amazon$ yarn add affiliate affiliate-plugin-amazon
What It Can Do
Affiliate can modify the following link into any of the others.
If the user's primary language is Italian, all links would become:
Or url modification can be disabled:
Plugin documentation available here: affiliate.js.org/plugins/amazon.
Affiliate is simple and quick to set up, even for more complex usage. Read the docs at: affiliate.js.org.