refactor: replace hardcoded aria-labels with i18n keys, add common.close/remove/home

This commit is contained in:
2026-02-05 15:21:28 +01:00
parent 715ab3ea13
commit 43add27732
9 changed files with 20 additions and 11 deletions

View File

@@ -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>