diff --git a/public/locales/en.json b/public/locales/en.json index 13aef6fa4b..11c8d2fb97 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -267,7 +267,16 @@ "enterDescrip": "Enter Description", "eventLocation": "Enter Location", "eventCreated": "Congratulations! The Event is created.", - "talawaApiUnavailable": "Talawa-API service is unavailable. Is it running? Check your network connectivity too." + "talawaApiUnavailable": "Talawa-API service is unavailable. Is it running? Check your network connectivity too.", + "customRecurrence": "Custom Recurrence", + "repeatsEvery": "Repeats Every", + "repeatsOn": "Repeats On", + "ends": "Ends", + "never": "Never", + "on": "On", + "after": "After", + "occurences": "occurences", + "done": "Done" }, "organizationActionItems": { "actionItemCategory": "Action Item Category", diff --git a/public/locales/fr.json b/public/locales/fr.json index 41d9d492de..a40d28dbe2 100644 --- a/public/locales/fr.json +++ b/public/locales/fr.json @@ -262,7 +262,16 @@ "enterDescrip": "Entrez la description", "eventLocation": "Entrez l'emplacement", "eventCreated": "Toutes nos félicitations! L'événement est créé.", - "talawaApiUnavailable": "Le service Talawa-API n'est pas disponible. Est-il en cours d'exécution ? Vérifiez également votre connectivité réseau." + "talawaApiUnavailable": "Le service Talawa-API n'est pas disponible. Est-il en cours d'exécution ? Vérifiez également votre connectivité réseau.", + "customRecurrence": "Récurrence personnalisée", + "repeatsEvery": "Se répète tous les", + "repeatsOn": "Se répète sur", + "ends": "Finit", + "never": "Jamais", + "on": "Sur", + "after": "Après", + "occurences": "Occurrences", + "done": "Fait" }, "organizationActionItems": { "actionItemCategory": "Catégorie de l'élément d'action", diff --git a/public/locales/hi.json b/public/locales/hi.json index 71083cc563..dee3875b1a 100644 --- a/public/locales/hi.json +++ b/public/locales/hi.json @@ -262,7 +262,16 @@ "enterDescrip": "विवरण दर्ज करें", "eventLocation": "स्थान दर्ज करें", "eventCreated": "बधाई हो! इवेंट बनाया गया है।", - "talawaApiUnavailable": "तलवा-एपीआई सेवा उपलब्ध नहीं है। क्या यह चल रहा है? अपनी नेटवर्क कनेक्टिविटी भी जांचें।" + "talawaApiUnavailable": "तलवा-एपीआई सेवा उपलब्ध नहीं है। क्या यह चल रहा है? अपनी नेटवर्क कनेक्टिविटी भी जांचें।", + "customRecurrence": "कस्टम पुनरावृत्ति", + "repeatsEvery": "दोहराता है हर", + "repeatsOn": "को दोहराएगा", + "ends": "समाप्त होता", + "never": "कभी नहीं", + "on": "पर", + "after": "के बाद", + "occurences": "'घटित होता है", + "done": "समाज-सम्मत" }, "organizationActionItems": { "actionItemCategory": "कार्य आइटम श्रेणी", diff --git a/public/locales/sp.json b/public/locales/sp.json index cc961909e6..bc00915159 100644 --- a/public/locales/sp.json +++ b/public/locales/sp.json @@ -262,7 +262,16 @@ "enterDescrip": "Introduce la descripción", "eventLocation": "Introducir ubicación", "eventCreated": "¡Felicidades! Se crea el Evento.", - "talawaApiUnavailable": "El servicio Talawa-API no está disponible. ¿Está funcionando? Compruebe también la conectividad de su red." + "talawaApiUnavailable": "El servicio Talawa-API no está disponible. ¿Está funcionando? Compruebe también la conectividad de su red.", + "customRecurrence": "Recurrencia personalizada", + "repeatsEvery": "Se repite cada", + "repeatsOn": "Se repite en", + "ends": "Finaliza", + "never": "Nunca", + "on": "En", + "after": "Después de", + "occurences": "ocurrencias", + "done": "Hecho" }, "organizationActionItems": { "actionItemCategory": "Categoría del ítem de acción", diff --git a/public/locales/zh.json b/public/locales/zh.json index 22754f807d..6feafffdc2 100644 --- a/public/locales/zh.json +++ b/public/locales/zh.json @@ -312,7 +312,16 @@ "enterDescrip": "輸入說明", "eventLocation": "輸入位置", "eventCreated": "恭喜!事件已創建。", - "talawaApiUnavailable": "服務不可用。它在運行嗎?還要檢查您的網絡連接。" + "talawaApiUnavailable": "服務不可用。它在運行嗎?還要檢查您的網絡連接。", + "customRecurrence": "自定义重复", + "repeatsEvery": "重复每", + "repeatsOn": "重复于", + "ends": "结束", + "never": "永不", + "on": "于", + "after": "之后", + "occurences": "次数", + "done": "完成" }, "organizationActionItems": { "actionItemCategory": "行动项目类别", diff --git a/src/screens/OrganizationEvents/customRecurrenceModal.tsx b/src/screens/OrganizationEvents/customRecurrenceModal.tsx index 46eae17a97..4dbfa03f58 100644 --- a/src/screens/OrganizationEvents/customRecurrenceModal.tsx +++ b/src/screens/OrganizationEvents/customRecurrenceModal.tsx @@ -11,7 +11,7 @@ import type { Dayjs } from 'dayjs'; import dayjs from 'dayjs'; const daysOptions = ['S', 'M', 'T', 'W', 'T', 'F', 'S']; -const endsOnOptions = ['Never', 'On', 'After']; +const endsOnOptions = ['never', 'on', 'after']; interface InterfaceCustomRecurrenceModalProps { recurrenceRuleState: InterfaceRecurrenceRule; @@ -39,31 +39,31 @@ const CustomRecurrenceModal: React.FC = ({ t, }) => { const { frequency, weekDays } = recurrenceRuleState; - const [endsOnOption, setEndsOnOption] = useState('Never'); + const [endsOnOption, setEndsOnOption] = useState('never'); useEffect(() => { if (endDate) { - setEndsOnOption('On'); + setEndsOnOption('on'); } }, [endDate]); const handleOptionChange = (e: React.ChangeEvent): void => { const endsOnOption = e.target.value; setEndsOnOption(endsOnOption); - if (endsOnOption === 'Never') { + if (endsOnOption === 'never') { setEndDate(null); setRecurrenceRuleState({ ...recurrenceRuleState, count: undefined, }); } - if (endsOnOption === 'On') { + if (endsOnOption === 'on') { setRecurrenceRuleState({ ...recurrenceRuleState, count: undefined, }); } - if (endsOnOption === 'After') { + if (endsOnOption === 'after') { setEndDate(null); } }; @@ -94,7 +94,7 @@ const CustomRecurrenceModal: React.FC = ({ centered > -

Custom recurrence

+

{t('customRecurrence')}