Get a Specific Langvar

Default Language
Specific Language
GET /api/langvars/{name}

This endpoint retrieves a specific language variable using the default language.

Note: The default language is the Backend default language under Settings → Appearance.

Request Example

GET /api/langvars/access_denied
GET /api/languages/{lang_id}/langvars/{name}

This endpoint retrieves a specific language variable for a specific language using the language ID.

Request Example

GET /api/languages/1/langvars/access_denied/

Alternatively, you can use the language code as a query parameter:

GET /api/langvars/access_denied/?sl=en

Response Format

For both endpoints, a successful request will return HTTP/1.1 200 OK and JSON with the details of the language variable:

{
  "lang_code": "en",
  "name": "access_denied",
  "value": "Access denied"
}

Response Fields

Field Type Description
lang_code string The ISO language code (e.g., "en" for English)
name string The unique identifier of the language variable
value string The translated text value of the language variable
Tip: Language variables (langvars) are used for internationalization and localization of your store interface. They allow you to display different text based on the user's selected language.