Language Variable Details - Venddor API

Language Variable Details

Language variables (langvars) are key-value pairs that store all text content in your Venddor store. This allows different languages to display different texts for the same content area.

Note: The REST API always accepts and returns data as strings and arrays/objects. The Values column in the table merely shows what kind of data you can expect in the fields.

Language Variable Fields Reference

Field Values Description
lang_code string The two-letter language code, for example, en.
name string The name of the language variable.
value string The value of the language variable for the language with the specified lang_code.

Example Language Variable Object

{
  "lang_code": "en",
  "name": "shopping_cart",
  "value": "Shopping Cart"
}

Working with Language Variables

Language variables are extensively used throughout the Venddor system. When managing multi-language stores, you'll need to create and update language variables for each supported language.

Tip: For consistent user experience, make sure all your language variables are translated across all supported languages in your store.