use better gettext domain for aria labels
This commit is contained in:
@ -34,7 +34,7 @@
|
||||
<.link
|
||||
:if={is_owner?(note, @current_user)}
|
||||
patch={Routes.note_index_path(@socket, :edit, note.slug)}
|
||||
aria-label={gettext("edit %{note_slug}", note_slug: note.slug)}
|
||||
aria-label={dgettext("actions", "edit %{note_slug}", note_slug: note.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
@ -44,7 +44,7 @@
|
||||
phx-click="delete"
|
||||
phx-value-id={note.id}
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
aria-label={gettext("delete %{note_slug}", note_slug: note.slug)}
|
||||
aria-label={dgettext("actions", "delete %{note_slug}", note_slug: note.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</.link>
|
||||
|
@ -36,7 +36,7 @@
|
||||
class="btn btn-primary"
|
||||
phx-click="delete"
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
aria-label={gettext("delete %{note_slug}", note_slug: @note.slug)}
|
||||
aria-label={dgettext("actions", "delete %{note_slug}", note_slug: @note.slug)}
|
||||
>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user