From a47ad17a1ab67121fd68045814530040cc31907f Mon Sep 17 00:00:00 2001 From: "Muhammad A. Ghorbani" Date: Thu, 3 Sep 2026 12:11:43 +0330 Subject: [PATCH] feat: add localized language files and implement question progress tracker component --- src/components/Componentes/question-progress-tracker.tsx | 6 +++++- src/translations/locales/ar.json | 2 +- src/translations/locales/az.json | 2 +- src/translations/locales/bn.json | 2 +- src/translations/locales/da.json | 2 +- src/translations/locales/de.json | 2 +- src/translations/locales/en.json | 2 +- src/translations/locales/es.json | 2 +- src/translations/locales/fa.json | 2 +- src/translations/locales/fr.json | 2 +- src/translations/locales/gu.json | 2 +- src/translations/locales/ha.json | 2 +- src/translations/locales/he.json | 2 +- src/translations/locales/hi.json | 2 +- src/translations/locales/id.json | 2 +- src/translations/locales/ks.json | 2 +- src/translations/locales/pt.json | 2 +- src/translations/locales/ru.json | 2 +- src/translations/locales/sw.json | 2 +- src/translations/locales/tg.json | 2 +- src/translations/locales/tr.json | 2 +- src/translations/locales/ul.json | 2 +- src/translations/locales/ur.json | 2 +- src/translations/locales/uz.json | 2 +- src/translations/locales/zh.json | 2 +- 25 files changed, 29 insertions(+), 25 deletions(-) diff --git a/src/components/Componentes/question-progress-tracker.tsx b/src/components/Componentes/question-progress-tracker.tsx index 10eab48..55ef100 100644 --- a/src/components/Componentes/question-progress-tracker.tsx +++ b/src/components/Componentes/question-progress-tracker.tsx @@ -186,7 +186,11 @@ export function QuestionProgressTracker({ className="w-full bg-[#F7F1F0]" >
- {t["fields to complete"] || "fields to complete"} + + {t["Completed fields"] || + t["fields to complete"] || + "Completed fields"} + {answered} /{safeTotal} diff --git a/src/translations/locales/ar.json b/src/translations/locales/ar.json index 36d295e..42b1219 100644 --- a/src/translations/locales/ar.json +++ b/src/translations/locales/ar.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "يرجى إدخال عنوان بريد إلكتروني صالح.", " (approximately)": " (تقريباً)", " (Years)": " (سنوات)", - "fields to complete": "حقول متبقية للإكمال", + "fields to complete": "الحقول المكتملة", "Close": "إغلاق", "close": "إغلاق", "Dropdown chevron": "سهم القائمة المنسدلة", diff --git a/src/translations/locales/az.json b/src/translations/locales/az.json index b273d4f..d20b019 100644 --- a/src/translations/locales/az.json +++ b/src/translations/locales/az.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "Zəhmət olmasa düzgün e-poçt ünvanı daxil edin.", " (approximately)": " (təxminən)", " (Years)": " (il)", - "fields to complete": "doldurulmalı sahələr", + "fields to complete": "Tamamlanmış sahələr", "Close": "Bağlayın", "close": "bağlayın", "Dropdown chevron": "Açılan menyu oxu", diff --git a/src/translations/locales/bn.json b/src/translations/locales/bn.json index 424f07e..2f0cba3 100644 --- a/src/translations/locales/bn.json +++ b/src/translations/locales/bn.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "অনুগ্রহ করে একটি বৈধ ইমেল ঠিকানা লিখুন।", " (approximately)": " (আনুমানিক)", " (Years)": " (বছর)", - "fields to complete": "পূরণ করার বাকি ক্ষেত্র", + "fields to complete": "সম্পন্ন ক্ষেত্র", "Close": "বন্ধ করুন", "close": "বন্ধ করুন", "Dropdown chevron": "ড্রপডাউন তীরচিহ্ন", diff --git a/src/translations/locales/da.json b/src/translations/locales/da.json index ca87a7b..0f166c3 100644 --- a/src/translations/locales/da.json +++ b/src/translations/locales/da.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "Indtast en gyldig e-mailadresse.", " (approximately)": " (omtrent)", " (Years)": " (år)", - "fields to complete": "felter tilbage at udfylde", + "fields to complete": "Udfyldte felter", "Close": "Luk", "close": "luk", "Dropdown chevron": "Rullemenu-pil", diff --git a/src/translations/locales/de.json b/src/translations/locales/de.json index c4db7ad..c68502d 100644 --- a/src/translations/locales/de.json +++ b/src/translations/locales/de.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "Bitte geben Sie eine gültige E-Mail-Adresse ein.", " (approximately)": " (ungefähr)", " (Years)": " (Jahre)", - "fields to complete": "auszufüllende Felder", + "fields to complete": "Ausgefüllte Felder", "Close": "Schließen", "close": "schließen", "Dropdown chevron": "Dropdown-Pfeil", diff --git a/src/translations/locales/en.json b/src/translations/locales/en.json index 708ca99..f8551af 100644 --- a/src/translations/locales/en.json +++ b/src/translations/locales/en.json @@ -884,7 +884,7 @@ "Enter a valid email address.": "Please enter a valid email address.", " (approximately)": " (approximately)", " (Years)": " (Years)", - "fields to complete": "fields to complete", + "fields to complete": "Completed fields", "Close": "Close", "close": "Close", "Dropdown chevron": "Dropdown chevron", diff --git a/src/translations/locales/es.json b/src/translations/locales/es.json index 50fefcd..16d6a83 100644 --- a/src/translations/locales/es.json +++ b/src/translations/locales/es.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "Por favor, introduce una dirección de correo electrónico válida.", " (approximately)": " (aproximadamente)", " (Years)": " (años)", - "fields to complete": "campos por completar", + "fields to complete": "Campos completados", "Close": "Cerrar", "close": "cerrar", "Dropdown chevron": "Flecha de menú desplegable", diff --git a/src/translations/locales/fa.json b/src/translations/locales/fa.json index 660d786..d5d2602 100644 --- a/src/translations/locales/fa.json +++ b/src/translations/locales/fa.json @@ -894,7 +894,7 @@ "Enter a valid email address.": "یک آدرس ایمیل معتبر وارد کنید.", " (approximately)": " (تقریبی)", " (Years)": " (سال)", - "fields to complete": "مورد باقی‌مانده", + "fields to complete": "فیلدهای تکمیل‌شده", "Close": "بستن", "close": "بستن", "Dropdown chevron": "فلش منوی بازشو", diff --git a/src/translations/locales/fr.json b/src/translations/locales/fr.json index ff3e511..dc74080 100644 --- a/src/translations/locales/fr.json +++ b/src/translations/locales/fr.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "Veuillez saisir une adresse e-mail valide.", " (approximately)": " (environ)", " (Years)": " (ans)", - "fields to complete": "champs restants à remplir", + "fields to complete": "Champs complétés", "Close": "Fermer", "close": "fermer", "Dropdown chevron": "Flèche du menu déroulant", diff --git a/src/translations/locales/gu.json b/src/translations/locales/gu.json index 46ed31c..21f95e7 100644 --- a/src/translations/locales/gu.json +++ b/src/translations/locales/gu.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "માન્ય ઇમેઇલ સરનામું દાખલ કરો.", " (approximately)": " (આશરે)", " (Years)": " (વર્ષ)", - "fields to complete": "પૂર્ણ કરવાના બાકી ક્ષેત્રો", + "fields to complete": "પૂર્ણ થયેલ ક્ષેત્રો", "Close": "બંધ કરો", "close": "બંધ કરો", "Dropdown chevron": "ડ્રોપડાઉન એરો", diff --git a/src/translations/locales/ha.json b/src/translations/locales/ha.json index c63eede..5ec617d 100644 --- a/src/translations/locales/ha.json +++ b/src/translations/locales/ha.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "Shigar da ingantaccen adireshin imel.", " (approximately)": " (kusan)", " (Years)": " (Shekaru)", - "fields to complete": "fayilolin da za a cika", + "fields to complete": "Fayilolin da aka kammala", "Close": "Rufe", "close": "rufe", "Dropdown chevron": "Alamar sauka", diff --git a/src/translations/locales/he.json b/src/translations/locales/he.json index f292f43..8bf096d 100644 --- a/src/translations/locales/he.json +++ b/src/translations/locales/he.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "הזן/י כתובת דוא\"ל תקינה.", " (approximately)": " (בקירוב)", " (Years)": " (שנים)", - "fields to complete": "שדות להשלמה", + "fields to complete": "שדות שהושלמו", "Close": "סגירה", "close": "סגירה", "Dropdown chevron": "חץ נפתח", diff --git a/src/translations/locales/hi.json b/src/translations/locales/hi.json index 0209cb4..941c2a1 100644 --- a/src/translations/locales/hi.json +++ b/src/translations/locales/hi.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "एक मान्य ईमेल पता दर्ज करें।", " (approximately)": " (लगभग)", " (Years)": " (वर्ष)", - "fields to complete": "पूरे करने के लिए फ़ील्ड", + "fields to complete": "पूरे किए गए फ़ील्ड", "Close": "बंद करें", "close": "बंद करें", "Dropdown chevron": "ड्रॉपडाउन तीर", diff --git a/src/translations/locales/id.json b/src/translations/locales/id.json index 1516eca..370e62a 100644 --- a/src/translations/locales/id.json +++ b/src/translations/locales/id.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "Masukkan alamat email yang valid.", " (approximately)": " (kira-kira)", " (Years)": " (Tahun)", - "fields to complete": "bidang yang harus diselesaikan", + "fields to complete": "Bidang yang telah diisi", "Close": "Tutup", "close": "tutup", "Dropdown chevron": "Panah dropdown", diff --git a/src/translations/locales/ks.json b/src/translations/locales/ks.json index a1cfb80..4e08626 100644 --- a/src/translations/locales/ks.json +++ b/src/translations/locales/ks.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "اکھ صحیح ای میل پتہ درج کٔریو۔", " (approximately)": " (تقریباً)", " (Years)": " (وری)", - "fields to complete": "فیلڈز یم پرٕنؠ چھِ", + "fields to complete": "مکمل گٔمٕژ فیلڈز", "Close": "بند کٔریو", "close": "بند کٔریو", "Dropdown chevron": "ڈراپ ڈاؤن نشان", diff --git a/src/translations/locales/pt.json b/src/translations/locales/pt.json index f3c1e29..7bd1d1d 100644 --- a/src/translations/locales/pt.json +++ b/src/translations/locales/pt.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "Insira um endereço de e-mail válido.", " (approximately)": " (aproximadamente)", " (Years)": " (Anos)", - "fields to complete": "campos a preencher", + "fields to complete": "Campos preenchidos", "Close": "Fechar", "close": "fechar", "Dropdown chevron": "Seta de seleção", diff --git a/src/translations/locales/ru.json b/src/translations/locales/ru.json index 865f2e4..3ea3334 100644 --- a/src/translations/locales/ru.json +++ b/src/translations/locales/ru.json @@ -850,7 +850,7 @@ "Enter a valid email address.": "Пожалуйста, введите корректный адрес электронной почты.", " (approximately)": " (приблизительно)", " (Years)": " (лет)", - "fields to complete": "полей осталось заполнить", + "fields to complete": "Заполненные поля", "Close": "Закрыть", "close": "закрыть", "Dropdown chevron": "Стрелка выпадающего списка", diff --git a/src/translations/locales/sw.json b/src/translations/locales/sw.json index 185901a..2490936 100644 --- a/src/translations/locales/sw.json +++ b/src/translations/locales/sw.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "Weka anwani sahihi ya barua pepe.", " (approximately)": " (takriban)", " (Years)": " (Miaka)", - "fields to complete": "sehemu za kujaza", + "fields to complete": "Sehemu zilizokamilika", "Close": "Funga", "close": "funga", "Dropdown chevron": "Mshale wa orodha", diff --git a/src/translations/locales/tg.json b/src/translations/locales/tg.json index 885c745..4a7fc10 100644 --- a/src/translations/locales/tg.json +++ b/src/translations/locales/tg.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "Суроғаи дурусти почтаи электрониро ворид кунед.", " (approximately)": " (тақрибан)", " (Years)": " (Сол)", - "fields to complete": "майдонҳо барои пур кардан", + "fields to complete": "Майдонҳои пуршуда", "Close": "Пӯшидан", "close": "пӯшидан", "Dropdown chevron": "Аломати рӯйхат", diff --git a/src/translations/locales/tr.json b/src/translations/locales/tr.json index 553a724..2ad21d1 100644 --- a/src/translations/locales/tr.json +++ b/src/translations/locales/tr.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "Geçerli bir e-posta adresi girin.", " (approximately)": " (yaklaşık)", " (Years)": " (Yıl)", - "fields to complete": "doldurulması gereken alanlar", + "fields to complete": "Tamamlanan alanlar", "Close": "Kapat", "close": "kapat", "Dropdown chevron": "Açılır liste oku", diff --git a/src/translations/locales/ul.json b/src/translations/locales/ul.json index 5912d17..29d7465 100644 --- a/src/translations/locales/ul.json +++ b/src/translations/locales/ul.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "Durust email address darj karein.", " (approximately)": " (taqreeban)", " (Years)": " (Saal)", - "fields to complete": "pur karne ke liye khanay", + "fields to complete": "Mukammal shuda khanay", "Close": "Band Karein", "close": "band karein", "Dropdown chevron": "Dropdown teer", diff --git a/src/translations/locales/ur.json b/src/translations/locales/ur.json index 46ef189..94a2826 100644 --- a/src/translations/locales/ur.json +++ b/src/translations/locales/ur.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "درست ای میل ایڈریس درج کریں۔", " (approximately)": " (تقریباً)", " (Years)": " (سال)", - "fields to complete": "پر کرنے کے لیے خانے", + "fields to complete": "مکمل شدہ خانے", "Close": "بند کریں", "close": "بند کریں", "Dropdown chevron": "ڈراپ ڈاؤن تیر", diff --git a/src/translations/locales/uz.json b/src/translations/locales/uz.json index ae75377..508bba4 100644 --- a/src/translations/locales/uz.json +++ b/src/translations/locales/uz.json @@ -399,7 +399,7 @@ "Enter a valid email address.": "To'g'ri elektron pochta manzilini kiriting.", " (approximately)": " (taxminan)", " (Years)": " (Yil)", - "fields to complete": "to'ldirilishi kerak bo'lgan maydonlar", + "fields to complete": "To'ldirilgan maydonlar", "Close": "Yopish", "close": "yopish", "Dropdown chevron": "Ochiluvchi ro'yxat belgisi", diff --git a/src/translations/locales/zh.json b/src/translations/locales/zh.json index 2bac6b1..0694d0c 100644 --- a/src/translations/locales/zh.json +++ b/src/translations/locales/zh.json @@ -846,7 +846,7 @@ "Enter a valid email address.": "请输入有效的电子邮箱地址。", " (approximately)": "(大约)", " (Years)": "(年)", - "fields to complete": "项待填写字段", + "fields to complete": "已填写字段", "Close": "关闭", "close": "关闭", "Dropdown chevron": "下拉箭头",