worthbak / inventory-checker-app

A macOS app for checking Apple Store inventory
https://worthbak.github.io/inventory-checker-app/
GNU General Public License v3.0
115 stars 24 forks source link

Support for the Netherlands #52

Closed florianbuerger closed 2 years ago

florianbuerger commented 2 years ago

Love the product 👌 Would be great if stores in the Netherlands would be supported. The stores are there, seems only the country is missing. I was able to make it work for some products (tested the Studio & Studio Display) with just these changes:

diff --git a/InventoryWatch/Countries.swift b/InventoryWatch/Countries.swift
index 2f7b59b..986e730 100644
--- a/InventoryWatch/Countries.swift
+++ b/InventoryWatch/Countries.swift
@@ -63,7 +63,8 @@ let Countries: [String: Country] = [
     "FR": Country(name: "France", storePathComponent: "/fr", skuCode: "FN"),
     "IT": Country(name: "Italy", storePathComponent: "/it", skuCode: "T"),
     "JP": Country(name: "Japan", storePathComponent: "/jp", skuCode: "J"),
-    "AT": Country(name: "Austria", storePathComponent: "/at", skuCode: "D")
+    "AT": Country(name: "Austria", storePathComponent: "/at", skuCode: "D"),
+    "NL": Country(name: "Netherlands", storePathComponent: "/nl", skuCode: "FN")
 ];

 let OrderedCountries = [
@@ -77,5 +78,6 @@ let OrderedCountries = [
     "FR",
     "IT",
     "JP",
-    "AT"
+    "AT",
+    "NL"
 ]

It doesn't work for MacBooks, and I am not certain what needs to be changed for them.

worthbak commented 2 years ago

Fixed in v0.1.2 👍🎉 https://worthbak.github.io/inventory-checker-app/