@graphcommerce/docs 8.0.5 → 8.0.6-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.6-canary.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2196](https://github.com/graphcommerce-org/graphcommerce/pull/2196) [`84c50e4`](https://github.com/graphcommerce-org/graphcommerce/commit/84c50e49a1a7f154d4a8f4045c37e773e20283ad) - Allow Lingui to use linguiLocale with country identifiers like `en-us`, it would always load `en` in this case. Introced a new `useLocale` hook to use the correct locale string to use in Intl methods.
8
+ ([@paales](https://github.com/paales))
9
+
3
10
  ## 8.0.5
4
11
 
5
12
  ## 8.0.5-canary.10
@@ -66,7 +66,7 @@ Examples:
66
66
 
67
67
  You can export configuration by running `yarn graphcommerce export-config`
68
68
 
69
- ## Extending the configuration in your project
69
+ ## Extending the configuration in your project
70
70
 
71
71
  Create a graphql/Config.graphqls file in your project and extend the GraphCommerceConfig, GraphCommerceStorefrontConfig inputs to add configuration.
72
72
 
@@ -344,7 +344,9 @@ All storefront configuration for the project
344
344
 
345
345
  #### locale: string (required)
346
346
 
347
- Must be a locale string https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers
347
+ Must be a [locale string](https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers) for automatic redirects to work.
348
+
349
+ This value can be used as a sub-path identifier only, make sure linguiLocale is configured for each URL.
348
350
 
349
351
  #### magentoStoreCode: string (required)
350
352
 
@@ -400,7 +402,9 @@ Add a gcms-locales header to make sure queries return in a certain language, can
400
402
 
401
403
  #### linguiLocale: string
402
404
 
403
- Specify a custom locale for to load translations.
405
+ Specify a custom locale for to load translations. Must be lowercase valid locale.
406
+
407
+ This value is also used for the Intl.
404
408
 
405
409
  ### MagentoConfigurableVariantValues
406
410
 
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "@graphcommerce/docs",
3
3
  "homepage": "https://www.graphcommerce.org/docs",
4
4
  "repository": "github:graphcommerce-org/graphcommerce/docs",
5
- "version": "8.0.5",
5
+ "version": "8.0.6-canary.0",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "^8.0.5"
8
+ "@graphcommerce/prettier-config-pwa": "^8.0.6-canary.0"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }