Refactor type/format labels to enable translations

This commit is contained in:
Claudio Ortolina
2025-01-29 11:04:19 +00:00
parent 96bd453900
commit 9e1f00c9a8
16 changed files with 193 additions and 132 deletions
@@ -29,7 +29,7 @@
]}>
<div :for={{format, count} <- @collection_count_by_format} class="px-2 py-5 sm:px-4">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-400 text-center max-sm:text-xs break-keep">
{Record.format_long_label(format)}
{format_label(format)}
</dt>
<dd class="mt-1 text-center">
<.link
@@ -54,7 +54,7 @@
]}>
<div :for={{type, count} <- @collection_count_by_type} class="px-2 py-5 sm:px-4">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-400 text-center max-sm:text-xs break-keep">
{Record.type_long_label(type)}
{type_label(type)}
</dt>
<dd class="mt-1 text-center">
<.link
@@ -202,7 +202,7 @@
)
}
>
{Records.Record.format_long_label(format)}
{format_label(format)}
</.link>
</.focus_wrap>
</div>