Skip to content

Commit

Permalink
feat: image dialog missing title (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
WebEferen authored Oct 7, 2024
1 parent 49e3003 commit d837a1d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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 @@ -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",
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 @@ -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",
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 @@ -10,6 +10,7 @@
"cancel": "Скасувати"
},
"uploadImage": {
"dialogTitle": "Завантажити зображення",
"uploadInstructions": "Завантажте зображення з вашого пристрою:",
"addViaUrlInstructions": "Або додайте зображення з URL посилання:",
"autoCompletePlaceholder": "Виберіть або вставте джерело зображення",
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 @@ -10,6 +10,7 @@
"cancel": "取消"
},
"uploadImage": {
"dialogTitle": "上传图片",
"uploadInstructions": "从您的设备中上传图片:",
"addViaUrlInstructions": "或从网址新增图片:",
"autoCompletePlaceholder": "选择或粘贴图片",
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 @@ -10,6 +10,7 @@
"cancel": "取消"
},
"uploadImage": {
"dialogTitle": "上傳圖片",
"uploadInstructions": "從您的裝置上傳圖片:",
"addViaUrlInstructions": "或從網址新增圖片:",
"autoCompletePlaceholder": "選擇或貼上圖片網址",
Expand Down
1 change: 1 addition & 0 deletions src/plugins/image/ImageDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const ImageDialog: React.FC = () => {
e.preventDefault()
}}
>
<Dialog.Title>{t('uploadImage.dialogTitle', 'Upload an image')}</Dialog.Title>
<form
onSubmit={(e) => {
void handleSubmit(saveImage)(e)
Expand Down

0 comments on commit d837a1d

Please sign in to comment.