feat(ui): add max. file size check before upload attachment (#2709)

Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
This commit is contained in:
Joaquín Sánchez 2024-04-04 12:28:18 +02:00 committed by GitHub
parent 8f04ea8eee
commit 3f0b234cc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 66 additions and 1 deletions

View file

@ -594,7 +594,11 @@
},
"state": {
"attachments_exceed_server_limit": "The number of attachments exceeded the limit per post.",
"attachments_limit_audio_error": "Maximum audio size exceeded: {0}",
"attachments_limit_error": "Limit per post exceeded",
"attachments_limit_image_error": "Maximum image size exceeded: {0}",
"attachments_limit_unknown_error": "Maximum file size exceeded: {0}",
"attachments_limit_video_error": "Maximum video size exceeded: {0}",
"edited": "(Edited)",
"editing": "Editing",
"loading": "Loading...",

View file

@ -184,6 +184,9 @@
"label": "Usuarios en línea"
}
},
"state": {
"attachments_limit_video_error": "Tamaño máximo de video excedido: {0}"
},
"status": {
"spoiler_show_less": "Menos"
},

View file

@ -591,7 +591,11 @@
},
"state": {
"attachments_exceed_server_limit": "Número máximo de archivos adjuntos por publicación excedido.",
"attachments_limit_audio_error": "Tamaño máximo de audio excedido: {0}",
"attachments_limit_error": "Límite por publicación excedido",
"attachments_limit_image_error": "Tamaño máximo de imagen excedido: {0}",
"attachments_limit_unknown_error": "Tamaño máximo de archivo excedido: {0}",
"attachments_limit_video_error": "Tamaño máximo de vídeo excedido: {0}",
"edited": "(Editado)",
"editing": "Editando",
"loading": "Cargando...",
@ -708,7 +712,7 @@
"tooltip": {
"add_content_warning": "Añadir advertencia de contenido",
"add_emojis": "Agregar emojis",
"add_media": "Añadir imágenes, video o audio",
"add_media": "Añadir imágenes, vídeo o audio",
"add_publishable_content": "Publicar contenido",
"change_content_visibility": "Cambiar visibilidad de contenido",
"change_language": "Cambiar idioma",