A table row's detail sheet names itself in the reader's language when its first column is empty

DataTable's sheet heading fell back to a hardcoded English 'Detail', one word and so outside check:hardcoded-english's reach. It now reads aria.rowDetail ('Row detail'), which this component already uses for the dialog's own label: translated in all 11 locales, and it brings no new catalogue area into any bundle (a dashboard.* key would have added the whole dashboard area to every bundle that shows a table).
This commit is contained in:
Doxa Maps 2026-09-29 12:22:46 +00:00
parent a2e6184d3b
commit cb71051cdd

View file

@ -327,7 +327,7 @@ useShadowStyles(
<div v-if="detail" ref="scrimRef" :style="scrimStyle" class="dt-scrim" @click.self="detail = null">
<div class="dt-sheet" role="dialog" :aria-label="T('aria.rowDetail', 'Row detail')">
<div class="dt-sheet-head">
<strong>{{ detail[(table?.columns || [])[0]?.field] || 'Detail' }}</strong>
<strong>{{ detail[(table?.columns || [])[0]?.field] || T('aria.rowDetail', 'Row detail') }}</strong>
<button type="button" class="dt-close" @click="detail = null">{{ T('buttons.close', 'Close') }}</button>
</div>
<dl class="dt-dl">