Localization
Language utilities exposed to the storefront
Wraps Django’s set_language helper to change the active UI language.
Behaviour
Persists the selected language in session
Redirects to
nextparameter (defaults to homepage)Supports AJAX clients (returns 200 without redirect when applicable)
Body
Form payload used by set_language
languagestringRequiredExample:
Language code defined in Django LANGUAGES
ennextany ofOptionalExample:
Optional redirect path after switching language
/account/stringOptional
Responses
200
Language changed (AJAX fallback)
No content
302
Language changed, redirect issued
post
/i18n/setlang/No content
Last updated
Was this helpful?

