> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tinyfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How Location and Language Resolve

> How TinySearch fills in location or language when you set only one, and the defaults when you set neither

`location` is a country code such as `US`, `GB`, or `FR`. `language` is a language code such as `en`, `fr`, or `de`. They describe one market together, so setting one fills in the other.

## What happens when you set only one

* **Only `language`:** `location` resolves to the usual country for that language, such as `fr` to `FR` or `ja` to `JP`.
* **Only `location`:** `language` resolves to the usual language for that country, such as `FR` to `fr`.
* **Neither:** `location` defaults to `US` and `language` defaults to `en`.

## When to set both

The resolved value is the usual pairing, not the only possible one. To search a country in a language other than its usual one, such as `location=CA` with `language=fr`, set both.

## Related

> [card] [Search in a Specific Country and Language](https://docs.tinyfish.ai/tinysearch/how-to/country-language.md)
>
> Set location and language on a request

> [card] [TinySearch API Reference](https://docs.tinyfish.ai/tinysearch/reference)
>
> Every accepted value for location and language


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.