Skip to content

Commit

Permalink
Merge pull request #113 from ahmedatwa/v2.0.1
Browse files Browse the repository at this point in the history
V2.0.1
  • Loading branch information
ahmedatwa authored Dec 18, 2024
2 parents cf23b06 + d23145f commit b6bed7a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/chapter/ReadingViewComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const handleRefresh = (event: RefresherCustomEvent) => {
}
};
const scroll = (verseNumber: number) => scrollToElement(`#line-${verseNumber}`, cardRef.value.$el, 300)
const scroll = (verseNumber: number) => scrollToElement(`#line-${verseNumber}`, cardRef.value.$el)
</script>

Expand Down
13 changes: 7 additions & 6 deletions src/components/common/CardHeaderButtonsComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import type { PlayAudioEmit } from '@/types/audio';
const { getLine } = useLocale()
const translationStore = useTranslationsStore()
const settings = useSettings()
const alertButtons = [getLine("buttons.ok"), getLine("buttons.cancel")];
const props = defineProps<{
isPlaying: boolean
Expand Down Expand Up @@ -58,13 +59,13 @@ const translations = computed(() => {
})
const getSelectedTranslation = (ev: CustomEvent) => {
const transaltion: Translation = ev.detail.data.values
translationStore.selectedTranslation = toValue(transaltion)
settings.updateSelectedTranslations(toValue(transaltion))
if (ev.detail.data) {
const transaltion: Translation = ev.detail.data.values
translationStore.selectedTranslation = toValue(transaltion)
settings.updateSelectedTranslations(toValue(transaltion))
}
}
const alertButtons = ['Change'];
const alertInputs = translations
</script>


Expand All @@ -89,7 +90,7 @@ const alertInputs = translations
</ion-button>
<!-- Alert Transaltion -->
<ion-alert trigger="present-alert" :header="translationAlertHeader" :buttons="alertButtons"
:inputs="alertInputs" :message="translationStore.selectedTranslation?.author_name"
:inputs="translations" :message="translationStore.selectedTranslation?.author_name"
@did-dismiss="getSelectedTranslation($event)"></ion-alert>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/juz/ReadingViewComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const handleRefresh = (event: RefresherCustomEvent) => {
}
};
const scroll = (verseNumber: number) => scrollToElement(`#verse-col-${verseNumber}`, cardRef.value.$el, 300)
const scroll = (verseNumber: number) => scrollToElement(`#verse-col-${verseNumber}`, cardRef.value.$el)
const isPlaying = (chapterId: number) => {
return props.isPlaying && chapterId === props.activeAudioId
Expand Down
2 changes: 1 addition & 1 deletion src/components/page/ReadingViewComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const handleRefresh = (event: RefresherCustomEvent) => {
}
};
const scroll = (verseNumber: number) => scrollToElement(`#verse-col-${verseNumber}`, cardRef.value.$el, 300)
const scroll = (verseNumber: number) => scrollToElement(`#verse-col-${verseNumber}`, cardRef.value.$el)
const isPlaying = (chapterId: number) => {
return props.isPlaying && chapterId === props.activeAudioId
Expand Down
13 changes: 10 additions & 3 deletions src/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
autoDownload: "تنزيل الصوت تلقائيًا",
keepAwake: "منع النوم أثناء التشغيل",
highlightedWordColor: "لون الكلمة",
fab: "زر الصوت الرائع"
fab: "زر الصوت الرائع",
},
bookmark: {
title: "الإشارات المرجعية",
Expand All @@ -59,7 +59,7 @@ export default {
juz: "Juz {0}",
surah: "سورة {0}",
ayah: "آية {0}",
recentlyPlayed: "لعبت مؤخرًا"
recentlyPlayed: "لعبت مؤخرًا",
},
quranReader: {
textPage: "صفحة",
Expand All @@ -82,6 +82,13 @@ export default {
loadingChapterInfo: "جارٍ تحميل معلومات السورة...",
textDowloading: "جارٍ التنزيل...",
verseBookmarked: "تم وضع إشارة مرجعية على الآية.",
verseAlreadyBookmarked: "تحذير: تم وضع إشارة مرجعية على الآية بالفعل."
verseAlreadyBookmarked: "تحذير: تم وضع إشارة مرجعية على الآية بالفعل.",
},
buttons: {
ok: "نعم",
cancel: "إلغاء",
close: "غلق",
dismiss: "رفض",
confirm: "تأكيد",
},
};
7 changes: 7 additions & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,11 @@ export default {
verseBookmarked: "Success: Verse has been bookmarked.",
verseAlreadyBookmarked: "Warning: Verse is already bookmarked."
},
buttons: {
ok: "Ok",
cancel: "Cancel",
close: "Close",
dismiss: "Dismiss",
confirm: "Confirm"
}
};

0 comments on commit b6bed7a

Please sign in to comment.