From c730e60b414e37aa82238d4ad6b18aa760240c15 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Fri, 13 Jan 2023 13:11:01 +0100 Subject: [PATCH] Add punctuation to error messages where they are missing --- src/languages/en.js | 4 ++-- src/languages/es.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/languages/en.js b/src/languages/en.js index f3035298a227..9393f157a85e 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -123,7 +123,7 @@ export default { attachmentTooLarge: 'Attachment too large', sizeExceeded: 'Attachment size is larger than 24 MB limit.', attachmentTooSmall: 'Attachment too small', - sizeNotMet: 'Attachment size must be greater than 240 bytes', + sizeNotMet: 'Attachment size must be greater than 240 bytes.', wrongFileType: 'Attachment is the wrong type', notAllowedExtension: 'Attachments must be one of the following types: ', }, @@ -293,7 +293,7 @@ export default { sizeExceeded: ({maxUploadSizeInMB}) => `The selected image exceeds the maximum upload size of ${maxUploadSizeInMB}MB.`, resolutionConstraints: ({ minHeightInPx, minWidthInPx, maxHeightInPx, maxWidthInPx, - }) => `Please upload an image larger than ${minHeightInPx}x${minWidthInPx} pixels and smaller than ${maxHeightInPx}x${maxWidthInPx} pixels`, + }) => `Please upload an image larger than ${minHeightInPx}x${minWidthInPx} pixels and smaller than ${maxHeightInPx}x${maxWidthInPx} pixels.`, notAllowedExtension: ({allowedExtensions}) => `Profile picture must be one of the following types: ${allowedExtensions.join(', ')}.`, }, profilePage: { diff --git a/src/languages/es.js b/src/languages/es.js index e83df6d4ce6a..7e92024f2499 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -123,7 +123,7 @@ export default { attachmentTooLarge: 'Archivo adjunto demasiado grande', sizeExceeded: 'El archivo adjunto supera el límite de 24 MB.', attachmentTooSmall: 'Archivo adjunto demasiado pequeño', - sizeNotMet: 'El archivo adjunto debe ser mas grande que 240 bytes', + sizeNotMet: 'El archivo adjunto debe ser mas grande que 240 bytes.', wrongFileType: 'El tipo del archivo adjunto es incorrecto', notAllowedExtension: 'Los archivos adjuntos deben ser de uno de los siguientes tipos: ', }, @@ -293,7 +293,7 @@ export default { sizeExceeded: ({maxUploadSizeInMB}) => `La imagen supera el tamaño máximo de ${maxUploadSizeInMB}MB.`, resolutionConstraints: ({ minHeightInPx, minWidthInPx, maxHeightInPx, maxWidthInPx, - }) => `Por favor, elige una imagen más grande que ${minHeightInPx}x${minWidthInPx} píxeles y más pequeña que ${maxHeightInPx}x${maxWidthInPx} píxeles`, + }) => `Por favor, elige una imagen más grande que ${minHeightInPx}x${minWidthInPx} píxeles y más pequeña que ${maxHeightInPx}x${maxWidthInPx} píxeles.`, notAllowedExtension: ({allowedExtensions}) => `La foto de perfil debe ser de uno de los siguientes tipos: ${allowedExtensions.join(', ')}.`, }, profilePage: {