From 0dc96671b27e3b08e0dd7495f128290965748bb2 Mon Sep 17 00:00:00 2001 From: JohnsonMao Date: Thu, 21 Nov 2024 21:08:30 +0800 Subject: [PATCH] fix: i18n key for delete image --- locales/en/translation.json | 1 + locales/es-es/translation.json | 1 + locales/ko-kr/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/ImageEditor.tsx | 2 +- 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/locales/en/translation.json b/locales/en/translation.json index b39b3d6..eb5d5f2 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -18,6 +18,7 @@ "title": "Title:" }, "imageEditor": { + "deleteImage": "Delete image", "editImage": "Edit image" }, "createLink": { diff --git a/locales/es-es/translation.json b/locales/es-es/translation.json index 4e174b1..71ba2aa 100644 --- a/locales/es-es/translation.json +++ b/locales/es-es/translation.json @@ -18,6 +18,7 @@ "title": "Título:" }, "imageEditor": { + "deleteImage": "Borrar imagen", "editImage": "Editar imagen" }, "createLink": { diff --git a/locales/ko-kr/translation.json b/locales/ko-kr/translation.json index b051ee8..083d61b 100644 --- a/locales/ko-kr/translation.json +++ b/locales/ko-kr/translation.json @@ -18,6 +18,7 @@ "title": "제목:" }, "imageEditor": { + "deleteImage": "이미지 삭제", "editImage": "이미지 편집" }, "createLink": { diff --git a/locales/pt-br/translation.json b/locales/pt-br/translation.json index 1212f05..9769f8e 100644 --- a/locales/pt-br/translation.json +++ b/locales/pt-br/translation.json @@ -18,6 +18,7 @@ "title": "Título:" }, "imageEditor": { + "deleteImage": "Deletar imagem", "editImage": "Editar imagem" }, "createLink": { diff --git a/locales/uk-ua/translation.json b/locales/uk-ua/translation.json index 0b7c4c8..8631c60 100644 --- a/locales/uk-ua/translation.json +++ b/locales/uk-ua/translation.json @@ -18,6 +18,7 @@ "title": "Назва:" }, "imageEditor": { + "deleteImage": "Видалити зображення", "editImage": "Редагувати зображення" }, "createLink": { diff --git a/locales/zh-cn/translation.json b/locales/zh-cn/translation.json index 6324b20..3f73697 100644 --- a/locales/zh-cn/translation.json +++ b/locales/zh-cn/translation.json @@ -18,6 +18,7 @@ "title": "标题:" }, "imageEditor": { + "deleteImage": "删除图片", "editImage": "编辑图片" }, "createLink": { diff --git a/locales/zh-tw/translation.json b/locales/zh-tw/translation.json index a502ce6..20d6a01 100644 --- a/locales/zh-tw/translation.json +++ b/locales/zh-tw/translation.json @@ -18,6 +18,7 @@ "title": "標題:" }, "imageEditor": { + "deleteImage": "刪除圖片", "editImage": "編輯圖片" }, "createLink": { diff --git a/src/plugins/image/ImageEditor.tsx b/src/plugins/image/ImageEditor.tsx index fff5037..d7b0807 100644 --- a/src/plugins/image/ImageEditor.tsx +++ b/src/plugins/image/ImageEditor.tsx @@ -292,7 +292,7 @@ export function ImageEditor({ src, title, alt, nodeKey, width, height, rest }: I