Beautiful Open-Source Form Builder
Add missing form submission error and PDF download translations (#1311)
Michael Lip9d9270e686d3
diff --git a/client/i18n/lang/ar.json b/client/i18n/lang/ar.jsonindex 0ac67629b..d40de1217 100644--- a/client/i18n/lang/ar.json+++ b/client/i18n/lang/ar.json@@ -7,7 +7,8 @@"submit": "إرسال","next": "التالي","previous": "السابق",- "re_fill": "إرسال رد آخر"+ "re_fill": "إرسال رد آخر",+ "download_pdf": "تنزيل PDF"},"powered_by": "مشغل بواسطة","password_protected": "هذا النموذج محمي بكلمة مرور.",@@ -69,6 +70,7 @@},"validation_error": "خطأ في التحقق","validation_error_with_count": "خطأ في التحقق ({count} حقول)",+ "submission_error": "حدث خطأ أثناء إرسال النموذج. يرجى المحاولة مرة أخرى.","toggle": {"yes": "نعم","no": "لا"diff --git a/client/i18n/lang/bn.json b/client/i18n/lang/bn.jsonindex 00b092b5e..32c456cef 100644--- a/client/i18n/lang/bn.json+++ b/client/i18n/lang/bn.json@@ -7,7 +7,8 @@"submit": "জমা দিন","next": "পরবর্তী","previous": "পূর্ববর্তী",- "re_fill": "আরেকটি প্রতিক্রিয়া জমা দিন"+ "re_fill": "আরেকটি প্রতিক্রিয়া জমা দিন",+ "download_pdf": "PDF ডাউনলোড করুন"},"powered_by": "দ্বারা চালিত","password_protected": "এই ফর্মটি পাসওয়ার্ড দ্বারা সুরক্ষিত।",@@ -69,6 +70,7 @@},"validation_error": "যাচাইকরণ ত্রুটি","validation_error_with_count": "যাচাইকরণ ত্রুটি ({count}টি ক্ষেত্র)",+ "submission_error": "ফর্ম জমা দেওয়ার সময় একটি ত্রুটি ঘটেছে। অনুগ্রহ করে আবার চেষ্টা করুন।","toggle": {"yes": "হ্যাঁ","no": "না"diff --git a/client/i18n/lang/ca.json b/client/i18n/lang/ca.jsonindex 9a79a0771..429a64a97 100644--- a/client/i18n/lang/ca.json+++ b/client/i18n/lang/ca.json@@ -7,7 +7,8 @@"submit": "Enviar","next": "Següent","previous": "Anterior",- "re_fill": "Enviar una altra resposta"+ "re_fill": "Enviar una altra resposta",+ "download_pdf": "Descarrega el PDF"},"powered_by": "Desenvolupat per","password_protected": "Aquest formulari està protegit amb contrasenya.",@@ -69,6 +70,7 @@},"validation_error": "Error de validació","validation_error_with_count": "Error de validació ({count} camps)",+ "submission_error": "S'ha produït un error en enviar el formulari. Torneu-ho a provar.","toggle": {"yes": "Sí","no": "No"diff --git a/client/i18n/lang/cs.json b/client/i18n/lang/cs.jsonindex bffc8399d..9800c75e3 100644--- a/client/i18n/lang/cs.json+++ b/client/i18n/lang/cs.json@@ -7,7 +7,8 @@"submit": "Odeslat","next": "Další","previous": "Předchozí",- "re_fill": "Odeslat další odpověď"+ "re_fill": "Odeslat další odpověď",+ "download_pdf": "Stáhnout PDF"},"powered_by": "Vytvořeno pomocí","password_protected": "Tento formulář je chráněn heslem.",@@ -69,6 +70,7 @@},"validation_error": "Chyba ověření","validation_error_with_count": "Chyba ověření ({count} polí)",+ "submission_error": "Při odesílání formuláře došlo k chybě. Zkuste to prosím znovu.","toggle": {"yes": "Ano","no": "Ne"diff --git a/client/i18n/lang/de.json b/client/i18n/lang/de.jsonindex fc865c169..ac049cfb1 100644--- a/client/i18n/lang/de.json+++ b/client/i18n/lang/de.json@@ -7,7 +7,8 @@"submit": "Absenden","next": "Weiter","previous": "Zurück",- "re_fill": "Eine weitere Antwort senden"+ "re_fill": "Eine weitere Antwort senden",+ "download_pdf": "PDF herunterladen"},"powered_by": "Bereitgestellt von","password_protected": "Dieses Formular ist passwortgeschützt.",@@ -69,6 +70,7 @@},"validation_error": "Validierungsfehler","validation_error_with_count": "Validierungsfehler ({count} Felder)",+ "submission_error": "Beim Absenden des Formulars ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.","toggle": {"yes": "Ja","no": "Nein"diff --git a/client/i18n/lang/en.json b/client/i18n/lang/en.jsonindex 3400a2934..b30c872af 100644--- a/client/i18n/lang/en.json+++ b/client/i18n/lang/en.json@@ -7,7 +7,8 @@"submit": "Submit","next": "Next","previous": "Previous",- "re_fill": "Submit another response"+ "re_fill": "Submit another response",+ "download_pdf": "Download PDF"},"powered_by": "Powered by","password_protected": "This form is protected by a password.",@@ -69,6 +70,7 @@},"validation_error": "Validation Error","validation_error_with_count": "Validation Error ({count} fields)",+ "submission_error": "An error occurred while submitting the form. Please try again.","toggle": {"yes": "Yes","no": "No"diff --git a/client/i18n/lang/es.json b/client/i18n/lang/es.jsonindex 676a94719..b290d0a28 100644--- a/client/i18n/lang/es.json+++ b/client/i18n/lang/es.json@@ -7,7 +7,8 @@"submit": "Enviar","next": "Siguiente","previous": "Anterior",- "re_fill": "Enviar otra respuesta"+ "re_fill": "Enviar otra respuesta",+ "download_pdf": "Descargar PDF"},"powered_by": "Desarrollado por","password_protected": "Este formulario está protegido por contraseña.",@@ -69,6 +70,7 @@},"validation_error": "Error de validación","validation_error_with_count": "Error de validación ({count} campos)",+ "submission_error": "Se produjo un error al enviar el formulario. Inténtalo de nuevo.","toggle": {"yes": "Sí","no": "No"diff --git a/client/i18n/lang/eu.json b/client/i18n/lang/eu.jsonindex 1fabebcc5..0634ca79d 100644--- a/client/i18n/lang/eu.json+++ b/client/i18n/lang/eu.json@@ -7,7 +7,8 @@"submit": "Bidali","next": "Hurrengoa","previous": "Aurrekoa",- "re_fill": "Beste erantzun bat bidali"+ "re_fill": "Beste erantzun bat bidali",+ "download_pdf": "Deskargatu PDFa"},"powered_by": "Honek sortua","password_protected": "Inprimaki hau pasahitz bidez babestuta dago.",@@ -69,6 +70,7 @@},"validation_error": "Balidazio errorea","validation_error_with_count": "Balidazio errorea ({count} eremu)",+ "submission_error": "Errore bat gertatu da formularioa bidaltzean. Saiatu berriro.","toggle": {"yes": "Bai","no": "Ez"diff --git a/client/i18n/lang/fr.json b/client/i18n/lang/fr.jsonindex 0bc97217f..0f910af7e 100644--- a/client/i18n/lang/fr.json+++ b/client/i18n/lang/fr.json@@ -7,7 +7,8 @@"submit": "Envoyer","next": "Suivant","previous": "Précédent",- "re_fill": "Envoyer une autre réponse"+ "re_fill": "Envoyer une autre réponse",+ "download_pdf": "Télécharger le PDF"},"powered_by": "Développé par","password_protected": "Ce formulaire est protégé par un mot de passe.",@@ -69,6 +70,7 @@},"validation_error": "Erreur de validation","validation_error_with_count": "Erreur de validation ({count} champs)",+ "submission_error": "Une erreur est survenue lors de l'envoi du formulaire. Veuillez réessayer.","toggle": {"yes": "Oui","no": "Non"diff --git a/client/i18n/lang/gl.json b/client/i18n/lang/gl.jsonindex d874d0de2..7880a85f8 100644--- a/client/i18n/lang/gl.json+++ b/client/i18n/lang/gl.json@@ -7,7 +7,8 @@"submit": "Enviar","next": "Seguinte","previous": "Anterior",- "re_fill": "Enviar outra resposta"+ "re_fill": "Enviar outra resposta",+ "download_pdf": "Descargar PDF"},"powered_by": "Desenvolvido por","password_protected": "Este formulario está protexido por contrasinal.",@@ -69,6 +70,7 @@},"validation_error": "Erro de validación","validation_error_with_count": "Erro de validación ({count} campos)",+ "submission_error": "Produciuse un erro ao enviar o formulario. Téntao de novo.","toggle": {"yes": "Si","no": "Non"diff --git a/client/i18n/lang/hi.json b/client/i18n/lang/hi.jsonindex 8d0b04f45..8064ddf09 100644--- a/client/i18n/lang/hi.json+++ b/client/i18n/lang/hi.json@@ -7,7 +7,8 @@"submit": "जमा करें","next": "अगला","previous": "पिछला",- "re_fill": "एक और प्रतिक्रिया जमा करें"+ "re_fill": "एक और प्रतिक्रिया जमा करें",+ "download_pdf": "PDF डाउनलोड करें"},"powered_by": "विकसित करने वाला","password_protected": "यह फॉर्म एक पासवर्ड से सुरक्षित है।",@@ -69,6 +70,7 @@},"validation_error": "सत्यापन त्रुटि","validation_error_with_count": "सत्यापन त्रुटि ({count} फ़ील्ड)",+ "submission_error": "फ़ॉर्म सबमिट करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।","toggle": {"yes": "हाँ","no": "नहीं"diff --git a/client/i18n/lang/hu.json b/client/i18n/lang/hu.jsonindex adbcf2048..f1b5c0638 100644--- a/client/i18n/lang/hu.json+++ b/client/i18n/lang/hu.json@@ -7,7 +7,8 @@"submit": "Beküldés","next": "Tovább","previous": "Vissza",- "re_fill": "Új válasz beküldése"+ "re_fill": "Új válasz beküldése",+ "download_pdf": "PDF letöltése"},"powered_by": "Működteti","password_protected": "Ez az űrlap jelszóval védett.",@@ -69,6 +70,7 @@},"validation_error": "Érvényesítési hiba","validation_error_with_count": "Érvényesítési hiba ({count} mező)",+ "submission_error": "Hiba történt az űrlap beküldése közben. Kérjük, próbáld újra.","toggle": {"yes": "Igen","no": "Nem"diff --git a/client/i18n/lang/it.json b/client/i18n/lang/it.jsonindex 94edcb0b7..25c74338d 100644--- a/client/i18n/lang/it.json+++ b/client/i18n/lang/it.json@@ -7,7 +7,8 @@"submit": "Invia","next": "Avanti","previous": "Indietro",- "re_fill": "Invia un'altra risposta"+ "re_fill": "Invia un'altra risposta",+ "download_pdf": "Scarica PDF"},"powered_by": "Realizzato con","password_protected": "Questo modulo è protetto da password.",@@ -69,6 +70,7 @@},"validation_error": "Errore di validazione","validation_error_with_count": "Errore di validazione ({count} campi)",+ "submission_error": "Si è verificato un errore durante l'invio del modulo. Riprova.","toggle": {"yes": "Sì","no": "No"diff --git a/client/i18n/lang/ja.json b/client/i18n/lang/ja.jsonindex 3d94302aa..35f0e3c6a 100644--- a/client/i18n/lang/ja.json+++ b/client/i18n/lang/ja.json@@ -7,7 +7,8 @@"submit": "送信","next": "次へ","previous": "前へ",- "re_fill": "別の回答を送信"+ "re_fill": "別の回答を送信",+ "download_pdf": "PDFをダウンロード"},"powered_by": "開発者","password_protected": "このフォームはパスワードで保護されています。",@@ -69,6 +70,7 @@},"validation_error": "検証エラー","validation_error_with_count": "検証エラー({count}フィールド)",+ "submission_error": "フォームの送信中にエラーが発生しました。もう一度お試しください。","toggle": {"yes": "はい","no": "いいえ"diff --git a/client/i18n/lang/jv.json b/client/i18n/lang/jv.jsonindex ba0e4ef31..5435f21bc 100644--- a/client/i18n/lang/jv.json+++ b/client/i18n/lang/jv.json@@ -7,7 +7,8 @@"submit": "Kirim","next": "Sabanjure","previous": "Sadurunge",- "re_fill": "Kirim jawaban liyane"+ "re_fill": "Kirim jawaban liyane",+ "download_pdf": "Undhuh PDF"},"powered_by": "Dipungkasi dening","password_protected": "Formulir iki dilindhungi tembung sandi.",@@ -69,6 +70,7 @@},"validation_error": "Kesalahan validasi","validation_error_with_count": "Kesalahan validasi ({count} kolom)",+ "submission_error": "Ana kesalahan nalika ngirim formulir. Mangga coba maneh.","toggle": {"yes": "Ya","no": "Ora"diff --git a/client/i18n/lang/ko.json b/client/i18n/lang/ko.jsonindex be145a4f8..9694d8078 100644--- a/client/i18n/lang/ko.json+++ b/client/i18n/lang/ko.json@@ -7,7 +7,8 @@"submit": "제출","next": "다음","previous": "이전",- "re_fill": "다른 답변 제출"+ "re_fill": "다른 답변 제출",+ "download_pdf": "PDF 다운로드"},"powered_by": "제공","password_protected": "이 양식은 비밀번호로 보호되어 있습니다.",@@ -69,6 +70,7 @@},"validation_error": "유효성 검사 오류","validation_error_with_count": "유효성 검사 오류 ({count}개 필드)",+ "submission_error": "양식을 제출하는 중 오류가 발생했습니다. 다시 시도해 주세요.","toggle": {"yes": "예","no": "아니오"diff --git a/client/i18n/lang/mr.json b/client/i18n/lang/mr.jsonindex 71e7fa208..e6b262649 100644--- a/client/i18n/lang/mr.json+++ b/client/i18n/lang/mr.json@@ -7,7 +7,8 @@"submit": "सबमिट करा","next": "पुढील","previous": "मागील",- "re_fill": "दुसरा प्रतिसाद सबमिट करा"+ "re_fill": "दुसरा प्रतिसाद सबमिट करा",+ "download_pdf": "PDF डाउनलोड करा"},"powered_by": "द्वारे संचालित","password_protected": "हा फॉर्म पासवर्डने संरक्षित आहे.",@@ -69,6 +70,7 @@},"validation_error": "प्रमाणीकरण त्रुटी","validation_error_with_count": "प्रमाणीकरण त्रुटी ({count} फील्ड)",+ "submission_error": "फॉर्म सबमिट करताना त्रुटी आली. कृपया पुन्हा प्रयत्न करा.","toggle": {"yes": "होय","no": "नाही"diff --git a/client/i18n/lang/nl.json b/client/i18n/lang/nl.jsonindex 702f6a26b..6e7c31732 100644--- a/client/i18n/lang/nl.json+++ b/client/i18n/lang/nl.json@@ -7,7 +7,8 @@"submit": "Verzenden","next": "Volgende","previous": "Vorige",- "re_fill": "Nog een antwoord indienen"+ "re_fill": "Nog een antwoord indienen",+ "download_pdf": "PDF downloaden"},"powered_by": "Mogelijk gemaakt door","password_protected": "Dit formulier is beveiligd met een wachtwoord.",@@ -69,6 +70,7 @@},"validation_error": "Validatiefout","validation_error_with_count": "Validatiefout ({count} velden)",+ "submission_error": "Er is een fout opgetreden bij het verzenden van het formulier. Probeer het opnieuw.","toggle": {"yes": "Ja","no": "Nee"diff --git a/client/i18n/lang/pa.json b/client/i18n/lang/pa.jsonindex 5ad56d57a..3ef828001 100644--- a/client/i18n/lang/pa.json+++ b/client/i18n/lang/pa.json@@ -7,7 +7,8 @@"submit": "ਜਮ੍ਹਾਂ ਕਰੋ","next": "ਅਗਲਾ","previous": "ਪਿਛਲਾ",- "re_fill": "ਇੱਕ ਹੋਰ ਜਵਾਬ ਜਮ੍ਹਾਂ ਕਰੋ"+ "re_fill": "ਇੱਕ ਹੋਰ ਜਵਾਬ ਜਮ੍ਹਾਂ ਕਰੋ",+ "download_pdf": "PDF ਡਾਊਨਲੋਡ ਕਰੋ"},"powered_by": "ਦੁਆਰਾ ਸੰਚਾਲਿਤ","password_protected": "ਇਹ ਫਾਰਮ ਪਾਸਵਰਡ ਦੁਆਰਾ ਸੁਰੱਖਿਅਤ ਹੈ।",@@ -69,6 +70,7 @@},"validation_error": "ਪ੍ਰਮਾਣਿਕਤਾ ਗਲਤੀ","validation_error_with_count": "ਪ੍ਰਮਾਣਿਕਤਾ ਗਲਤੀ ({count} ਖੇਤਰ)",+ "submission_error": "ਫਾਰਮ ਜਮ੍ਹਾਂ ਕਰਦੇ ਸਮੇਂ ਇੱਕ ਗਲਤੀ ਆਈ। ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।","toggle": {"yes": "ਹਾਂ","no": "ਨਹੀਂ"diff --git a/client/i18n/lang/pl.json b/client/i18n/lang/pl.jsonindex 9c43e0710..5cb23587a 100644--- a/client/i18n/lang/pl.json+++ b/client/i18n/lang/pl.json@@ -7,7 +7,8 @@"submit": "Wyślij","next": "Dalej","previous": "Poprzedni",- "re_fill": "Wyślij kolejną odpowiedź"+ "re_fill": "Wyślij kolejną odpowiedź",+ "download_pdf": "Pobierz PDF"},"powered_by": "Obsługiwane przez","password_protected": "Ten formularz jest chroniony hasłem.",@@ -69,6 +70,7 @@},"validation_error": "Błąd walidacji","validation_error_with_count": "Błąd walidacji ({count} pola)",+ "submission_error": "Wystąpił błąd podczas wysyłania formularza. Spróbuj ponownie.","toggle": {"yes": "Tak","no": "Nie"diff --git a/client/i18n/lang/pt.json b/client/i18n/lang/pt.jsonindex 1ba79b513..35bd12af8 100644--- a/client/i18n/lang/pt.json+++ b/client/i18n/lang/pt.json@@ -7,7 +7,8 @@"submit": "Enviar","next": "Próximo","previous": "Anterior",- "re_fill": "Enviar outra resposta"+ "re_fill": "Enviar outra resposta",+ "download_pdf": "Baixar PDF"},"powered_by": "Desenvolvido por","password_protected": "Este formulário está protegido por senha.",@@ -69,6 +70,7 @@},"validation_error": "Erro de validação","validation_error_with_count": "Erro de validação ({count} campos)",+ "submission_error": "Ocorreu um erro ao enviar o formulário. Tente novamente.","toggle": {"yes": "Sim","no": "Não"diff --git a/client/i18n/lang/ru.json b/client/i18n/lang/ru.jsonindex df62c6c14..53ae0c622 100644--- a/client/i18n/lang/ru.json+++ b/client/i18n/lang/ru.json@@ -7,7 +7,8 @@"submit": "Отправить","next": "Следующий","previous": "Предыдущий",- "re_fill": "Отправить еще один ответ"+ "re_fill": "Отправить еще один ответ",+ "download_pdf": "Скачать PDF"},"powered_by": "Работает на","password_protected": "Эта форма защищена паролем.",@@ -69,6 +70,7 @@},"validation_error": "Ошибка валидации","validation_error_with_count": "Ошибка валидации ({count} поля)",+ "submission_error": "При отправке формы произошла ошибка. Пожалуйста, попробуйте ещё раз.","toggle": {"yes": "Да","no": "Нет"diff --git a/client/i18n/lang/sk.json b/client/i18n/lang/sk.jsonindex 14a983406..5138c0a97 100644--- a/client/i18n/lang/sk.json+++ b/client/i18n/lang/sk.json@@ -7,7 +7,8 @@"submit": "Odoslať","next": "Ďalší","previous": "Predchádzajúci",- "re_fill": "Odoslať ďalšiu odpoveď"+ "re_fill": "Odoslať ďalšiu odpoveď",+ "download_pdf": "Stiahnuť PDF"},"powered_by": "Vytvorené pomocou","password_protected": "Tento formulár je chránený heslom.",@@ -69,6 +70,7 @@},"validation_error": "Chyba overenia","validation_error_with_count": "Chyba overenia ({count} polí)",+ "submission_error": "Pri odosielaní formulára sa vyskytla chyba. Skúste to prosím znova.","toggle": {"yes": "Áno","no": "Nie"diff --git a/client/i18n/lang/sr.json b/client/i18n/lang/sr.jsonindex d4bc26426..388c71594 100644--- a/client/i18n/lang/sr.json+++ b/client/i18n/lang/sr.json@@ -7,7 +7,8 @@"submit": "Pošalji","next": "Dalje","previous": "Nazad",- "re_fill": "Pošalji još jedan odgovor"+ "re_fill": "Pošalji još jedan odgovor",+ "download_pdf": "Preuzmi PDF"},"powered_by": "Pokreće","password_protected": "Ovaj formular je zaštićen lozinkom.",@@ -69,6 +70,7 @@},"validation_error": "Greška pri validaciji","validation_error_with_count": "Greška pri validaciji ({count} polja)",+ "submission_error": "Došlo je do greške prilikom slanja obrasca. Pokušajte ponovo.","toggle": {"yes": "Da","no": "Ne"diff --git a/client/i18n/lang/sv.json b/client/i18n/lang/sv.jsonindex 8e95665b8..2b85c0ac2 100644--- a/client/i18n/lang/sv.json+++ b/client/i18n/lang/sv.json@@ -7,7 +7,8 @@"submit": "Skicka","next": "Nästa","previous": "Föregående",- "re_fill": "Skicka ett annat svar"+ "re_fill": "Skicka ett annat svar",+ "download_pdf": "Ladda ner PDF"},"powered_by": "Drivs av","password_protected": "Detta formulär är lösenordsskyddat.",@@ -69,6 +70,7 @@},"validation_error": "Valideringsfel","validation_error_with_count": "Valideringsfel ({count} fält)",+ "submission_error": "Ett fel uppstod när formuläret skickades. Försök igen.","toggle": {"yes": "Ja","no": "Nej"diff --git a/client/i18n/lang/ta.json b/client/i18n/lang/ta.jsonindex 86aa33447..9c9941650 100644--- a/client/i18n/lang/ta.json+++ b/client/i18n/lang/ta.json@@ -7,7 +7,8 @@"submit": "சமர்ப்பிக்கவும்","next": "அடுத்தது","previous": "முந்தையது",- "re_fill": "மற்றொரு பதிலைச் சமர்ப்பிக்கவும்"+ "re_fill": "மற்றொரு பதிலைச் சமர்ப்பிக்கவும்",+ "download_pdf": "PDF-ஐப் பதிவிறக்கு"},"powered_by": "மூலம் இயக்கப்படுகிறது","password_protected": "இந்தப் படிவம் கடவுச்சொல்லால் பாதுகாக்கப்பட்டுள்ளது.",@@ -69,6 +70,7 @@},"validation_error": "சரிபார்ப்பு பிழை","validation_error_with_count": "சரிபார்ப்பு பிழை ({count} புலங்கள்)",+ "submission_error": "படிவத்தைச் சமர்ப்பிக்கும்போது பிழை ஏற்பட்டது. மீண்டும் முயற்சிக்கவும்.","toggle": {"yes": "ஆம்","no": "இல்லை"diff --git a/client/i18n/lang/te.json b/client/i18n/lang/te.jsonindex cc693d99f..d4c3a5bef 100644--- a/client/i18n/lang/te.json+++ b/client/i18n/lang/te.json@@ -7,7 +7,8 @@"submit": "సమర్పించండి","next": "తదుపరి","previous": "మునుపటి",- "re_fill": "మరొక ప్రతిస్పందనను సమర్పించండి"+ "re_fill": "మరొక ప్రతిస్పందనను సమర్పించండి",+ "download_pdf": "PDF డౌన్లోడ్ చేయండి"},"powered_by": "ద్వారా ఆధారితం","password_protected": "ఈ ఫారమ్ పాస్వర్డ్తో రక్షించబడింది.",@@ -69,6 +70,7 @@},"validation_error": "ధ్రువీకరణ లోపం","validation_error_with_count": "ధ్రువీకరణ లోపం ({count} ఫీల్డ్లు)",+ "submission_error": "ఫారమ్ను సమర్పించేటప్పుడు లోపం సంభవించింది. దయచేసి మళ్లీ ప్రయత్నించండి.","toggle": {"yes": "అవును","no": "కాదు"diff --git a/client/i18n/lang/tr.json b/client/i18n/lang/tr.jsonindex 17e687775..3e27cc098 100644--- a/client/i18n/lang/tr.json+++ b/client/i18n/lang/tr.json@@ -7,7 +7,8 @@"submit": "Gönder","next": "Sonraki","previous": "Önceki",- "re_fill": "Başka bir yanıt gönder"+ "re_fill": "Başka bir yanıt gönder",+ "download_pdf": "PDF indir"},"powered_by": "Tarafından desteklenmektedir","password_protected": "Bu form şifre korumalıdır.",@@ -69,6 +70,7 @@},"validation_error": "Doğrulama Hatası","validation_error_with_count": "Doğrulama Hatası ({count} alan)",+ "submission_error": "Form gönderilirken bir hata oluştu. Lütfen tekrar deneyin.","toggle": {"yes": "Evet","no": "Hayır"diff --git a/client/i18n/lang/uk.json b/client/i18n/lang/uk.jsonindex 3478ae597..272fe5eb6 100644--- a/client/i18n/lang/uk.json+++ b/client/i18n/lang/uk.json@@ -7,7 +7,8 @@"submit": "Надіслати","next": "Далі","previous": "Назад",- "re_fill": "Надіслати ще одну відповідь"+ "re_fill": "Надіслати ще одну відповідь",+ "download_pdf": "Завантажити PDF"},"powered_by": "Працює на","password_protected": "Ця форма захищена паролем.",@@ -69,6 +70,7 @@},"validation_error": "Помилка валідації","validation_error_with_count": "Помилка валідації ({count} полів)",+ "submission_error": "Під час надсилання форми сталася помилка. Будь ласка, спробуйте ще раз.","toggle": {"yes": "Так","no": "Ні"diff --git a/client/i18n/lang/ur.json b/client/i18n/lang/ur.jsonindex eef067a9d..d74e62869 100644--- a/client/i18n/lang/ur.json+++ b/client/i18n/lang/ur.json@@ -7,7 +7,8 @@"submit": "جمع کرائیں","next": "آگے","previous": "پچھلا",- "re_fill": "ایک اور جواب جمع کروائیں"+ "re_fill": "ایک اور جواب جمع کروائیں",+ "download_pdf": "PDF ڈاؤن لوڈ کریں"},"powered_by": "پاور بائی","password_protected": "یہ فارم پاس ورڈ سے محفوظ ہے۔",@@ -69,6 +70,7 @@},"validation_error": "تصدیق کی خرابی","validation_error_with_count": "تصدیق کی خرابی ({count} فیلڈز)",+ "submission_error": "فارم جمع کرواتے وقت ایک خرابی پیش آئی۔ براہ کرم دوبارہ کوشش کریں۔","toggle": {"yes": "ہاں","no": "نہیں"diff --git a/client/i18n/lang/vi.json b/client/i18n/lang/vi.jsonindex f64744dc0..11ac6420f 100644--- a/client/i18n/lang/vi.json+++ b/client/i18n/lang/vi.json@@ -7,7 +7,8 @@"submit": "Gửi","next": "Tiếp theo","previous": "Trước",- "re_fill": "Gửi một câu trả lời khác"+ "re_fill": "Gửi một câu trả lời khác",+ "download_pdf": "Tải xuống PDF"},"powered_by": "Được cung cấp bởi","password_protected": "Biểu mẫu này được bảo vệ bằng mật khẩu.",@@ -69,6 +70,7 @@},"validation_error": "Lỗi xác thực","validation_error_with_count": "Lỗi xác thực ({count} trường)",+ "submission_error": "Đã xảy ra lỗi khi gửi biểu mẫu. Vui lòng thử lại.","toggle": {"yes": "Có","no": "Không"diff --git a/client/i18n/lang/zh.json b/client/i18n/lang/zh.jsonindex dd312c9be..22d740c28 100644--- a/client/i18n/lang/zh.json+++ b/client/i18n/lang/zh.json@@ -7,7 +7,8 @@"submit": "提交","next": "下一个","previous": "上一个",- "re_fill": "提交另一个回复"+ "re_fill": "提交另一个回复",+ "download_pdf": "下载 PDF"},"powered_by": "开发者","password_protected": "此表单受密码保护。",@@ -69,6 +70,7 @@},"validation_error": "验证错误","validation_error_with_count": "验证错误 ({count} 个字段)",+ "submission_error": "提交表单时出错,请重试。","toggle": {"yes": "是","no": "否"diff --git a/client/test/unit/form-locale-keys.test.ts b/client/test/unit/form-locale-keys.test.tsnew file mode 100644index 000000000..7be09b54a--- /dev/null+++ b/client/test/unit/form-locale-keys.test.ts@@ -0,0 +1,48 @@+import { describe, expect, it } from 'vitest'+import { readFileSync, readdirSync, statSync } from 'fs'+import { join, resolve } from 'path'++const clientRoot = resolve(__dirname, '../..')+const langDir = join(clientRoot, 'i18n/lang')++const flattenKeys = (obj: Record<string, unknown>, prefix = ''): string[] =>+ Object.entries(obj).flatMap(([key, value]) =>+ value && typeof value === 'object'+ ? flattenKeys(value as Record<string, unknown>, `${prefix}${key}.`)+ : [`${prefix}${key}`]+ )++const loadKeys = (file: string) =>+ new Set(flattenKeys(JSON.parse(readFileSync(join(langDir, file), 'utf-8'))))++const listSourceFiles = (dir: string): string[] =>+ readdirSync(dir).flatMap((entry) => {+ const path = join(dir, entry)+ if (statSync(path).isDirectory()) return listSourceFiles(path)+ return /\.(vue|js)$/.test(entry) ? [path] : []+ })++describe('form locale keys', () => {+ const enKeys = loadKeys('en.json')++ it('defines every forms.* key used by public form components in en.json', () => {+ const used = new Set<string>()+ for (const file of listSourceFiles(join(clientRoot, 'components/open/forms'))) {+ for (const match of readFileSync(file, 'utf-8').matchAll(/\bt\(\s*['"](forms\.[\w.]+)['"]/g)) {+ used.add(match[1])+ }+ }++ expect(used.size).toBeGreaterThan(0)+ expect([...used].filter((key) => !enKeys.has(key))).toEqual([])+ })++ it.each(readdirSync(langDir).filter((file) => file.endsWith('.json') && file !== 'en.json'))(+ '%s has the same keys as en.json',+ (file) => {+ const keys = loadKeys(file)+ expect([...enKeys].filter((key) => !keys.has(key))).toEqual([])+ expect([...keys].filter((key) => !enKeys.has(key))).toEqual([])+ }+ )+})