# Price in Local Currency 🧪

{% hint style="info" %}
ALPHA, not ovailable to the public.&#x20;
{% endhint %}

## How it Works

There are two parts to this feature-

* Determining the local currency
  * Using GeoIP mechanics to identify their country
  * And possibly a currency switcher UX&#x20;
* Converting your prices from their actual currency to the local currency

## Currency Detection

Determine the country and use a lookup.

* Cloudflare reverse proxy
* IPInfo lib

? Work with SA5 Detect lib?&#x20;

## Usage Notes

Identify your source currency somewhere, e.g. config settings

Identify your destination currency on an element

Use SA5 formatting? To handle price display&#x20;

## Technical Notes

<https://exchangeratesapi.io/#pricing_plan>

<https://github.com/fawazahmed0/exchange-api>

<https://latest.currency-api.pages.dev/v1/currencies/eur.json>


---

# Agent Instructions: 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:

```
GET https://attr.sygnal.com/sa5-commerce/price-in-local-currency.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
