Skip to content

Commit

Permalink
Merge pull request #634 from JohnsonMao/fix/i18n-key-for-delete-image…
Browse files Browse the repository at this point in the history
…-functionality

fix: i18n key for delete image functionality
  • Loading branch information
petyosi authored Nov 24, 2024
2 parents 7b9b948 + 0dc9667 commit e8baa67
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "Title:"
},
"imageEditor": {
"deleteImage": "Delete image",
"editImage": "Edit image"
},
"createLink": {
Expand Down
1 change: 1 addition & 0 deletions locales/es-es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "Título:"
},
"imageEditor": {
"deleteImage": "Borrar imagen",
"editImage": "Editar imagen"
},
"createLink": {
Expand Down
1 change: 1 addition & 0 deletions locales/ko-kr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "제목:"
},
"imageEditor": {
"deleteImage": "이미지 삭제",
"editImage": "이미지 편집"
},
"createLink": {
Expand Down
1 change: 1 addition & 0 deletions locales/pt-br/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "Título:"
},
"imageEditor": {
"deleteImage": "Deletar imagem",
"editImage": "Editar imagem"
},
"createLink": {
Expand Down
1 change: 1 addition & 0 deletions locales/uk-ua/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "Назва:"
},
"imageEditor": {
"deleteImage": "Видалити зображення",
"editImage": "Редагувати зображення"
},
"createLink": {
Expand Down
1 change: 1 addition & 0 deletions locales/zh-cn/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "标题:"
},
"imageEditor": {
"deleteImage": "删除图片",
"editImage": "编辑图片"
},
"createLink": {
Expand Down
1 change: 1 addition & 0 deletions locales/zh-tw/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"title": "標題:"
},
"imageEditor": {
"deleteImage": "刪除圖片",
"editImage": "編輯圖片"
},
"createLink": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/image/ImageEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export function ImageEditor({ src, title, alt, nodeKey, width, height, rest }: I
<button
className={styles.iconButton}
type="button"
title={t('image.delete', 'Delete image')}
title={t('imageEditor.deleteImage', 'Delete image')}
disabled={readOnly}
onClick={(e) => {
e.preventDefault()
Expand Down

0 comments on commit e8baa67

Please sign in to comment.