Language Details - Venddor API

Language Details Overview

The table below describes all the language details fields available in the Venddor API. These fields are used when managing languages via the REST API.

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 Fields Reference

Field Values Description
lang_id integer The unique identifier of the installed language.
lang_code string The two-letter language code, for example, en.
name string The name of the language.
status string The status of the language:
A — active
H — hidden
D — disabled
country_code string The ISO code of the country to which the language belongs. It determines the flag icon that will appear next to the language in the Administration panel and on the storefront.
direction string The writing direction of the language:
ltr — left-to-right
rtl — right-to-left

Example Language Object

{
  "lang_id": "2",
  "lang_code": "es",
  "name": "Spanish",
  "status": "A",
  "country_code": "ES",
  "direction": "ltr"
}
Tip: When creating or updating languages, make sure to use the correct country code to ensure proper flag display in the interface.