use better gettext domain for aria labels

This commit is contained in:
2023-03-18 00:26:32 -04:00
parent 066587f839
commit a0b93d0f46
16 changed files with 281 additions and 271 deletions

View File

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

View File

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