Skip to content

Commit

Permalink
Locale support for Netherlands added
Browse files Browse the repository at this point in the history
  • Loading branch information
utekaravinash committed Apr 3, 2020
1 parent 4debeed commit de0660b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/locale.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const (
Japan Locale = "JP"
// Mexico Locale for Mexico
Mexico Locale = "MX"
// Netherlands Locale for Netherlands
Netherlands Locale = "NL"
// Singapore Locale for Singapore
Singapore Locale = "SG"
// Spain Locale for Spain
Expand Down Expand Up @@ -54,6 +56,7 @@ var localeHostRegionMarketplaceMap = map[Locale]hostRegionMarketplace{
Italy: {"webservices.amazon.it", "eu-west-1", "www.amazon.it"},
Japan: {"webservices.amazon.co.jp", "us-west-2", "www.amazon.co.jp"},
Mexico: {"webservices.amazon.com.mx", "us-east-1", "www.amazon.com.mx"},
Netherlands: {"webservices.amazon.nl", "eu-west-1", "www.amazon.nl"},
Singapore: {"webservices.amazon.sg", "us-west-2", "www.amazon.sg"},
Spain: {"webservices.amazon.es", "eu-west-1", "www.amazon.es"},
Turkey: {"webservices.amazon.com.tr", "eu-west-1", "www.amazon.com.tr"},
Expand Down
4 changes: 4 additions & 0 deletions api/locale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func TestLocale(t *testing.T) {
itLocale := Italy
jpLocale := Japan
mxLocale := Mexico
nlLocale := Netherlands
sgLocale := Singapore
esLocale := Spain
trLocale := Turkey
Expand Down Expand Up @@ -52,6 +53,9 @@ func TestLocale(t *testing.T) {
{"MX Host", "webservices.amazon.com.mx", mxLocale.Host()},
{"MX Region", "us-east-1", mxLocale.Region()},
{"MX Marketplace", "www.amazon.com.mx", mxLocale.Marketplace()},
{"NL Host", "webservices.amazon.nl", nlLocale.Host()},
{"NL Region", "eu-west-1", nlLocale.Region()},
{"NL Marketplace", "www.amazon.nl", nlLocale.Marketplace()},
{"SG Host", "webservices.amazon.sg", sgLocale.Host()},
{"SG Region", "us-west-2", sgLocale.Region()},
{"SG Marketplace", "www.amazon.sg", sgLocale.Marketplace()},
Expand Down

0 comments on commit de0660b

Please sign in to comment.