mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-20 20:49:16 -05:00
fix: fixes data element i18n fixes (#7488)
This commit is contained in:
@@ -55,6 +55,8 @@ interface FileUploadProps {
|
||||
imageAltText?: string;
|
||||
/** Placeholder text for the file upload */
|
||||
placeholderText?: string;
|
||||
/** Text to display while uploading */
|
||||
uploadingText?: string;
|
||||
}
|
||||
|
||||
interface UploadedFileItemProps {
|
||||
@@ -230,6 +232,7 @@ function FileUpload({
|
||||
videoUrl,
|
||||
imageAltText,
|
||||
placeholderText = "Click or drag to upload files",
|
||||
uploadingText = "Uploading...",
|
||||
}: Readonly<FileUploadProps>): React.JSX.Element {
|
||||
const fileInputRef = React.useRef<HTMLInputElement>(null);
|
||||
|
||||
@@ -306,7 +309,7 @@ function FileUpload({
|
||||
<p
|
||||
className="text-muted-foreground font-medium"
|
||||
style={{ fontSize: "var(--fb-input-font-size)" }}>
|
||||
Uploading...
|
||||
{uploadingText}
|
||||
</p>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
@@ -41,7 +41,9 @@ checksums:
|
||||
errors/file_input/file_size_exceeded_alert: d8e482a2ff05e78bbacaed9e9db9b5eb
|
||||
errors/file_input/no_valid_file_types_selected: 795acdedcffbcf06e57ea93fc16771ce
|
||||
errors/file_input/only_one_file_can_be_uploaded_at_a_time: 1eda42bd46887f9702049e23fa7cb127
|
||||
errors/file_input/placeholder_text: 15b61e390b6c5501d3e3b9da9f6c7930
|
||||
errors/file_input/upload_failed: 735fdfc1a37ab035121328237ddd6fd0
|
||||
errors/file_input/uploading: baef62e2015a34d6747ed6e4192a27b1
|
||||
errors/file_input/you_can_only_upload_a_maximum_of_files: 72fe144f81075e5b06bae53b3a84d4db
|
||||
errors/invalid_device_error/message: 8813dcd0e3e41934af18d7a15f8c83f4
|
||||
errors/invalid_device_error/title: ea7dbb9970c717e4d466f8e1211bd461
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "يجب أن يكون حجم الملف أقل من {maxSizeInMB} ميجابايت",
|
||||
"no_valid_file_types_selected": "لم يتم اختيار أنواع ملفات صالحة. يرجى اختيار نوع ملف صالح.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "يمكن تحميل ملف واحد فقط في المرة الواحدة.",
|
||||
"placeholder_text": "انقر أو اسحب لرفع الملفات",
|
||||
"upload_failed": "فشل التحميل! يرجى المحاولة مرة أخرى.",
|
||||
"uploading": "جارٍ الرفع...",
|
||||
"you_can_only_upload_a_maximum_of_files": "يمكنك تحميل {FILE_LIMIT} ملفات كحد أقصى."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Filen skal være mindre end {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Ingen gyldige filtyper valgt. Vælg venligst en gyldig filtype.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Du kan kun uploade én fil ad gangen.",
|
||||
"placeholder_text": "Klik eller træk for at uploade filer",
|
||||
"upload_failed": "Upload mislykkedes! Prøv venligst igen.",
|
||||
"uploading": "Uploader...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Du kan maksimalt uploade {FILE_LIMIT} filer."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Die Datei sollte kleiner als {maxSizeInMB} MB sein",
|
||||
"no_valid_file_types_selected": "Keine gültigen Dateitypen ausgewählt. Bitte wählen Sie einen gültigen Dateityp.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Es kann nur eine Datei gleichzeitig hochgeladen werden.",
|
||||
"placeholder_text": "Klicke oder ziehe Dateien hierher zum Hochladen",
|
||||
"upload_failed": "Upload fehlgeschlagen! Bitte versuchen Sie es erneut.",
|
||||
"uploading": "Wird hochgeladen...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Sie können maximal {FILE_LIMIT} Dateien hochladen."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "File should be less than {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "No valid file types selected. Please select a valid file type.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Only one file can be uploaded at a time.",
|
||||
"placeholder_text": "Click or drag to upload files",
|
||||
"upload_failed": "Upload failed! Please try again.",
|
||||
"uploading": "Uploading...",
|
||||
"you_can_only_upload_a_maximum_of_files": "You can only upload a maximum of {FILE_LIMIT} files."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "El archivo debe ser menor de {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "No se han seleccionado tipos de archivo válidos. Por favor, selecciona un tipo de archivo válido.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Solo se puede subir un archivo a la vez.",
|
||||
"placeholder_text": "Haz clic o arrastra para subir archivos",
|
||||
"upload_failed": "¡Subida fallida! Por favor, inténtalo de nuevo.",
|
||||
"uploading": "Subiendo...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Solo puedes subir un máximo de {FILE_LIMIT} archivos."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Le fichier doit être inférieur à {maxSizeInMB} Mo",
|
||||
"no_valid_file_types_selected": "Aucun type de fichier valide sélectionné. Veuillez sélectionner un type de fichier valide.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Un seul fichier peut être téléchargé à la fois.",
|
||||
"placeholder_text": "Cliquez ou glissez pour télécharger des fichiers",
|
||||
"upload_failed": "Échec du téléchargement ! Veuillez réessayer.",
|
||||
"uploading": "Téléchargement en cours...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Vous ne pouvez télécharger qu'un maximum de {FILE_LIMIT} fichiers."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "फ़ाइल {maxSizeInMB} MB से कम होनी चाहिए",
|
||||
"no_valid_file_types_selected": "कोई मान्य फ़ाइल प्रकार नहीं चुना गया है। कृपया एक मान्य फ़ाइल प्रकार चुनें।",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "एक समय में केवल एक फ़ाइल अपलोड की जा सकती है।",
|
||||
"placeholder_text": "फ़ाइलें अपलोड करने के लिए क्लिक करें या ड्रैग करें",
|
||||
"upload_failed": "अपलोड विफल! कृपया पुनः प्रयास करें।",
|
||||
"uploading": "अपलोड हो रहा है...",
|
||||
"you_can_only_upload_a_maximum_of_files": "आप अधिकतम {FILE_LIMIT} फ़ाइलें ही अपलोड कर सकते हैं।"
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "A fájlnak kisebbnek kell lennie mint {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Nincs érvényes fájltípus kiválasztva. Válasszon egy érvényes fájltípust.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Egyszerre csak egy fájl tölthető fel.",
|
||||
"placeholder_text": "Kattints vagy húzd ide a fájlokat a feltöltéshez",
|
||||
"upload_failed": "A feltöltés nem sikerült! Próbálja meg újra.",
|
||||
"uploading": "Feltöltés...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Legfeljebb csak {FILE_LIMIT} fájlt tölthet fel."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Il file deve essere inferiore a {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Nessun tipo di file valido selezionato. Seleziona un tipo di file valido.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "È possibile caricare solo un file alla volta.",
|
||||
"placeholder_text": "Clicca o trascina per caricare i file",
|
||||
"upload_failed": "Caricamento fallito! Riprova.",
|
||||
"uploading": "Caricamento in corso...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Puoi caricare un massimo di {FILE_LIMIT} file."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "ファイルは{maxSizeInMB}MB未満である必要があります",
|
||||
"no_valid_file_types_selected": "有効なファイルタイプが選択されていません。有効なファイルタイプを選択してください。",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "一度にアップロードできるファイルは1つだけです。",
|
||||
"placeholder_text": "クリックまたはドラッグしてファイルをアップロード",
|
||||
"upload_failed": "アップロードに失敗しました!もう一度お試しください。",
|
||||
"uploading": "アップロード中...",
|
||||
"you_can_only_upload_a_maximum_of_files": "アップロードできるファイルは最大{FILE_LIMIT}個までです。"
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Het bestand moet kleiner zijn dan {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Geen geldige bestandstypen geselecteerd. Selecteer een geldig bestandstype.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Er kan slechts één bestand tegelijk worden geüpload.",
|
||||
"placeholder_text": "Klik of sleep bestanden om te uploaden",
|
||||
"upload_failed": "Uploaden mislukt! Probeer het opnieuw.",
|
||||
"uploading": "Uploaden...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Je kunt maximaal {FILE_LIMIT} bestanden uploaden."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "O arquivo deve ter menos de {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Nenhum tipo de arquivo válido selecionado. Por favor, selecione um tipo de arquivo válido.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Apenas um arquivo pode ser carregado de cada vez.",
|
||||
"placeholder_text": "Clique ou arraste para enviar ficheiros",
|
||||
"upload_failed": "Falha no carregamento! Por favor, tente novamente.",
|
||||
"uploading": "A enviar...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Você só pode carregar um máximo de {FILE_LIMIT} arquivos."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Fișierul trebuie să fie mai mic de {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Nu au fost selectate tipuri de fișiere valide. Te rugăm să selectezi un tip de fișier valid.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Poți încărca doar un singur fișier odată.",
|
||||
"placeholder_text": "Apasă sau trage pentru a încărca fișiere",
|
||||
"upload_failed": "Încărcarea a eșuat! Te rugăm să încerci din nou.",
|
||||
"uploading": "Se încarcă...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Poți încărca un număr maxim de {FILE_LIMIT} fișiere."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Файл должен быть меньше {maxSizeInMB} МБ",
|
||||
"no_valid_file_types_selected": "Не выбраны допустимые типы файлов. Пожалуйста, выберите допустимый тип файла.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Можно загрузить только один файл за раз.",
|
||||
"placeholder_text": "Нажмите или перетащите файлы для загрузки",
|
||||
"upload_failed": "Ошибка загрузки! Пожалуйста, попробуйте снова.",
|
||||
"uploading": "Загрузка...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Вы можете загрузить максимум {FILE_LIMIT} файлов."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Filen måste vara mindre än {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "Inga giltiga filtyper valda. Vänligen välj en giltig filtyp.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Endast en fil kan laddas upp åt gången.",
|
||||
"placeholder_text": "Klicka eller dra för att ladda upp filer",
|
||||
"upload_failed": "Uppladdning misslyckades! Försök igen.",
|
||||
"uploading": "Laddar upp...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Du kan ladda upp maximalt {FILE_LIMIT} filer."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "Fayl hajmi {maxSizeInMB} MB dan kam bo'lishi kerak",
|
||||
"no_valid_file_types_selected": "Hech qanday yaroqli fayl turi tanlanmadi. Iltimos, yaroqli fayl turini tanlang.",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "Bir vaqtning o'zida faqat bitta fayl yuklanishi mumkin.",
|
||||
"placeholder_text": "Fayllarni yuklash uchun bosing yoki sudrab olib keling",
|
||||
"upload_failed": "Yuklash muvaffaqiyatsiz tugadi! Iltimos, qayta urinib ko'ring.",
|
||||
"uploading": "Yuklanmoqda...",
|
||||
"you_can_only_upload_a_maximum_of_files": "Siz faqat {FILE_LIMIT} ta faylni maksimal yuklashingiz mumkin."
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
"file_size_exceeded_alert": "文件应小于 {maxSizeInMB} MB",
|
||||
"no_valid_file_types_selected": "未选择有效的文件类型。请选择有效的文件类型。",
|
||||
"only_one_file_can_be_uploaded_at_a_time": "一次只能上传一个文件。",
|
||||
"placeholder_text": "点击或拖拽上传文件",
|
||||
"upload_failed": "上传失败!请重试。",
|
||||
"uploading": "上传中...",
|
||||
"you_can_only_upload_a_maximum_of_files": "您最多只能上传 {FILE_LIMIT} 个文件。"
|
||||
},
|
||||
"invalid_device_error": {
|
||||
|
||||
@@ -357,6 +357,8 @@ export function FileUploadElement({
|
||||
isUploading={isUploading}
|
||||
imageUrl={element.imageUrl}
|
||||
videoUrl={element.videoUrl}
|
||||
placeholderText={t("errors.file_input.placeholder_text")}
|
||||
uploadingText={t("errors.file_input.uploading")}
|
||||
/>
|
||||
</form>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user