---
agentTools:
  projectIndex: https://evolutionscript.readme.io/llms.txt
---

# Language vars

Get language vars for API messages.

This will return the translation vars of default language from your site configuration.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "EvolutionScript API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://yoursite.com/api/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/lang": {
      "get": {
        "summary": "Language vars",
        "description": "Get language vars for API messages.",
        "operationId": "language-vars",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Your language ID. If it is not set, api will display vars from default language.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\tstatus: success,\n  data: {\n   \tvar1: \"Var 1\"\n  }\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\tstatus: \"error\",\n  message: \"Something went wrong.\"\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65bd0cc6f82c50005bb26657:65bd22b349b77b00692372b2"
}
```