Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/storefront-french-text.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/commerce-storefront/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/commerce-storefront/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading