Skip to content

Money component and useMoney hook don’t respect app language format #2507

@tomtuv

Description

@tomtuv

What is the location of your example repository?

No response

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2024.7.4

What version of Remix are you using?

2.11.2

Steps to Reproduce

  1. Create a new Hydrogen project using npm create @shopify/hydrogen@latest
  2. Add i18n options to the Hydrogen context such as { language: "FR", country: "FR" }
  3. Use the Money component or the useMoney hook and observe the formatted string

Expected Behavior

The formatted price should follow the app’s language format.

Actual Behavior

The formatted price always uses the English format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSEV-3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions