refactor: replace hardcoded aria-labels with i18n keys, add common.close/remove/home
This commit is contained in:
@@ -493,7 +493,7 @@ class PageCreate extends HTMLElement {
|
||||
return this.imagePreviews.map((src, index) => /* html */`
|
||||
<div class="image-preview">
|
||||
<img src="${src}" alt="Preview ${index + 1}">
|
||||
<button type="button" class="remove-image" data-index="${index}" aria-label="Remove">
|
||||
<button type="button" class="remove-image" data-index="${index}" aria-label="${t('common.remove')}">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<line x1="18" y1="6" x2="6" y2="18"></line>
|
||||
<line x1="6" y1="6" x2="18" y2="18"></line>
|
||||
|
||||
Reference in New Issue
Block a user