fix(i18n): address Copilot review — render keyed labels, un-split sentences

- QuickCreate menu items carried labelKey but rendered item.label
- DataTable and the ColumnsMenu/GroupMenu/SortMenu/SortChipBar helpers
  rendered column.header while 66 files declare headerKey; all now
  resolve through translateLabel when the header is a string
- ExtensionBoundary failure card glued 'The extension' + slug + 'could
  not be loaded' from two fragments; now one Trans key with a component
  slot so translators can reorder
- LogFileList/IconReferenceTab empty states split 'No matches for "'
  around the query; now single keys with a {{query}} placeholder

es.json synced: orphans pruned, changed keys retranslated.
This commit is contained in:
Juan Denis committed 2026-08-20 22:00:55 -04:00
1 parent 4f77884129
commit cc7178f994
11 files changed
+30 -18

No files matched your search

@@ -9,7 +9,7 @@
* `getRuntimeLoadState`, with the error string in a popover (plan 32 #5).
*/
import { Component } from 'react';
import { useTranslation } from 'react-i18next';
import { Trans, useTranslation } from 'react-i18next';
import { t } from '../../i18n/t';
// Plain (dependency-free) card so it renders even if the SDK/design-system is
@@ -24,7 +24,15 @@ export function ExtensionFailureCard({ slug, title, message }) {
{title || 'Extension failed to load'}
</h2>
<p className="sk-ext-failcard__desc">
{t('app.extensionBoundary.theExtension', 'The extension')} <code>{slug}</code> {t('app.extensionBoundary.couldNotBeLoaded', 'could not be loaded')}
{/* One key with a component slot, not prefix/suffix
fragments: split sentences cannot be reordered by a
translator. */}
<Trans
i18nKey="app.extensionBoundary.theExtensionCouldNotBeLoaded"
defaults="The extension <0>{{slug}}</0> could not be loaded"
values={{ slug }}
components={[<code key="slug" />]}
/>
{message ? ': ' : '.'}
{message && <span className="sk-ext-failcard__reason">{message}</span>}
</p>