Skip to content

Commit

Permalink
Added Chinese & Malayalam verse and word translations (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwan authored Nov 9, 2024
1 parent 7068b0e commit 458c97e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<meta name="theme-color" content="#f9f9f9" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" content="Quran Word By Word Translation, Transliteration And Morphology in English, Urdu, Hindi, Indonesian, Bangla, Turkish, Tamil, French, German, Russian and Ingush - QuranWBW.com" />
<meta name="description" content="Quran Word By Word Translation, Transliteration And Morphology in English, Urdu, Hindi, Indonesian, Bangla, Turkish, Tamil, French, German, Russian, Ingush, Chinese and Malayalam - QuranWBW.com" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preload" href="%sveltekit.assets%/fonts/hafs/uthmanic_hafs_v22.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="%sveltekit.assets%/fonts/indopak/AlQuranIndoPakv5byQuranWBW.com-Regular.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="%sveltekit.assets%/fonts/bismillah/QCF_Bismillah_COLOR-Regular.woff2" as="font" type="font/woff2" crossorigin />
<link crossorigin="anonymous" rel="manifest" href="%sveltekit.assets%/manifest.json" />
<link crossorigin="anonymous" rel="icon" type="image/png" href="%sveltekit.assets%/images/favicon.png" />
<link crossorigin="anonymous" href="%sveltekit.assets%/images/apple-touch-icon.png" rel="apple-touch-icon" />
<link crossorigin="anonymous" rel="stylesheet" href="%sveltekit.assets%/css/global.css?6" />
<link crossorigin="anonymous" rel="stylesheet" href="%sveltekit.assets%/css/global.css?7" />

<!-- setting background colors for themes -->
<script>
Expand Down
57 changes: 47 additions & 10 deletions src/data/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ export const selectableThemes = {

export const verseTranslationsLanguages = [
{ language_id: 20, language: 'Bangla' },
{ language_id: 185, language: 'Chinese' },
{ language_id: 38, language: 'English' },
{ language_id: 49, language: 'French' },
{ language_id: 60, language: 'Hindi' },
{ language_id: 67, language: 'Indonesian' },
{ language_id: 106, language: 'Malayalam' },
{ language_id: 158, language: 'Tamil' },
{ language_id: 11115, language: 'Transliteration' },
{ language_id: 167, language: 'Turkish' },
Expand Down Expand Up @@ -58,6 +60,18 @@ export const selectableVerseTranslations = {
language_id: 20
},

// chinese
56: {
resource_id: 56,
resource_name: 'Chinese Translation (Simplified) - Ma Jain',
language_id: 185
},
109: {
resource_id: 109,
resource_name: 'Muhammad Makin',
language_id: 185
},

// english
131: {
resource_id: 131,
Expand Down Expand Up @@ -141,6 +155,23 @@ export const selectableVerseTranslations = {
language_id: 67
},

// malayalam
224: {
resource_id: 224,
resource_name: 'Abdul-Hamid Haidar & Kanhi Muhammad',
language_id: 106
},
80: {
resource_id: 80,
resource_name: 'Muhammad Karakunnu and Vanidas Elayavoor',
language_id: 106
},
37: {
resource_id: 37,
resource_name: 'Abdul Hameed and Kunhi',
language_id: 106
},

// tamil
229: {
resource_id: 229,
Expand Down Expand Up @@ -250,16 +281,22 @@ export const selectableVerseTransliterations = [1, 3, 57];

export const selectableWordTranslations = {
1: { id: 5, language: 'Bangla' },
2: { id: 1, language: 'English' },
3: { id: 11, language: 'French' },
4: { id: 8, language: 'German' },
5: { id: 3, language: 'Hindi' },
6: { id: 4, language: 'Indonesian' },
7: { id: 10, language: 'Ingush' },
8: { id: 9, language: 'Russian' },
9: { id: 7, language: 'Tamil' },
10: { id: 6, language: 'Turkish' },
11: { id: 2, language: 'Urdu' }
2: { id: 14, language: 'Chinese (Traditional)' },
3: { id: 15, language: 'Chinese (Zhuyin)' },
4: { id: 16, language: 'Chinese (Simplified)' },
5: { id: 17, language: 'Chinese (Pinyin)' },
6: { id: 1, language: 'English' },
7: { id: 11, language: 'French' },
8: { id: 8, language: 'German' },
9: { id: 3, language: 'Hindi' },
10: { id: 4, language: 'Indonesian' },
11: { id: 10, language: 'Ingush' },
12: { id: 12, language: 'Malayalam (Amani Thafseer)' },
13: { id: 13, language: 'Malayalam (Quran Lalithasaram)' },
14: { id: 9, language: 'Russian' },
15: { id: 7, language: 'Tamil' },
16: { id: 6, language: 'Turkish' },
17: { id: 2, language: 'Urdu' }
};

export const selectableReciters = {
Expand Down
2 changes: 1 addition & 1 deletion src/data/websiteSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const websiteTagline = 'Word By Word Translation, Transliteration And Mor

export const websiteTitle = `Quran ${websiteTagline} - ${websiteURL}`;

export const wbwLanguages = 'English, Urdu, Hindi, Indonesian, Bangla, Turkish, Tamil, French, German, Russian and Ingush';
export const wbwLanguages = 'English, Urdu, Hindi, Indonesian, Bangla, Turkish, Tamil, French, German, Russian, Ingush, Chinese and Malayalam';

export const apiEndpoint = 'https://api.quranwbw.com/v1';
// export const apiEndpoint = 'http://localhost:7500/v1';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://zoopernet.com">Ayman Siddiqui</a> for all the help including providing various website data and fonts & website testing.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://github.com/cpfair">Collin Fair</a> for his word timestamps for Quranic audios.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://play.google.com/store/apps/details?id=com.atq.quranemajeedapp.org.islamone&hl=en">Usman Pervez (IslamOne android app)</a> for various data like Urdu WBW and Tafhim-ul-Quran.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://gtaf.org">Greentech Apps (Al Quran Tafsir & by Word app)</a> for their English, Indonesian & Bangla words and corpus database.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://gtaf.org">Greentech Apps (Al Quran Tafsir & by Word app)</a> for their English, Indonesian, Bangla, Chinese and Malayalam words database and corpus data.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://github.com/kaisdukes">Dr. Kais Dukes</a> for his morphological description of the Quranic words.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://www.typemybook.com/download/complete-quran-kareem-text/">Ata Rafi</a> for sharing the IndoPak text originally by <a class={linkClasses} target="_blank" rel="noreferrer" href="http://inpage.com/">InPage™</a>.</li>
<li><a class={linkClasses} target="_blank" rel="noreferrer" href="https://apps.apple.com/us/app/quran-word-by-word/id588198510">Azrul Azwar (Quran WbW iOS app)</a> for the words databases in many different languages.</li>
Expand Down
Binary file modified static/images/screenshots/mobile/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 458c97e

Please sign in to comment.