Languages
GET/languages
The 147 languages the platform knows, with their names and writing direction. Use isoCode wherever an endpoint takes lang.
curl "https://islamenc.com/api/languages"[ { "isoCode": "aa", "arabicName": "عفري", "englishName": "Afar", "nativeName": "Qafár af", "direction": "ltr" }, { "isoCode": "ar", "arabicName": "عربي", "englishName": "Arabic", "nativeName": "العربية", "direction": "rtl" }, { "isoCode": "bn", "arabicName": "بنغالي", "englishName": "Bengali", "nativeName": "বাংলা", "direction": "ltr" }, { "isoCode": "prs", "arabicName": "دري", "englishName": "Dari", "nativeName": "دری", "direction": "rtl" }]Not every language has content of every kind. To know what exists:
| Content | Ask |
|---|---|
| A book’s translations | GET /books/{projectId}/languages |
| Which cards exist in which language | GET /enc/{encId}/card-languages |
| Quran translations | GET /quran/translation-keys (editions, each with its language) |
| Surah names | GET /quran/surah-names?language=xx |
direction is rtl for Arabic, Persian, Dari, Pashto, Urdu, Uyghur, Kurdish (Sorani) and the other right-to-left scripts; use it to set dir on what you render.

