Retrieves the list of Surah names in the specified language.
This bundles every language. To ship only one, import its table (surahNamesFr) or load it with getSurahNamesAsync from quran-meta/i18n/async.
surahNamesFr
getSurahNamesAsync
quran-meta/i18n/async
The language code for which to retrieve the Surah names
An array indexed by surah number of [name, translation] pairs
[name, translation]
const arabicNames = getSurahNames("ar")const englishNames = getSurahNames("en")englishNames[2] // ["Al-Baqara", "The Cow"] Copy
const arabicNames = getSurahNames("ar")const englishNames = getSurahNames("en")englishNames[2] // ["Al-Baqara", "The Cow"]
Retrieves the list of Surah names in the specified language.
This bundles every language. To ship only one, import its table (
surahNamesFr) or load it withgetSurahNamesAsyncfromquran-meta/i18n/async.