# Retrieve localized content

Source: https://developers.swell.is/backend-api/localization/retrieve-localized-content

Use the query parameter `$locale: <code>`, or alternatively an HTTP header `X-Locale: <code>` with any `GET` request. All fields with localized values will be returned according to the locale code and fallback settings.

## Example request

**Example retrieving localized content**

**cURL**

```bash
$ curl 'https://api.swell.store/products?$locale=fr' \
  -u store-id:secret-key
```

**Node**

```javascript
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');

await swell.get('/products', {
  $locale: 'fr'
});
```

**PHP**

```php
<?php $swell = new \Swell\Client('store-id', 'secret-key');

$swell->get('/products', [
  '$locale' => 'fr'
]);
```

## Example response

```json
{
  "count": 36,
  "results": [
    {
      "id": "5cad15bc9b14d1990724663a",
      "name": "Test produit",
      "tags": ["étiqueter1", "étiqueter2"],
      ...
    }
  ],
  "page": 1,
  "page_count": 3,
  "limit": 15,
  ...
}
```
