From 69147520c6bbc33c0344b18715cec44a37d422b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Makowski?= Date: Sat, 5 Oct 2024 02:42:10 +0200 Subject: [PATCH] fix: image dialog missing title --- locales/en/translation.json | 1 + locales/es-es/translation.json | 1 + locales/pt-br/translation.json | 1 + locales/uk-ua/translation.json | 1 + locales/zh-cn/translation.json | 1 + locales/zh-tw/translation.json | 1 + src/plugins/image/ImageDialog.tsx | 1 + 7 files changed, 7 insertions(+) diff --git a/locales/en/translation.json b/locales/en/translation.json index 0f422f44..b39b3d67 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -10,6 +10,7 @@ "cancel": "Cancel" }, "uploadImage": { + "dialogTitle": "Upload an image", "uploadInstructions": "Upload an image from your device:", "addViaUrlInstructions": "Or add an image from an URL:", "autoCompletePlaceholder": "Select or paste an image src", diff --git a/locales/es-es/translation.json b/locales/es-es/translation.json index 9c0ebaf2..2b749200 100644 --- a/locales/es-es/translation.json +++ b/locales/es-es/translation.json @@ -10,6 +10,7 @@ "cancel": "Cancelar" }, "uploadImage": { + "dialogTitle": "Subir una imágen", "uploadInstructions": "Sube una imágen desde tu dispositivo:", "addViaUrlInstructions": "O añade una imágen desde una URL:", "autoCompletePlaceholder": "Selecciona o pega el src de la imágen", diff --git a/locales/pt-br/translation.json b/locales/pt-br/translation.json index afbbcf17..1212f055 100644 --- a/locales/pt-br/translation.json +++ b/locales/pt-br/translation.json @@ -10,6 +10,7 @@ "cancel": "Cancelar" }, "uploadImage": { + "dialogTitle": "Enviar uma imagem", "uploadInstructions": "Enviar uma imagem do seu dispotivo:", "addViaUrlInstructions": "Ou adicionar uma imagem a partir de um URL:", "autoCompletePlaceholder": "Insira um link de imagem", diff --git a/locales/uk-ua/translation.json b/locales/uk-ua/translation.json index 6ff48b2d..0b7c4c80 100644 --- a/locales/uk-ua/translation.json +++ b/locales/uk-ua/translation.json @@ -10,6 +10,7 @@ "cancel": "Скасувати" }, "uploadImage": { + "dialogTitle": "Завантажити зображення", "uploadInstructions": "Завантажте зображення з вашого пристрою:", "addViaUrlInstructions": "Або додайте зображення з URL посилання:", "autoCompletePlaceholder": "Виберіть або вставте джерело зображення", diff --git a/locales/zh-cn/translation.json b/locales/zh-cn/translation.json index a5f0e914..6324b206 100644 --- a/locales/zh-cn/translation.json +++ b/locales/zh-cn/translation.json @@ -10,6 +10,7 @@ "cancel": "取消" }, "uploadImage": { + "dialogTitle": "上传图片", "uploadInstructions": "从您的设备中上传图片:", "addViaUrlInstructions": "或从网址新增图片:", "autoCompletePlaceholder": "选择或粘贴图片", diff --git a/locales/zh-tw/translation.json b/locales/zh-tw/translation.json index c79ba8d5..a502ce6f 100644 --- a/locales/zh-tw/translation.json +++ b/locales/zh-tw/translation.json @@ -10,6 +10,7 @@ "cancel": "取消" }, "uploadImage": { + "dialogTitle": "上傳圖片", "uploadInstructions": "從您的裝置上傳圖片:", "addViaUrlInstructions": "或從網址新增圖片:", "autoCompletePlaceholder": "選擇或貼上圖片網址", diff --git a/src/plugins/image/ImageDialog.tsx b/src/plugins/image/ImageDialog.tsx index b2f0779e..baa9be6c 100644 --- a/src/plugins/image/ImageDialog.tsx +++ b/src/plugins/image/ImageDialog.tsx @@ -49,6 +49,7 @@ export const ImageDialog: React.FC = () => { e.preventDefault() }} > + {t('uploadImage.dialogTitle', 'Upload an image')}
{ void handleSubmit(saveImage)(e)