Translation help needed
Sheikh24608 opened this issue · 3 comments
Assalamualaikum
I wanna know if that is possible to get translation like instead of going to editions and see which edition has the language translation I want
Actually I am making a discord bot which will fetch data through a rest API and use it as to display verse or info or maybe after this Hadith
So I am willing if some guy write
/get verse 1:4 en
Where 1:4 is the ayah 4 of surah number one but I don't want help with this I wanna know if the guy writes en it will show translation in English
Or let's say "ur" (don't know exact term) it will show the verse in Urdu
I will be really thankful
Jazak Allah
You can do something like this:
https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/{editionName}/{chapter}/{verse}.json
For example:
verse 1:4
, language english
, translator Umm muhammad
:
https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/eng-ummmuhammad/1/4.json
verse 1:4
language Urdu
, translator Muhammand Taqi Usmani
:
https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/urd-muhammadtaqiusm/1/4.json
You can get list of all available editions here:
https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions.json