commercelayer / demo-store-core

Commerce Layer Demo Store CORE
https://commercelayer.github.io/demo-store-core
MIT License
7 stars 19 forks source link

Countries and languages #13

Closed marcomontalbano closed 1 year ago

marcomontalbano commented 1 year ago

What does this PR do?

Until now, locales have been generated by combining all countries with all languages. From now on, countries can specify a list of supported languages.

Below you can find an example of the changes in countries.json that you have to make to solve this breaking change:

...

 {
   "name": "United States",
   "code": "US",
   "market": 11279,
   "catalog": "AMER",
-  "default_language": "en",
+  "languages": ["en"],
   "region": "Americas"
 },
 {
   "name": "Italy",
   "code": "IT",
   "market": 11278,
   "catalog": "EMEA",
-  "default_language": "it",
+  "languages": ["it", "en"],
   "region": "Europe"
 }

...