diff --git a/.changeset/storefront-french-text.md b/.changeset/storefront-french-text.md deleted file mode 100644 index 35d50d4f..00000000 --- a/.changeset/storefront-french-text.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@godaddy/gd-commerce-storefront': minor ---- - -Translate the storefront's text. `CommerceProvider` takes a `messages` prop, separate from `locale`, and the package ships French as `frFR` from `@godaddy/gd-commerce-storefront/messages/fr-FR`. Keys a site leaves out stay English. Plurals follow the language's rules, and server failures show translated text by their `code`. Price ranges are formatted for the `locale`, so German and French write `20,00–25,00 €`. `useMessage` and `useMoneyRange` give custom parts the same text and formatting. Error events from `onEvent` carry the translated `message` and the server's `code`. `getCartSummaryTotals` takes a fallback currency, such as the store's. diff --git a/packages/commerce-storefront/CHANGELOG.md b/packages/commerce-storefront/CHANGELOG.md index e8e8cb2b..0392dcbf 100644 --- a/packages/commerce-storefront/CHANGELOG.md +++ b/packages/commerce-storefront/CHANGELOG.md @@ -1,5 +1,11 @@ # @godaddy/gd-commerce-storefront +## 0.10.0 + +### Minor Changes + +- 06e3825: Translate the storefront's text. `CommerceProvider` takes a `messages` prop, separate from `locale`, and the package ships French as `frFR` from `@godaddy/gd-commerce-storefront/messages/fr-FR`. Keys a site leaves out stay English. Plurals follow the language's rules, and server failures show translated text by their `code`. Price ranges are formatted for the `locale`, so German and French write `20,00–25,00 €`. `useMessage` and `useMoneyRange` give custom parts the same text and formatting. Error events from `onEvent` carry the translated `message` and the server's `code`. `getCartSummaryTotals` takes a fallback currency, such as the store's. + ## 0.9.0 ### Minor Changes diff --git a/packages/commerce-storefront/package.json b/packages/commerce-storefront/package.json index 0d74eeee..c941c14c 100644 --- a/packages/commerce-storefront/package.json +++ b/packages/commerce-storefront/package.json @@ -1,6 +1,6 @@ { "name": "@godaddy/gd-commerce-storefront", - "version": "0.9.0", + "version": "0.10.0", "description": "Opinionated React storefront templates for GoDaddy Commerce", "type": "module", "license": "MIT",