> For the complete documentation index, see [llms.txt](https://docs.peakcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.peakcommerce.com/product/using-peakcommerce/market-profiles/automatic-detection-of-user-location-currency.md).

# Auto-Detecting Currency, Language & Profile

Market Locale rules detect a visitor's locale and automatically apply the right **currency**, **language**, and **profile** — so customers get a localized experience without choosing anything, while keeping the freedom to switch currency at checkout.

## Add a locale rule

Go to **Commerce → Market Locales** and click **Add Locale Rule**. Each rule has:

* **Name** — a label for the rule.
* **Locale Pattern** — the visitor locale(s) it matches (for example a country or language region).
* **Currency** — the currency to apply.
* **Language** — the language to apply.
* **Profile** — the profile to apply for that market.
* **Priority** — the order rules are evaluated in (higher priority wins).
* **Status** — whether the rule is active.

## How rules are applied

* The system detects the visitor's locale and applies the **highest-priority matching** rule.
* If no rule matches, a **default** applies (fallback behavior).
* Shoppers can **manually override** the auto-detected currency at checkout.

Because rules are reusable and prioritized, you can layer a broad default (say, a region) with specific overrides (a single country) without duplicating configuration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.peakcommerce.com/product/using-peakcommerce/market-profiles/automatic-detection-of-user-location-currency.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
