UNPKG

quran-meta

Version:

Library with meta data and functionality related to Holy Quran

21 lines (19 loc) 504 B
import { surahNames } from "./index.mjs"; //#region src/i18n/getSurahNames.ts /** * Retrieves the list of Surah names in the specified language. * * @param lang - The language code for which to retrieve the Surah names * @returns An array of Surah names in the specified language * * @example * ```typescript * const arabicNames = getSurahNames('ar'); * const englishNames = getSurahNames('en'); * ``` */ function getSurahNames(lang) { return surahNames[lang]; } //#endregion export { getSurahNames };