diff --git a/src/components/chapter/ReadingViewComponent.vue b/src/components/chapter/ReadingViewComponent.vue index e7158d1..da75474 100644 --- a/src/components/chapter/ReadingViewComponent.vue +++ b/src/components/chapter/ReadingViewComponent.vue @@ -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) diff --git a/src/components/common/CardHeaderButtonsComponent.vue b/src/components/common/CardHeaderButtonsComponent.vue index adf5f61..c1e7c22 100644 --- a/src/components/common/CardHeaderButtonsComponent.vue +++ b/src/components/common/CardHeaderButtonsComponent.vue @@ -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 @@ -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 @@ -89,7 +90,7 @@ const alertInputs = translations diff --git a/src/components/juz/ReadingViewComponent.vue b/src/components/juz/ReadingViewComponent.vue index e340258..34d06db 100644 --- a/src/components/juz/ReadingViewComponent.vue +++ b/src/components/juz/ReadingViewComponent.vue @@ -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 diff --git a/src/components/page/ReadingViewComponent.vue b/src/components/page/ReadingViewComponent.vue index d224659..c8dc9e6 100644 --- a/src/components/page/ReadingViewComponent.vue +++ b/src/components/page/ReadingViewComponent.vue @@ -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 diff --git a/src/locales/ar.ts b/src/locales/ar.ts index eb5068e..83b732a 100644 --- a/src/locales/ar.ts +++ b/src/locales/ar.ts @@ -40,7 +40,7 @@ export default { autoDownload: "تنزيل الصوت تلقائيًا", keepAwake: "منع النوم أثناء التشغيل", highlightedWordColor: "لون الكلمة", - fab: "زر الصوت الرائع" + fab: "زر الصوت الرائع", }, bookmark: { title: "الإشارات المرجعية", @@ -59,7 +59,7 @@ export default { juz: "Juz {0}", surah: "سورة {0}", ayah: "آية {0}", - recentlyPlayed: "لعبت مؤخرًا" + recentlyPlayed: "لعبت مؤخرًا", }, quranReader: { textPage: "صفحة", @@ -82,6 +82,13 @@ export default { loadingChapterInfo: "جارٍ تحميل معلومات السورة...", textDowloading: "جارٍ التنزيل...", verseBookmarked: "تم وضع إشارة مرجعية على الآية.", - verseAlreadyBookmarked: "تحذير: تم وضع إشارة مرجعية على الآية بالفعل." + verseAlreadyBookmarked: "تحذير: تم وضع إشارة مرجعية على الآية بالفعل.", + }, + buttons: { + ok: "نعم", + cancel: "إلغاء", + close: "غلق", + dismiss: "رفض", + confirm: "تأكيد", }, }; diff --git a/src/locales/en.ts b/src/locales/en.ts index d2d76da..4ca8b5e 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -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" + } };