Comments (12)
You need to refresh your extension from chrome://extensions in order for localized strings to update.
from quran-extension.
you mean tafseer, right?
from quran-extension.
yes. I think we just need to add the Arabic option from this endpoint:
http://api.alquran.cloud/v1/edition/type/translation
to the array returned in getTranslationLanguageIdentifier
in options.js
.
from quran-extension.
the _locale string is not displayed even though I added a message in messages.json
for the arabic language. I am attaching related screenshots!
from quran-extension.
the tafsir is available only in arabic language! check it out at this endpoint :- https://api.alquran.cloud/v1/edition/type/tafsir
from quran-extension.
You just need to add the identifier from this endpoint to the select list. Then, when it is selected in the options the tafsir will be fetched based on the identifier.
from quran-extension.
yes, but the tafsir is only available in arabic, so it will not be visible for any other language
from quran-extension.
It doesn't matter. The endpoint that retrieves the translation will work for both.
from quran-extension.
umm... sorry, I don't get it. Can you elaborate?
from quran-extension.
In the options, the user only needs to choose the language for the translation. The value of the language is the identifier used to retrieve the translation from the endpoint https://api.alquran.cloud/v1/ayah/<VERSE_NUMBER>/editions/quran-uthmani-min,<TRANSLATION_IDENTIFIER>
Where <VERSE_NUMBER>
is the number of the verse to be translated and <TRANSLATION_IDENTIFIER>
is the identifier for either the translations which we already support, or the new tafsir we're adding with the identifier ar.muyassar
. For example: https://api.alquran.cloud/v1/ayah/255/editions/quran-uthmani-min,ar.muyassar
So, we just need to add the new option in the options with the identifier ar.muyassar
. Then, when it's selected the tafsir will be shown on the new tab page under "Quran Translation". The same will apply for other languages.
from quran-extension.
got it and done! I am making a pull request!
from quran-extension.
from quran-extension.
Related Issues (16)
- Translate the extension to many languages HOT 8
- Change Ayah every new tab HOT 1
- Problem with audio HOT 2
- Better Screenshots for Chrome Web Store HOT 14
- Increased Padding HOT 1
- Should a Formatter be Used? HOT 3
- Wrong Hijri Date HOT 1
- Add Search Engine
- Time Until Next Prayer
- Add Option to Refresh Ayah on every new tab
- Favorite Ayah
- abilty to change prayer times in 12h format HOT 2
- Covert to Manifest V3
- Add the option to choose background image
- Chrome ayah stuck to latest new tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quran-extension.