Light Mode
Add Language
POST
/languagesLast modified: 23 days ago
This endpoint allows you to add one or more languages to the store.
Request
Body Params application/json
locales
array [object {2}]
optional
iso_code
string
optional
ISO Code of the Language
Example:
fr
sort_order
string | null
optional
The order of which a language will appear
Example:
1
Example
{
"locales": [
{
"iso_code": "fr",
"sort_order": "1"
}
]
}
Request samples
Responses
Success(200)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 12,
"name": "suomen kieli",
"status": "enabled",
"rtl": false,
"flag": "https://assets.salla.sa/images/flags/fi.svg",
"iso_code": "fi",
"country_code": "fi",
"sort_order": 9
},
{
"id": 15,
"name": "Ελληνικά",
"status": "enabled",
"rtl": false,
"flag": "https://assets.salla.sa/images/flags/el.svg",
"iso_code": "el",
"country_code": "gr",
"sort_order": 10
}
]
}
Last modified: 23 days ago