Show total number of ayah alongside the active ayah

This commit is contained in:
0x1eef 2024-02-01 07:23:16 -03:00
parent 5c5f74c963
commit 3277fbd399
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@
"surah": "Surah",
"ayah": "Ayah",
"comma": ",",
"of": "of",
"filter": "Filter",
"meta": {
"index": {"description": "Explore the chapters of The Noble Quran. Browse a list of chapters and choose a chapter you can read and listen to. Enhance your understanding of a sacred text."},
@ -135,6 +136,7 @@
"surah": "سورة",
"ayah": "آية",
"comma": "،",
"of": "من",
"filter": "تصفية",
"meta": {
"index": {

View file

@ -44,7 +44,8 @@ export function Stream({
<span>
{t(locale, "surah")} {formatNumber(surah.id, locale)}
{t(locale, "comma")} {t(locale, "ayah")}{" "}
{formatNumber(ayah.id, locale)}
{formatNumber(ayah.id, locale)} {t(locale, "of")}{" "}
{formatNumber(surah.ayat.length, locale)}
</span>
</span>
<p>{ayah.text}</p>