Git Product home page Git Product logo

Comments (12)

shahednasser avatar shahednasser commented on July 19, 2024 1

You need to refresh your extension from chrome://extensions in order for localized strings to update.

from quran-extension.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

you mean tafseer, right?

from quran-extension.

shahednasser avatar shahednasser commented on July 19, 2024

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.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

the _locale string is not displayed even though I added a message in messages.json for the arabic language. I am attaching related screenshots!

Screenshot (140)
Screenshot (139)
Screenshot (141)

from quran-extension.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

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.

shahednasser avatar shahednasser commented on July 19, 2024

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.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

yes, but the tafsir is only available in arabic, so it will not be visible for any other language

from quran-extension.

shahednasser avatar shahednasser commented on July 19, 2024

It doesn't matter. The endpoint that retrieves the translation will work for both.

from quran-extension.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

umm... sorry, I don't get it. Can you elaborate?

from quran-extension.

shahednasser avatar shahednasser commented on July 19, 2024

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.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

got it and done! I am making a pull request!

from quran-extension.

murtuzaalisurti avatar murtuzaalisurti commented on July 19, 2024

#21

from quran-extension.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.