List the supported languages
GET
/v1/apps/{appId}/languages
const url = 'https://api.shoofai.com/v1/apps/demo-store/languages';const options = {method: 'GET', headers: {'x-shoof-api-key': '<x-shoof-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.shoofai.com/v1/apps/demo-store/languages \ --header 'x-shoof-api-key: <x-shoof-api-key>'The languages indexLanguages, queryLanguages and the dictionaries take, with what each supports.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
string
The app’s id, shown in the dashboard (for example ali-sport-goods). demo-store is the public demo app.
Example
demo-storeResponses
Section titled “Responses”The languages.
Media typeapplication/json
object
languages
Array<object>
object
code
string
name
string
scripts
Array<string>
plurals
Has a stemmer
boolean
stopWords
Has a built-in stop word list.
boolean
decompound
Writes compound words as one; the compounds dictionary splits them.
boolean
segmentation
Is written without spaces between words
boolean
Example
{ "languages": [ { "code": "ar", "name": "Arabic" } ]}