fix: resolve 3 i18n errors and fix shared package exports ordering

- Skill Matrix: use correct nested key `skillMatrix.title` instead of
  `skillMatrix` which resolved to the full object
- Skill Matrix: use `skillMatrix.trend.label` instead of
  `skillMatrix.trend` which resolved to the trend object
- Integrations: rename duplicate `title` key to `documentTitle` in
  de.json/en.json to prevent the ecoDMS column header from overriding
  the page title ("Titel" instead of "Integrationen")
- Shared package: move `types` condition before `import`/`require` in
  exports field to fix TypeScript type resolution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 12:58:06 +01:00
parent fe305f6fc8
commit 20d6795694
5 changed files with 11 additions and 11 deletions

View File

@@ -922,7 +922,7 @@
"addedToday": "Heute hinzugefuegt",
"documentsTitle": "Dokumente",
"documentsFromArchive": "Dokumente aus dem ecoDMS Archiv",
"title": "Titel",
"documentTitle": "Titel",
"classification": "Klassifikation",
"tags": "Tags",
"size": "Groesse",

View File

@@ -922,7 +922,7 @@
"addedToday": "Added today",
"documentsTitle": "Documents",
"documentsFromArchive": "Documents from the ecoDMS archive",
"title": "Title",
"documentTitle": "Title",
"classification": "Classification",
"tags": "Tags",
"size": "Size",

View File

@@ -220,7 +220,7 @@ export function GembaDocsContent({ locale }: GembaDocsContentProps) {
<Table>
<TableHeader>
<TableRow>
<TableHead>{t('title')}</TableHead>
<TableHead>{t('documentTitle')}</TableHead>
<TableHead>{t('type')}</TableHead>
<TableHead>Status</TableHead>
<TableHead>{t('department')}</TableHead>

View File

@@ -115,7 +115,7 @@ export function SkillMatrixOverviewContent({ locale }: SkillMatrixOverviewConten
{/* Header */}
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
<div>
<h1 className="text-3xl font-bold tracking-tight">{t('skillMatrix')}</h1>
<h1 className="text-3xl font-bold tracking-tight">{t('skillMatrix.title')}</h1>
<p className="text-muted-foreground">{t('skillMatrix.description')}</p>
</div>
<Button className="gap-2">
@@ -306,7 +306,7 @@ function DepartmentCard({ department, locale, t }: DepartmentCardProps) {
<TrendIcon className="h-4 w-4" />
<span>{t(`skillMatrix.trend.${department.trend}`)}</span>
</div>
<p className="text-xs text-muted-foreground">{t('skillMatrix.trend')}</p>
<p className="text-xs text-muted-foreground">{t('skillMatrix.trend.label')}</p>
</div>
</div>
<div className="mt-3 pt-3 border-t">