---
title: "Set Language"
method: GET
path: "/set-language/{code}"
---

# Set Language

`GET /set-language/{code}`

## Request

- Base URL: `https://store.hypergpt.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://store.hypergpt.ai/set-language/{code}`
- Auth: none declared

Persist the visitor's language choice (hyperstore_lang cookie) then 302 to
the localized target. The language switcher routes through here so the cookie
is set BEFORE the destination loads — otherwise the cookie-based auto-redirect
in LocaleMiddleware would bounce a deliberate switch (e.g. back to English)
straight back to the previous language. ``next`` is the already-localized
destination path the switcher built (locale prefix + translated slug).

## Path parameters

- `code` string, required

## Query parameters

- `next` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/hypergpt/apis/hyperstore-api.md) · [All operations](https://skmtc.dev/hypergpt/apis/hyperstore-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypergpt/apis/hyperstore-api/revisions/50dc6759e3b9?raw)
