---
title: "Detect language from Accept-Language header"
method: GET
path: "/v2/localization/detect-language"
tags: ["Localization"]
---

# Detect language from Accept-Language header

`GET /v2/localization/detect-language`

Detects the preferred language from the browser's Accept-Language header.

## Headers

- `Accept-Language` string — Accept-Language header from browser

## Response `200`

Successful Response

- DetectedLanguageResponse — Response model for detected language from Accept-Language header.
  - `detectedLanguage` string, required
  - `fallback` boolean — True if fell back to default language

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/loyalty/apis/loyaltydog.md) · [All operations](https://skmtc.net/loyalty/apis/loyaltydog/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loyalty/loyaltydog/versions/42b7b22af2b6/schema)
