Browse Source

fix bugs

develop
parent
commit
03e3d392d8
  1. 58
      src/features/custom-trip/CustomTripOrderDetailPage.tsx
  2. 32
      src/features/custom-trip/components/CustomTripOrderReviewDialog.tsx
  3. 29
      src/features/custom-trip/components/CustomTripOrdersTab.tsx
  4. 218
      src/features/services/components/DuasServiceView.tsx
  5. 8
      src/features/services/services/trip-etiquette-api.ts
  6. 12
      src/features/services/types/trip-etiquette.ts
  7. 24
      src/lib/date-utils.ts
  8. 19
      src/locales/ar.json
  9. 19
      src/locales/en.json
  10. 19
      src/locales/fa.json

58
src/features/custom-trip/CustomTripOrderDetailPage.tsx

@ -8,7 +8,7 @@ import { Textarea } from '@/components/ui/textarea'
import { Shimmer, ShimmerBox, ShimmerLine } from '@/components/shared/shimmer_frontend'
import { Ic } from '@/icons'
import { toFa, toEn, formatAmount } from '@/lib/utils'
import { formatDualDate } from '@/lib/date-utils'
import { formatDualDate, formatDateRangeByLanguage, parseTravelDateRange } from '@/lib/date-utils'
import { UniversalDatePicker } from '@/components/shared/UniversalDatePicker'
import { useTranslation } from '@/i18n'
import { useBillingBadgeStore } from '@/stores/billing-badge'
@ -1712,33 +1712,37 @@ export default function CustomTripOrderDetailPage() {
</span>
</div>
<div className="flex items-start justify-between gap-2 pb-2 border-b border-border/50">
<span className="text-muted-foreground text-xs shrink-0">{t('customTrip.tripStartDate')}:</span>
<div className="text-end">
<span className="font-mono font-bold text-primary block">
{(editLegs[0]?.departureDate || order.startDate)
? formatDualDate((editLegs[0]?.departureDate || order.startDate) as string, language)
: '—'}
</span>
{order.travelDateText && !/^\d{4}-\d{2}-\d{2}/.test(order.travelDateText) && (
<span className="text-[11px] text-muted-foreground block mt-0.5">
({order.travelDateText === 'This Month'
? t('customTrip.quickDateThisMonth')
: order.travelDateText === 'Next Month'
? t('customTrip.quickDateNextMonth')
: order.travelDateText === 'Arbaeen Pilgrimage Season'
? t('customTrip.quickDateArbaeen')
: order.travelDateText === 'Arafah & Eid al-Adha'
? t('customTrip.quickDateArafah')
: order.travelDateText === 'Nisfu Shaban Season'
? t('customTrip.quickDateShaban')
: order.travelDateText === 'Date Not Decided Yet'
? t('customTrip.quickDateUndecided')
: order.travelDateText})
{(() => {
const parsedRange = parseTravelDateRange(
order.travelDateText,
(editLegs[0]?.departureDate || order.startDate) as string | null
)
return (
<div className="flex items-start justify-between gap-2 pb-2 border-b border-border/50">
<span className="text-muted-foreground text-xs shrink-0">
{parsedRange.endIso
? t('customTrip.approxTravelRange')
: t('customTrip.tripStartDate')}:
</span>
)}
</div>
</div>
<div className="text-end">
<span className="font-mono font-bold text-primary block leading-relaxed">
{parsedRange.startIso && parsedRange.endIso
? formatDateRangeByLanguage(parsedRange.startIso, parsedRange.endIso, language)
: (editLegs[0]?.departureDate || order.startDate)
? formatDualDate((editLegs[0]?.departureDate || order.startDate) as string, language)
: '—'}
</span>
{!parsedRange.endIso &&
order.travelDateText &&
!/^\d{4}-\d{2}-\d{2}/.test(order.travelDateText) && (
<span className="text-[11px] text-muted-foreground block mt-0.5">
({order.travelDateText})
</span>
)}
</div>
</div>
)
})()}
<div className="flex items-center justify-between">
<span className="text-muted-foreground text-xs">{t('customTrip.createdDate')}:</span>

32
src/features/custom-trip/components/CustomTripOrderReviewDialog.tsx

@ -14,7 +14,7 @@ import { Input } from '@/components/ui/input'
import { Textarea } from '@/components/ui/textarea'
import { Ic } from '@/icons'
import { toFa, toEn, formatAmount } from '@/lib/utils'
import { formatDualDate } from '@/lib/date-utils'
import { formatDualDate, formatDateRangeByLanguage, parseTravelDateRange } from '@/lib/date-utils'
import { UniversalDatePicker } from '@/components/shared/UniversalDatePicker'
import { useTranslation } from '@/i18n'
import { useBillingBadgeStore } from '@/stores/billing-badge'
@ -776,14 +776,28 @@ export function CustomTripOrderReviewDialog({
{order.infantsCount > 0 && `، ${toFa(order.infantsCount)} ${t('customTrip.infants')}`}
</span>
</div>
<div>
<span className="text-muted-foreground text-xs block">{t('customTrip.tripStartDate')}:</span>
<span className="font-mono font-bold text-primary">
{(editLegs[0]?.departureDate || order.startDate)
? formatDualDate((editLegs[0]?.departureDate || order.startDate) as string, language)
: '—'}
</span>
</div>
{(() => {
const parsedRange = parseTravelDateRange(
order.travelDateText,
(editLegs[0]?.departureDate || order.startDate) as string | null
)
return (
<div>
<span className="text-muted-foreground text-xs block">
{parsedRange.endIso
? t('customTrip.approxTravelRange')
: t('customTrip.tripStartDate')}:
</span>
<span className="font-mono font-bold text-primary">
{parsedRange.startIso && parsedRange.endIso
? formatDateRangeByLanguage(parsedRange.startIso, parsedRange.endIso, language)
: (editLegs[0]?.departureDate || order.startDate)
? formatDualDate((editLegs[0]?.departureDate || order.startDate) as string, language)
: '—'}
</span>
</div>
)
})()}
</div>
{/* Origin City Selector */}

29
src/features/custom-trip/components/CustomTripOrdersTab.tsx

@ -15,7 +15,7 @@ import {
import { Ic } from '@/icons'
import { toFa } from '@/lib/utils'
import { useTranslation } from '@/i18n'
import { formatDateByLanguage } from '@/lib/date-utils'
import { formatDateByLanguage, formatDateRangeByLanguage, parseTravelDateRange } from '@/lib/date-utils'
import type {
CustomTripOrderItem,
CustomTripOrderStatus,
@ -392,15 +392,24 @@ export function CustomTripOrdersTab({
.join(' | ')}
</div>
)}
{(order.startDate || order.legs?.[0]?.departureDate) && (
<div className="text-[11px] text-primary font-mono font-medium mt-1 flex items-center gap-1">
<Ic name="calendar" className="size-3 shrink-0" />
<span>
{t('customTrip.tripStartDate')}:{' '}
{formatDateByLanguage((order.startDate || order.legs?.[0]?.departureDate) as string, language)}
</span>
</div>
)}
{(order.startDate || order.legs?.[0]?.departureDate || order.travelDateText) && (() => {
const parsedRange = parseTravelDateRange(
order.travelDateText,
(order.startDate || order.legs?.[0]?.departureDate) as string | null
)
const fallbackDate = (order.startDate || order.legs?.[0]?.departureDate) as string | undefined
if (!parsedRange.startIso && !fallbackDate) return null
return (
<div className="text-[11px] text-primary font-mono font-medium mt-1 flex items-center gap-1">
<Ic name="calendar" className="size-3 shrink-0" />
<span>
{parsedRange.endIso
? `${t('customTrip.approxTravelRange')}: ${formatDateRangeByLanguage(parsedRange.startIso, parsedRange.endIso, language)}`
: `${t('customTrip.tripStartDate')}: ${formatDateByLanguage(fallbackDate || parsedRange.startIso, language)}`}
</span>
</div>
)
})()}
</TableCell>
<TableCell className="px-4 py-3.5 text-center">
<span className="inline-flex items-center gap-1.5 text-xs font-medium px-2.5 py-1 rounded-xl bg-card border border-border/70 text-foreground">

218
src/features/services/components/DuasServiceView.tsx

@ -1,4 +1,5 @@
import React, { useState, useEffect, useMemo } from 'react'
import { useTranslation } from '@/i18n'
import { Ic } from '@/icons'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
@ -60,6 +61,7 @@ function normalizeCityName(rawName: string): string {
}
export function DuasServiceView() {
const { t } = useTranslation()
const [duas, setDuas] = useState<DuaItem[]>([])
const [isLoading, setIsLoading] = useState(true)
const [isRefreshing, setIsRefreshing] = useState(false)
@ -95,6 +97,14 @@ export function DuasServiceView() {
const [formNameEn, setFormNameEn] = useState('')
const [formNameRu, setFormNameRu] = useState('')
const [formNameId, setFormNameId] = useState('')
const [formDescriptions, setFormDescriptions] = useState<Record<'fa' | 'ar' | 'en' | 'ru' | 'id', string>>({
fa: '',
ar: '',
en: '',
ru: '',
id: '',
})
const [activeDescLang, setActiveDescLang] = useState<'fa' | 'ar' | 'en' | 'ru' | 'id'>('fa')
const [formCityIds, setFormCityIds] = useState<number[]>([])
// نگهداری دسته‌بندی‌های انتخاب‌شده به تفکیک هر شهر (cityId -> categoryIds[]) جهت استقلال کامل هر شهر
const [cityCategoryMap, setCityCategoryMap] = useState<Record<number, number[]>>({})
@ -125,8 +135,19 @@ export function DuasServiceView() {
// Tab 2 Verses states
const [verseSearch, setVerseSearch] = useState('')
const [activeTranslationLang, setActiveTranslationLang] = useState<'fa' | 'en' | 'ru' | 'id'>('fa')
const [activeVerseDescLang, setActiveVerseDescLang] = useState<'fa' | 'ar' | 'en' | 'ru' | 'id'>('fa')
const [copiedVerseIndex, setCopiedVerseIndex] = useState<number | null>(null)
const [verseDrafts, setVerseDrafts] = useState<Record<number, { text: string; translations: Record<string, string> }>>({})
const [verseDrafts, setVerseDrafts] = useState<
Record<
number,
{
text: string
translations: Record<string, string>
descriptions: Record<string, string>
repeat_count: number | null
}
>
>({})
const [savingVerseIndex, setSavingVerseIndex] = useState<number | null>(null)
const [savedVerseSuccessIndex, setSavedVerseSuccessIndex] = useState<number | null>(null)
@ -352,6 +373,14 @@ export function DuasServiceView() {
setFormNameEn(enVal)
setFormNameRu(ruVal)
setFormNameId(idVal)
const initDesc = (dua.description && typeof dua.description === 'object') ? dua.description : {}
setFormDescriptions({
fa: initDesc.fa || '',
ar: initDesc.ar || '',
en: initDesc.en || '',
ru: initDesc.ru || '',
id: initDesc.id || '',
})
setHasAttemptedSaveGeneral(false)
// Cities: فقط شهرهای معتبر که در سامانه دسته‌بندی دارند به صورت اولیه انتخاب شوند
@ -405,12 +434,37 @@ export function DuasServiceView() {
const detail = await fetchDuaDetail(dua.index)
setDuaDetail(detail)
const detDesc = (detail.description && typeof detail.description === 'object') ? detail.description : {}
setFormDescriptions({
fa: detDesc.fa || '',
ar: detDesc.ar || '',
en: detDesc.en || '',
ru: detDesc.ru || '',
id: detDesc.id || '',
})
// Initialize verse drafts
const drafts: Record<number, { text: string; translations: Record<string, string> }> = {}
const drafts: Record<
number,
{
text: string
translations: Record<string, string>
descriptions: Record<string, string>
repeat_count: number | null
}
> = {}
detail.verses?.forEach((v) => {
drafts[v.index] = {
text: v.text,
translations: { ...(v.translations || {}) },
descriptions: {
fa: v.descriptions?.fa || '',
ar: v.descriptions?.ar || '',
en: v.descriptions?.en || '',
ru: v.descriptions?.ru || '',
id: v.descriptions?.id || '',
},
repeat_count: v.repeat_count ?? null,
}
})
setVerseDrafts(drafts)
@ -617,8 +671,15 @@ export function DuasServiceView() {
])
)
const descriptionObj: Record<string, string> = {}
;(['fa', 'ar', 'en', 'ru', 'id'] as const).forEach((l) => {
const val = (formDescriptions[l] || '').trim()
if (val) descriptionObj[l] = val
})
const updated = await updateDua(selectedDuaForModal.index, {
name: nameObj,
description: descriptionObj,
city_ids: activeCityIds,
category_ids: allActiveCategoryIds,
city_allocations: cityAllocations,
@ -636,6 +697,7 @@ export function DuasServiceView() {
...d,
name: updated.name,
name_display: updated.name_display || formNameFa || formNameAr,
description: updated.description || descriptionObj,
cities: updated.cities,
city_ids: Array.isArray(updated.city_ids) ? updated.city_ids : activeCityIds,
categories: updated.categories,
@ -647,7 +709,7 @@ export function DuasServiceView() {
)
// بستن مدال پس از ذخیره‌سازی موفقیت‌آمیز
setSelectedDuaForModal(null)
toast.success('اطلاعات عمومی دعا با موفقیت در دیتابیس ذخیره شد.')
toast.success(t('duasAdmin.saveGeneralSuccess'))
// تازه‌سازی خودکار داده‌های صفحه از سرور
await loadDuas(true)
@ -667,9 +729,11 @@ export function DuasServiceView() {
await updateVerse(verseIndex, {
text: draft.text,
translations: draft.translations,
descriptions: draft.descriptions,
repeat_count: draft.repeat_count && draft.repeat_count > 0 ? draft.repeat_count : null,
})
setSavedVerseSuccessIndex(verseIndex)
toast.success(`فراز با موفقیت در دیتابیس ذخیره شد.`)
toast.success(t('duasAdmin.saveVerseSuccess'))
setTimeout(() => setSavedVerseSuccessIndex(null), 2500)
} catch (err: any) {
toast.error(err?.message || 'خطا در ذخیره‌سازی فراز در سرور.')
@ -1455,6 +1519,50 @@ export function DuasServiceView() {
</div>
</div>
{/* ۱.۵. توضیحات و فضیلت مفاتیح‌الجنان (۵ زبانه) */}
<div className="rounded-2xl border border-border-soft bg-card/50 p-4 space-y-3">
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2">
<div>
<span className="text-xs font-bold text-foreground flex items-center gap-1.5">
<Ic name="book" className="size-3.5 text-primary" />
<span>{t('duasAdmin.mafatihIntroTitle')}</span>
</span>
<span className="text-[11px] text-muted-foreground block mt-0.5">
{t('duasAdmin.mafatihIntroHint')}
</span>
</div>
<div className="flex items-center gap-1 flex-wrap shrink-0">
{(['fa', 'ar', 'en', 'ru', 'id'] as const).map((lang) => (
<button
key={lang}
type="button"
onClick={() => setActiveDescLang(lang)}
className={`text-[11px] px-2.5 py-1 rounded-lg font-mono font-bold transition cursor-pointer ${
activeDescLang === lang
? 'bg-primary text-primary-foreground shadow-xs'
: 'bg-card text-muted-foreground hover:text-foreground border border-border-soft'
}`}
>
{lang.toUpperCase()}
</button>
))}
</div>
</div>
<textarea
value={formDescriptions[activeDescLang] || ''}
onChange={(e) =>
setFormDescriptions((prev) => ({
...prev,
[activeDescLang]: e.target.value,
}))
}
dir={activeDescLang === 'fa' || activeDescLang === 'ar' ? 'rtl' : 'ltr'}
rows={4}
placeholder={t('duasAdmin.mafatihIntroPlaceholder')}
className="w-full p-3 rounded-xl bg-card border border-border-soft text-xs text-foreground leading-relaxed focus:outline-hidden focus:ring-1 focus:ring-primary resize-y"
/>
</div>
{/* ۲. انتساب شهر و دسته‌بندی‌ها (انتخاب‌گونه و خاموش/روشن) */}
<div className="space-y-3 pt-2.5 border-t border-border-soft/70">
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2">
@ -1889,8 +1997,17 @@ export function DuasServiceView() {
const draft = verseDrafts[verse.index] || {
text: verse.text,
translations: { ...(verse.translations || {}) },
descriptions: {
fa: verse.descriptions?.fa || '',
ar: verse.descriptions?.ar || '',
en: verse.descriptions?.en || '',
ru: verse.descriptions?.ru || '',
id: verse.descriptions?.id || '',
},
repeat_count: verse.repeat_count ?? null,
}
const activeTranslation = draft.translations?.[activeTranslationLang] || ''
const activeVerseDesc = draft.descriptions?.[activeVerseDescLang] || ''
const isSavingThis = savingVerseIndex === verse.index
const isSavedSuccess = savedVerseSuccessIndex === verse.index
@ -1900,10 +2017,17 @@ export function DuasServiceView() {
className="p-4 rounded-2xl border border-border-soft bg-card/30 space-y-3 hover:border-primary/30 transition shadow-2xs"
>
{/* هدر فراز */}
<div className="flex items-center justify-between">
<span className="text-[11px] font-mono font-bold text-primary">
فراز {toFa(index + 1)} از {toFa(duaDetail?.verses?.length || 0)} (کد: #{verse.index})
</span>
<div className="flex flex-wrap items-center justify-between gap-2">
<div className="flex items-center gap-2">
<span className="text-[11px] font-mono font-bold text-primary">
فراز {toFa(index + 1)} از {toFa(duaDetail?.verses?.length || 0)} (کد: #{verse.index})
</span>
{draft.repeat_count && draft.repeat_count > 1 ? (
<Badge variant="outline" className="text-[10px] font-mono px-2 py-0 border-primary/30 text-primary bg-primary/5">
×{draft.repeat_count} {t('duasAdmin.repeatCountSuffix')}
</Badge>
) : null}
</div>
<div className="flex items-center gap-1.5">
<Button
variant="ghost"
@ -1938,6 +2062,77 @@ export function DuasServiceView() {
</div>
</div>
{/* بخش توضیحات بین‌فرازی مفاتیح (۵ زبانه شامل عربی) و شمارنده تکرار */}
<div className="p-3 rounded-xl border border-border-soft bg-muted/20 space-y-2">
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2">
<label className="text-[11px] font-bold text-foreground">
{t('duasAdmin.verseDescLabel')} ({activeVerseDescLang.toUpperCase()}):
</label>
<div className="flex items-center gap-2 flex-wrap">
<div className="flex items-center gap-1">
{(['fa', 'ar', 'en', 'ru', 'id'] as const).map((lang) => (
<button
key={lang}
type="button"
onClick={() => setActiveVerseDescLang(lang)}
className={`text-[10px] px-2 py-0.5 rounded-md font-mono font-bold transition cursor-pointer ${
activeVerseDescLang === lang
? 'bg-primary text-primary-foreground'
: 'bg-card text-muted-foreground hover:text-foreground border border-border-soft'
}`}
>
{lang.toUpperCase()}
</button>
))}
</div>
<div className="flex items-center gap-1.5">
<span className="text-[10px] text-muted-foreground font-medium">
{t('duasAdmin.repeatCountLabel')}:
</span>
<Input
type="number"
min={0}
value={draft.repeat_count ?? ''}
onChange={(e) => {
const raw = e.target.value.trim()
const parsed = raw === '' ? null : Math.max(0, parseInt(raw, 10) || 0)
setVerseDrafts((prev) => ({
...prev,
[verse.index]: {
...draft,
repeat_count: parsed && parsed > 0 ? parsed : null,
},
}))
}}
placeholder={t('duasAdmin.repeatCountPlaceholder')}
className="w-24 h-7 text-xs font-mono bg-card border-border-soft rounded-lg text-center"
dir="ltr"
/>
</div>
</div>
</div>
<textarea
value={activeVerseDesc}
onChange={(e) => {
const newDesc = e.target.value
setVerseDrafts((prev) => ({
...prev,
[verse.index]: {
...draft,
descriptions: {
...(draft.descriptions || {}),
[activeVerseDescLang]: newDesc,
},
},
}))
}}
dir={activeVerseDescLang === 'fa' || activeVerseDescLang === 'ar' ? 'rtl' : 'ltr'}
rows={2}
placeholder={t('duasAdmin.verseDescPlaceholder')}
className="w-full p-2.5 rounded-xl bg-card border border-border-soft text-xs text-foreground leading-relaxed focus:outline-hidden focus:ring-1 focus:ring-primary resize-y"
/>
</div>
{/* فیلد ادیت متن اصلی عربی */}
<div className="space-y-1">
<label className="block text-[11px] font-bold text-foreground">
@ -1950,9 +2145,8 @@ export function DuasServiceView() {
setVerseDrafts((prev) => ({
...prev,
[verse.index]: {
...prev[verse.index],
...draft,
text: newText,
translations: prev[verse.index]?.translations || {},
},
}))
}}
@ -1974,9 +2168,9 @@ export function DuasServiceView() {
setVerseDrafts((prev) => ({
...prev,
[verse.index]: {
text: prev[verse.index]?.text || verse.text,
...draft,
translations: {
...(prev[verse.index]?.translations || {}),
...(draft.translations || {}),
[activeTranslationLang]: newTr,
},
},

8
src/features/services/services/trip-etiquette-api.ts

@ -246,6 +246,7 @@ export async function createDua(input: CreateDuaInput): Promise<DuaItem> {
method: 'POST',
body: {
name: input.name,
description: input.description,
category_ids: input.category_ids,
shrine_ids: input.shrine_ids,
is_active: input.is_active,
@ -308,7 +309,12 @@ export async function deleteDua(index: number): Promise<void> {
*/
export async function updateVerse(
index: number,
input: { text?: string; translations?: Record<string, string> }
input: {
text?: string
translations?: Record<string, string>
descriptions?: Record<string, string>
repeat_count?: number | null
}
): Promise<VerseItem> {
return apiFetch<VerseItem>(`trip-etiquette/verses/${index}/`, {
method: 'PATCH',

12
src/features/services/types/trip-etiquette.ts

@ -68,6 +68,7 @@ export interface DuaItem {
index: number
name: Record<string, string> | any
name_display: string
description?: Record<string, string>
categories?: Array<{
id: number
name: string
@ -104,6 +105,15 @@ export interface VerseItem {
sub_ritual: number
text: string
juz: number
repeat_count?: number | null
descriptions?: {
fa?: string
ar?: string
en?: string
ru?: string
id?: string
[key: string]: string | undefined
}
translations: {
fa: string
en: string
@ -129,6 +139,7 @@ export interface CreateShrineInput {
export interface CreateDuaInput {
name: Record<string, string> | Array<{ language_code: string; name: string }>
description?: Record<string, string>
category_ids?: number[]
shrine_ids?: number[]
city_ids?: number[]
@ -142,6 +153,7 @@ export interface CityAllocationInput {
export interface UpdateDuaInput {
name?: Record<string, string> | Array<{ language_code: string; name: string }>
description?: Record<string, string>
category_ids?: number[]
shrine_ids?: number[]
city_ids?: number[]

24
src/lib/date-utils.ts

@ -94,6 +94,30 @@ export function formatDateRangeByLanguage(
return `${startFormatted} – ${endFormatted}`
}
/**
* استخراج بازه حرکت و برگشت حدودی از رشته ISO Range (`YYYY-MM-DD..YYYY-MM-DD`)
*/
export function parseTravelDateRange(
rawText?: string | null,
fallbackStartIso?: string | null
): { startIso: string | null; endIso: string | null } {
const text = String(rawText || '').trim()
const rangeMatch = text.match(
/^(\d{4}-\d{2}-\d{2})\s*(?:\.\.|to|->|—|–)\s*(\d{4}-\d{2}-\d{2})$/
)
if (rangeMatch) {
return { startIso: rangeMatch[1], endIso: rangeMatch[2] }
}
if (/^\d{4}-\d{2}-\d{2}$/.test(text)) {
return { startIso: text, endIso: null }
}
const fb = String(fallbackStartIso || '').trim()
if (/^\d{4}-\d{2}-\d{2}$/.test(fb)) {
return { startIso: fb, endIso: null }
}
return { startIso: null, endIso: null }
}
/**
* قالب‌بندی تاریخ (دوگانه میلادی و قمری با نام ماه) و ساعت به صورت همزمان
*/

19
src/locales/ar.json

@ -965,12 +965,19 @@
"viewInBilling": "عرض في القسم المالي",
"nightsCountLabel": "عدد ليالي الإقامة",
"tripStartDate": "تاريخ بدء الرحلة",
"quickDateThisMonth": "هذا الشهر",
"quickDateNextMonth": "الشهر القادم",
"quickDateArbaeen": "موسم زيارة الأربعين",
"quickDateArafah": "موسم عرفة وعيد الأضحى",
"quickDateShaban": "موسم النصف من شعبان",
"quickDateUndecided": "لم أحدد التاريخ بعد (مرن)"
"approxTravelRange": "الفترة التقريبية للمغادرة والعودة"
},
"duasAdmin": {
"mafatihIntroTitle": "شرح وفضيلة الدعاء من مفاتيح الجنان (متعدد اللغات)",
"mafatihIntroHint": "المقدمة والفضيلة والآداب العامة للدعاء باللغات الخمس المعتمدة (تظهر في أعلى الصفحة في التطبيق)",
"mafatihIntroPlaceholder": "أدخل نص الشرح والفضيلة باللغة المحددة...",
"verseDescLabel": "توضيح وإرشاد الفقرة من المفاتيح",
"verseDescPlaceholder": "مثال: ثم تصلّي ركعتي الزيارة أو تقول عشر مرّات...",
"repeatCountLabel": "عدد التكرار (العداد)",
"repeatCountPlaceholder": "مثال: 10 أو 100",
"repeatCountSuffix": "مرّات",
"saveGeneralSuccess": "تم حفظ المعلومات العامة وشرح الدعاء بنجاح.",
"saveVerseSuccess": "تم حفظ الفقرة والشرح وعدد التكرار بنجاح."
},
"languages": {
"fa": "فارسی",

19
src/locales/en.json

@ -965,12 +965,19 @@
"viewInBilling": "View in Billing",
"nightsCountLabel": "Stay Nights",
"tripStartDate": "Trip Start Date",
"quickDateThisMonth": "This Month",
"quickDateNextMonth": "Next Month",
"quickDateArbaeen": "Arbaeen Pilgrimage Season",
"quickDateArafah": "Arafah & Eid al-Adha",
"quickDateShaban": "Nisfu Shaban Season",
"quickDateUndecided": "Date Not Decided Yet (Flexible)"
"approxTravelRange": "Approx. Departure & Return Range"
},
"duasAdmin": {
"mafatihIntroTitle": "Mafatih al-Jinan Introduction & Virtues (Multilingual)",
"mafatihIntroHint": "General introduction, virtues, and etiquette in all 5 languages (shown in the collapsible top banner in the app)",
"mafatihIntroPlaceholder": "Enter the introduction and virtues in the selected language...",
"verseDescLabel": "Mid-Dua Mafatih Instruction / Etiquette",
"verseDescPlaceholder": "e.g. Then recite ten times or perform two Rak'ahs of Ziyarat prayer...",
"repeatCountLabel": "Repeat Count (Dhikr Counter)",
"repeatCountPlaceholder": "e.g. 10 or 100",
"repeatCountSuffix": "times",
"saveGeneralSuccess": "Dua general info and descriptions saved successfully.",
"saveVerseSuccess": "Phrase, instructions, and repeat count saved successfully."
},
"languages": {
"fa": "فارسی",

19
src/locales/fa.json

@ -965,12 +965,19 @@
"viewInBilling": "مشاهده در بخش مالی",
"nightsCountLabel": "تعداد شب اقامت",
"tripStartDate": "تاریخ شروع سفر",
"quickDateThisMonth": "همین ماه",
"quickDateNextMonth": "ماه آینده",
"quickDateArbaeen": "ایام اربعین حسینی",
"quickDateArafah": "ایام عرفه و عید قربان",
"quickDateShaban": "ایام نیمه شعبان",
"quickDateUndecided": "هنوز مشخص نکرده‌ام (انعطاف‌پذیر)"
"approxTravelRange": "بازه حدودی حرکت و برگشت"
},
"duasAdmin": {
"mafatihIntroTitle": "توضیحات و فضیلت مفاتیح‌الجنان (چندزبانه)",
"mafatihIntroHint": "مقدمه، فضیلت و آداب کلی دعا در ۵ زبان رسمی (نمایش در کادر بالای صفحه در اپلیکیشن)",
"mafatihIntroPlaceholder": "متن توضیحات و فضیلت دعا را در زبان انتخاب‌شده وارد کنید...",
"verseDescLabel": "توضیح و دستورالعمل بین‌فرازی مفاتیح",
"verseDescPlaceholder": "مثال: سپس دو رکعت نماز زیارت می‌خوانی یا ده مرتبه می‌گویی...",
"repeatCountLabel": "تعداد تکرار (ذکرشمار)",
"repeatCountPlaceholder": "مثلاً ۱۰ یا ۱۰۰",
"repeatCountSuffix": "مرتبه",
"saveGeneralSuccess": "اطلاعات عمومی و توضیحات دعا با موفقیت ذخیره شد.",
"saveVerseSuccess": "فراز، توضیحات و تعداد تکرار با موفقیت ذخیره شد."
},
"languages": {
"fa": "فارسی",

Loading…
Cancel
Save